Home
TeamSite
DCR values on meta-data datacapture.cfg
Ottawa_IWOV
If you are creating a DCR, and you save and close, kicking off a set meta-data task, is there a way for the DCR.title (title of the document) to be extracted and presented on the meta-data datacapture form?
Thanks.
Find more posts tagged with
Comments
Adam Stoller
Are you using MetaTagger or the metadata tools that come OOTB with TeamSite?
Also - please indicate the versions of the products being used and the [server] platform.
I may not be able to help you directly - but the information for the above will probably help someone else to help you...
--fish
(Interwoven, Curriculum Development)
DateBreak540.zip
DateBreak540.pdf
mogoo
yes! You put this iw_perl snippet in the tpl....
#########################################
#sets the metatagger info to whatever is entered in the DCT
my $title = iwpt_dcr_value('dcr.Title');
my $html = iwpt_get_ofile_name();
$html =~ s/\/\.iwmnt//;
setEA("$html",'TeamSite/Metadata/Title',"$title");
#########################################
...where setEA is this (we have it in our Utils module)....
sub setEA
{
my ($file,$eaname,$eavalue) =
@_
;
unless ($eaname =~ m|TeamSite/|)
{
$eaname = "TeamSite/Metadata/".$eaname;
}
my
@arguments
= ();
push
@arguments
, '-s';
push
@arguments
, "$eaname=$eavalue";
push
@arguments
, "$file";
my $eaargs = "-s \"$eaname=$eavalue\" \"$file\"";
if (-e $file)
{# Set if the file exists
if ($eaname)
{# Set if eaname passed in
print STDERR "iwextattr $eaargs\n";
`$iwhome/bin/iwextattr $eaargs`;
}
}
}
Hope that helps,
maureen
Ottawa_IWOV
So if I understand correctly, the title of the document (from the DCR) will be captured on the meta-data screen when I run iwmetaproxy.cgi?
To answer your question fish....
We are using metatagger
Windows 2000 installation
TS 5.5.2
TST 5.5.2
MT 3.1.0
mogoo
yes, after doing the above, when you view the meta-data screen, it will already be filled in with the values entered in the DCR... in the example above, our DCT field is named "Title", and our metadata field just happens to be named "Title" as well -- they could be named 2 different things, you'd just have to make the changes appropriately in the code snippet.
maureen
Translation_DE10_DE.tbl.zip
Ottawa_IWOV
Where exactly do I put the subEA snippet of code, does it have to be written? Any direction on this would be great (sorry for the newbie approach)
Thanks.
mogoo
I think the subEA code could go inside of < iw_perl> in your tpl, after the other code... though I haven't tried this approach. Ours is in our Utils.pm -- so rather than write the sub setEA code out in the tpl, we just have to make sure to declare "use TeamSite::Utils;" -- you should check your Utils.pm first, our IW consultant set that up for us (might be standard MO?), and it has all kinds of good stuff in it, including setEA.
-maureen
Ottawa_IWOV
The only utils.pm files I can find are in \iw-home\iw-perl\site\lib\Font\TTF and \iw-home\iw-perl\site\GD\Graph