Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
MetaData DCT or MetaData DCR
abhinav1
what is MetaData DCT or MetaData DCR...? How can i get more information regarding that....?
Can anyone help me?
Thanks
Abhinav
Find more posts tagged with
Comments
gzevin
well, metadata DCT is datatapture.cfg that is in IW-HOME/local/config
when the metadata is attached, it is stored in the form of Extended Attributes, not in a DCR. However, one could potentially re-create a sort of XML out of EAs, if needed (I needed it a couple of times).
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Adam Stoller
in 6.5 (perhaps 6.x) it's trivial to create XML from a file's EAs by using the '-x' flag on iwextattr:
[DEV] ~ >
iwextattr -l -x
vpath
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ealist
[
<!ELEMENT ealist (ea)*>
<!ELEMENT ea (key, value*)>
<!ELEMENT key (#PCDATA)>
<!ELEMENT value (#PCDATA)>
<!ATTLIST value encoding (text|hex) "text">
]
>
<ealist>
<ea>
<key>TeamSite/Metadata/Format</key>
<value>text/html</value>
</ea>
<ea>
<key>TeamSite/Metadata/Language</key>
<value>en</value>
</ea>
<ea>
<key>TeamSite/Metadata/Rights Management</key>
<value>Free, No Restrictions</value>
</ea>
...
<ea>
<key>TeamSite/Templating/Encoding</key>
</ea>
<ea>
<key>TeamSite/Templating/PrimaryDCR</key>
<value>
path
</value>
</ea>
<ea>
<key>TeamSite/Templating/PrimaryDocumentType</key>
<value>
category
/
data-type
</value>
</ea>
<ea>
<key>TeamSite/Templating/PrimaryPT</key>
<value>
pt-name
</value>
</ea>
</ealist>
If you want to limit the output to just the metadata (or just the templating) EAs you can also use the '-r' flag:
[DEV] ~ >
iwextattr -l -x -r Metadata
vpath
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
Adam,
Once I already commented on this. What I meant is to recreate the real 'metadata DCR' in it form, not the XML representation of key-value pairs.
If one makes a complex metadata DCT (I use them a lot, e.g. with complex Learning Resources metadata application profile), the resulting EAs are, in fact, XPATH representation of every element of 'metadata DCR'.. So, in your example, the keys are still XPATH string.. But I want them to get converted into the inner XML ....
Then a XSL stylesheet could be applied to derive, say a metadata part of an HTML document.....
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU