Changeset 28923 for main/trunk
- Timestamp:
- 2014-03-19T10:57:48+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/von-sparql/collect/nz-natlib-cat/pre-import/RUN_NZ.sh
r28795 r28923 2 2 3 3 full_filename=NZDataFull.xml 4 full_filename_utf8=NZDataFull-UTF8.xml 4 5 5 6 if [ ! -f $full_filename ] ; then 6 7 echo "Did not detect uncompressed MARC-XML file '$full_filename'" 7 echo " => Including ISO-8859-1character encoding XML processing instruction at start"8 echo " => Including UTF-8 character encoding XML processing instruction at start" 8 9 echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > $full_filename 9 10 echo "<collection xmlns=\"http://www.loc.gov/MARC21/slim\">" >> $full_filename … … 13 14 echo "</collection>" >> $full_filename 14 15 echo " => ... Done" 16 fi 17 18 if [ ! -f $full_filename_utf8 ] ; then 19 20 echo "Fixing 'alien' character encodings issues within a UTF-8 file" 21 22 java -cp UTF8_Fix/bin UTF8Fix "$full_filename" "$full_filename_utf8" 15 23 16 24 fi
Note:
See TracChangeset
for help on using the changeset viewer.