DescriptiondocmappingForm

From DISMARC Help

(Difference between revisions)
Jump to: navigation, search
(New page: This form is used to submit sample data and a mapping suggestion to the person who is reposibile for content at the web site. You start off by entering your c...)
Line 5: Line 5:
Now comes the more or less technical part.
Now comes the more or less technical part.
-
Your native data will always be transformed into an XML. That's why the '''Your Field''' values should be a valid XPath for ONE document that was transformed into an XML.
+
Your native data will always be transformed into an XML via a [[Reader]]. That's why the '''Your Field''' values should be a valid XPath for ONE document that was generated by the reader. In case you want CSV data to be imported, you can just write the name of the column into the ''Your Field'' fields.
 +
 
 +
Since a [[Mapper]] will be generated after you've submitted the form some processing instructions are needed most of the time.
 +
 
 +
That's why you can add some keywords at the '''Your Comment''' fields.
 +
 
 +
;Lookup: By typing Lookup:<namespace> into the comments field, the mapper will automatically check the [[subsititutionlist]] for your native field with the defined namespace and will then replace the value of the field, with the looked up value.
 +
;Thesaururs: This is often used combined wiht the Lookup keyword. Whenever you want an thesaurus to be used as the value of the mapped document, use this keyword with the propper thesaurus name like Thesaurus:dmEras
 +
; $val = : This is a modifier of the value that will be inserted. This is a good way to append or prepend values to the supported value. Let's say you want to prepend ''MyNum:'' to the value, and are not sure if the value itself is empty, use ''$val = array('MyNum: %s', $val)''
 +
; array('role'=>'creator'): This keyword is used to add addtional attributes to the field. hasSample has an additonal ''title''' attribute as well as all the relation fields have an ''navigate'' attribute. Contributor and other fields have specific roles what will be indexed separately.

Revision as of 08:04, 24 July 2008

This form is used to submit sample data and a mapping suggestion to the person who is reposibile for content at the web site.

You start off by entering your contact details. Whenever a request will be sent, the username will be sent along, just in case you forogot to enter the contact details.

Now comes the more or less technical part.

Your native data will always be transformed into an XML via a Reader. That's why the Your Field values should be a valid XPath for ONE document that was generated by the reader. In case you want CSV data to be imported, you can just write the name of the column into the Your Field fields.

Since a Mapper will be generated after you've submitted the form some processing instructions are needed most of the time.

That's why you can add some keywords at the Your Comment fields.

Lookup
By typing Lookup:<namespace> into the comments field, the mapper will automatically check the subsititutionlist for your native field with the defined namespace and will then replace the value of the field, with the looked up value.
Thesaururs
This is often used combined wiht the Lookup keyword. Whenever you want an thesaurus to be used as the value of the mapped document, use this keyword with the propper thesaurus name like Thesaurus:dmEras
$val = 
This is a modifier of the value that will be inserted. This is a good way to append or prepend values to the supported value. Let's say you want to prepend MyNum: to the value, and are not sure if the value itself is empty, use $val = array('MyNum: %s', $val)
array('role'=>'creator')
This keyword is used to add addtional attributes to the field. hasSample has an additonal title' attribute as well as all the relation fields have an navigate attribute. Contributor and other fields have specific roles what will be indexed separately.
Personal tools