Last change
on this file since 28795 was 28795, checked in by ak19, 10 years ago |
Header to XML explicitly set to UTF-8. Probably not needed anymore, but there you are\!
|
-
Property svn:executable
set to
*
|
File size:
759 bytes
|
Rev | Line | |
---|
[28787] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | full_filename=NZDataFull.xml
|
---|
| 4 |
|
---|
| 5 | if [ ! -f $full_filename ] ; then
|
---|
| 6 | echo "Did not detect uncompressed MARC-XML file '$full_filename'"
|
---|
| 7 | echo " => Including ISO-8859-1 character encoding XML processing instruction at start"
|
---|
[28795] | 8 | echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > $full_filename
|
---|
[28787] | 9 | echo "<collection xmlns=\"http://www.loc.gov/MARC21/slim\">" >> $full_filename
|
---|
| 10 |
|
---|
| 11 | echo " => Appending uncompressed data to '$full_filename' ..."
|
---|
| 12 | gzip -d --stdout pubsnzmetadata.xml.gz >> $full_filename
|
---|
| 13 | echo "</collection>" >> $full_filename
|
---|
| 14 | echo " => ... Done"
|
---|
| 15 |
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | echo "Splitting '$full_filename', this may take some time ..."
|
---|
| 19 | java -classpath marcXML_Split/lib/marc4j-2.6.0.jar:marcXML_Split/lib/guava-15.0.jar:marcXML_Split/bin split $*
|
---|
| 20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.