Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
%ORIGINAL_PATH% variable in MT 4.1.0
gsundeep
Environment :
( Host A : TeamSite 6.5 Installed)
Solaris 9
TeamSite 6.5 SP2
OD/DD 6.0.2 SP1
( Host B : MetaTagger Installed in two system setup)
Solaris 9
MetaTagger 4.1.0
I need to access the full clientside path name of the file to be metatagged within the custom converter.Earlier( MT 3.1.0), we use to do the same using %ORIGINAL_PATH% variable within the metatagger.cfg.
Do we have a equivalent of %ORIGINAL_PATH% in MT 4.1.0 ?
How to get the client side file name within the custom converter on MT 4.1.0 ?
For reference, please refer KB Article : 49655
Thanks,
Sundeep
Find more posts tagged with
Comments
Migrateduser
Sundeep,
4.x invokes transconverters with the following replacement variables:
%INPUTFILE% - full path to input file. Note that this is not the original file but a temporary file transferred to the MT server.
%OUTPUTFILE% - full path for output file
%LANGUAGE% - language specified by the configuration
%ENCODING% - encoding specified by the configuration
Since you're upgrading from 3.x, you'll need to ensure that the output text and metadata are in UTF-8 and not Latin-1.
Regards,
Clark
gsundeep
Clark,
Thanks for your answer, I understand the transconverters in 4.x but
As in my question, i need to get the client side file name ( i,e /iwmnt/default/XYZ/WORKAREA/XYZ/ab/xy/index.html )
on the metatatgger server for processing within the custom converter.
Earlier, i used to fetch the same using %ORIGINAL_PATH%.
Thanks,
Sundeep
Migrateduser
Sundeep,
The ORIGINAL_PATH has moved to the input metadata record XML passed to the transconverter via STDIN. Here's an example of what you should see on STDIN:
<metadata>
<documentMetadata>
<language>bokmal</language>
<encoding>cp_1252</encoding>
<originalPath>Y:/default/main/ECM Demo/WORKAREA/Test2/New File.txt</originalPath>
<nativeMetadata/>
</documentMetadata>
<properties/>
</metadata>
The xpath:/metadat/documentMetadata/originalPath has the value you are looking for.
Let me know if this captures it.
Cheers,
Clark
Karthik_SP
I tried the above. But I am not getting the STDIN in the custom transconverter.
Can anyone please help me.
I am using MT 4.1.2
Migrateduser
I believe there is some transconverter example code in the "Cooking with MetaTagger Plugins" devcast.