Hi Anis,

it's quite simple if you have some knowledge of XSLT (even if you
don't, it's straightforward for direct metadata field mappings).

1) Find a metadata format that looks the most similar to the one
you're trying to create. You can look at them at
http://demo.dspace.org/oai/request?verb=ListMetadataFormats

2) Find the corresponding file in
[dspace]/config/crosswalks/oai/metadataFormats/ and create a copy
under a new name.

3) Add the format into <Context baseurl="request"> in
[dspace]/config/crosswalks/oai/xoai.xml

4) Important: for the duration of your development, turn off caching
of OAI responses (cache.enabled = false in
[dspace]/config/modules/oai.cfg). Otherwise you'd have to run
"[dspace]/bin/dspace oai clean-cache" after each change in the xsl.

5) Iterate changing the XSL file as you need and check the results in
your browser. You can use "xmllint -noout file.xsl" to check for
errors in xml well-formedness of your stylesheer and "xmllint --noout
--schema XSD_FILE XML_FILE" (if you have a XSD for your metadata
format) to check the validity of your resulting XML.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to