Skip
repetitive navigational links
L-Soft  -  Home of  the  LISTSERV  mailing list  manager LISTSERV(R) 14.5
Skip repetitive navigational links
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2002)Back to main MODS pageJoin or leave MODSReplyPost a new messageSearchProportional fontNon-proportional fontLog in
Date:         Fri, 13 Dec 2002 17:21:19 +0100
Reply-To:     Metadata Object Description Schema List <[log in to unmask]>
Sender:       Metadata Object Description Schema List <[log in to unmask]>
From:         Yves Pratter <[log in to unmask]>
Subject:      Re: MODS-FR (How to use MARC to MODS converter)
Comments: To: MODS List <[log in to unmask]>
In-Reply-To:  <[log in to unmask]>
Content-Type: text/plain; charset="us-ascii"

>Am I missing something, or are there some bits that need to be filled in? Yes, there are ;-) >I have this vague recollection of encountering a step-by-step description > of moving from MARC21 to MODS (or maybe something else?) May be in the MARC4J tutorial : http://marc4j.tigris.org/doc/index.html#commandline >that would be helpful on the MODS page, and the >same for UNIMARC on Yves' page. I planed to write a tutorial in french, but i translated quickly the MODS web page without taking time to write this HowTo. Moreover, i worked on cleaning the ISO 5426 from/to Unicode conversion for MARC4J. This is done and it work fine. I wrote ISO 6937 (FINMARC ?) conversion. If somebody could tell me where to find some records ? QUIC HOWTO : Theorical procedure : 1. use a MARC (ISO 2709) to MARCXML converter. 2. convert the MARCXML file to MODS with an XSLT processor. 3. that's all. Step 1 and 2 could be done by the same tool (this is the case of MARC4J). Practical procedure for MARC4J : 1. install a Java RTE (Run Time Environment) is use SUN j2re1.4.1_01. install Java SDK if you need to change the sources and compile it with build.bat 2. set the JAVA_HOME environment variable to your java rte/sdk folder SET JAVA_HOME=C:\Program Files\Java\j2re1.4.1_01 (done permanently with the properties menu (right click) of MyComputer (under WINDOWS 2000)) 3. Copy ant.jar (i can't remember exactly) to %JAVA_HOME%\lib dir. 4. install MARC4J where you want (ie: C:\Program Files\MARC4J) 5. Create an xsl directory and copy your favorite stylesheets : I use : MARC21slim2MODS.xsl MARC21slimUtils.xsl (from http://www.loc.gov/standards/marcxml/xslt/ ) UNIMARC2MODS.xsl relators.xml (from http://mods-fr.sourceforge.net/ ) 6. convert ISO 2709 records to MODS : I use 2 batch file like this : UNIMARC record (read record.iso2709 (ANSEL charset) and produce record.xml and recordMODS.xml) MARC21 record (read record.iso2709 (Iso5426 charset) and produce record.xml and recordMODS.xml) That's all. Of course it's possible to find some similar tools. If a wasn't clear, or i forgot some step (additional jar files needed by MARC4J), tell me. Yves UNIMARC.BAT : java -cp dist/lib/marc4j.jar -Dorg.marc4j.charconv=org.marc4j.util.Iso5426ToUnicode org.marc4j.util.MarcXmlWriter -convert -out %1.xml %1.iso2709 java -cp dist/lib/marc4j.jar -Dorg.marc4j.charconv=org.marc4j.util.Iso5426ToUnicode org.marc4j.util.MarcXmlWriter -xsl xsl\UNIMARC2MODS.xsl -convert -out %1MODS.xml %1.iso2709 MARC21.BAT : java -cp dist/lib/marc4j.jar -Dorg.marc4j.charconv=org.marc4j.util.AnselToUnicode org.marc4j.util.MarcXmlWriter -xsl xsl\MARC21slim2mods.xsl -convert -out %1MODS.xml %1.iso2709 java -cp dist/lib/marc4j.jar -Dorg.marc4j.charconv=org.marc4j.util.AnselToUnicode org.marc4j.util.MarcXmlWriter -convert -out %1.xml %1.iso2709


Back to: Top of message | Previous page | Main MODS page

LISTSERV.LOC.GOV CataList email list search Powered by LISTSERV email list manager