Add regression test of etc/tmarc.xsl
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Aug 2012 08:46:40 +0000 (10:46 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 20 Aug 2012 08:46:40 +0000 (10:46 +0200)
Using 9 tmarc records from YAZ' etc directory as input.

20 files changed:
test/Makefile.am
test/test_tmarc.sh [new file with mode: 0755]
test/tmarc1.res.xml [new file with mode: 0644]
test/tmarc1.xml [new file with mode: 0644]
test/tmarc2.res.xml [new file with mode: 0644]
test/tmarc2.xml [new file with mode: 0644]
test/tmarc3.res.xml [new file with mode: 0644]
test/tmarc3.xml [new file with mode: 0644]
test/tmarc4.res.xml [new file with mode: 0644]
test/tmarc4.xml [new file with mode: 0644]
test/tmarc5.res.xml [new file with mode: 0644]
test/tmarc5.xml [new file with mode: 0644]
test/tmarc6.res.xml [new file with mode: 0644]
test/tmarc6.xml [new file with mode: 0644]
test/tmarc7.res.xml [new file with mode: 0644]
test/tmarc7.xml [new file with mode: 0644]
test/tmarc8.res.xml [new file with mode: 0644]
test/tmarc8.xml [new file with mode: 0644]
test/tmarc9.res.xml [new file with mode: 0644]
test/tmarc9.xml [new file with mode: 0644]

index da39a91..0c67bee 100644 (file)
@@ -4,7 +4,7 @@
 solr_tests = test_solr.sh test_termlist_block.sh test_limit_limitmap.sh
 check_SCRIPTS = test_http.sh test_icu.sh test_post.sh \
  test_settings.sh test_turbomarcxml.sh test_facets.sh \
- test_url.sh test_filter.sh \
+ test_url.sh test_filter.sh test_tmarc.sh \
  $(solr_tests)
 
 EXTRA_DIST = run_pazpar2.sh marc21_test.xsl tmarc.xsl solr-pz2.xsl \
@@ -45,3 +45,5 @@ dist-hook:
        cp ${srcdir}/test_*.res $(distdir)
        mkdir $(distdir)/set2
        cp ${srcdir}/set2/*.xml $(distdir)/set2
+       cp ${srcdir}/tmarc?.xml $(distdir)
+       cp ${srcdir}/tmarc?.res.xml $(distdir)
diff --git a/test/test_tmarc.sh b/test/test_tmarc.sh
new file mode 100755 (executable)
index 0000000..fb5e2a0
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+res=0
+for m in tmarc?.xml; do
+       b=`basename $m .xml`
+       l=$b.log.xml
+       r=$b.res.xml
+       d=$b.dif
+       xsltproc ../etc/tmarc.xsl $m >$l
+       if test -f $r; then
+               if diff $l $r >$d; then
+                       echo "$b: OK"
+                       rm $d
+               else
+                       echo "$b: FAIL; check $d"
+                       res=1
+               fi
+       else
+               echo "$b: making $r for the first time"
+               mv $l $r
+               res=1
+       fi
+done
+exit $res
diff --git a/test/tmarc1.res.xml b/test/tmarc1.res.xml
new file mode 100644 (file)
index 0000000..a50090a
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="author">Sloman</pz:metadata>
+    <pz:metadata type="author-title"/>
+    <pz:metadata type="author-date"/>
+    <pz:metadata type="date">2002</pz:metadata>
+    <pz:metadata type="title">On the road with Bob Dylan</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">On the road with Bob Dylan</pz:metadata>
+    <pz:metadata type="edition">Revised edition</pz:metadata>
+    <pz:metadata type="publication-place">New York</pz:metadata>
+    <pz:metadata type="publication-name">Three Rivers Press</pz:metadata>
+    <pz:metadata type="publication-date">2002</pz:metadata>
+    <pz:metadata type="physical-extent">xv, 464 sider, tavler</pz:metadata>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="description">Tidligere: 1. udgave. New York, Bantam, 1978</pz:metadata>
+    <pz:metadata type="medium">book</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc1.xml b/test/tmarc1.xml
new file mode 100644 (file)
index 0000000..dab3674
--- /dev/null
@@ -0,0 +1,95 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+<!-- Length implementation at offset 22 should hold a digit. Assuming 0 -->
+  <l>00988nam0a32003011  450 </l>
+  <d001 i1="0" i2="0" i3="0">
+    <sa>9 181 423 4</sa>
+    <sb>710100</sb>
+    <sf>a</sf>
+  </d001>
+  <d004 i1="0" i2="0" i3="0">
+    <sr>n</sr>
+    <sa>e</sa>
+  </d004>
+  <d008 i1="0" i2="0" i3="0">
+    <st>m</st>
+    <su>u</su>
+    <sa>2002</sa>
+    <sb>us</sb>
+    <sl>eng</sl>
+    <sv>0</sv>
+  </d008>
+  <d009 i1="0" i2="0" i3="0">
+    <sa>a</sa>
+    <sg>xx</sg>
+  </d009>
+  <d021 i1="0" i2="0" i3="0">
+    <sa>1-4000-4596-7</sa>
+    <sd>$14,00</sd>
+  </d021>
+  <d032 i1="0" i2="0" i3="0">
+    <s code="&amp;">DBC200439</s>
+  </d032>
+  <d100 i1="0" i2="0" i3="0">
+    <s0></s0>
+    <sa>Sloman</sa>
+    <sh>Larry</sh>
+  </d100>
+  <d245 i1="0" i2="0" i3="0">
+    <sa>On the road with Bob Dylan</sa>
+    <se>Larry &quot;Ratso&quot; Sloman</se>
+  </d245>
+  <d250 i1="0" i2="0" i3="0">
+    <sa>Revised edition</sa>
+    <sb>Three Rivers Press</sb>
+  </d250>
+  <d260 i1="0" i2="0" i3="0">
+    <sa>New York</sa>
+    <sb>Three Rivers Press</sb>
+    <sc>2002</sc>
+  </d260>
+  <d300 i1="0" i2="0" i3="0">
+    <sa>xv, 464 sider, tavler</sa>
+  </d300>
+  <d504 i1="0" i2="0" i3="0">
+    <sa>Larry &quot;Ratso&quot; Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: &quot;The Rolling Thunder revue&quot;</sa>
+  </d504>
+  <d512 i1="0" i2="0" i3="0">
+    <sa>På omslaget: With a new introduction by Kinky Friedman</sa>
+  </d512>
+  <d520 i1="0" i2="0" i3="0">
+    <sa>Tidligere: 1. udgave. New York, Bantam, 1978</sa>
+  </d520>
+  <d652 i1="0" i2="0" i3="0">
+    <s0></s0>
+    <sm>99.4</sm>
+    <sa>Dylan</sa>
+    <sh>Bob</sh>
+  </d652>
+  <d652 i1="0" i2="0" i3="0">
+    <sp>78.9064</sp>
+    <sv>5</sv>
+  </d652>
+  <d666 i1="0" i2="0" i3="0">
+    <sf>folkemusik</sf>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <sf>folkemusikere</sf>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <sf>rockmusik</sf>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <sf>rockmusikere</sf>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <sf>rockkoncerter</sf>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <se>USA</se>
+  </d666>
+  <d666 i1="0" i2="0" i3="0">
+    <si>1970-1979</si>
+  </d666>
+</r>
+</collection>
diff --git a/test/tmarc2.res.xml b/test/tmarc2.res.xml
new file mode 100644 (file)
index 0000000..b690083
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="author">Mimms</pz:metadata>
+    <pz:metadata type="author-title"/>
+    <pz:metadata type="author-date"/>
+    <pz:metadata type="date">1995</pz:metadata>
+    <pz:metadata type="title">Cry baby</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Cry baby</pz:metadata>
+    <pz:metadata type="publication-place">Bury St. Edmunds</pz:metadata>
+    <pz:metadata type="publication-name">BGO</pz:metadata>
+    <pz:metadata type="publication-date">1995</pz:metadata>
+    <pz:metadata type="physical-extent"/>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="medium">book</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc2.xml b/test/tmarc2.xml
new file mode 100644 (file)
index 0000000..8f28780
--- /dev/null
@@ -0,0 +1,102 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+<!-- Length implementation at offset 22 should hold a digit. Assuming 0 -->
+  <l>01116nam0a32002171  450 </l>
+  <d001 i1="0" i2="0" i3="0">
+    <sa>9 182 502 3</sa>
+    <sb>710100</sb>
+    <sf>a</sf>
+  </d001>
+  <d004 i1="0" i2="0" i3="0">
+    <sr>c</sr>
+    <sa>e</sa>
+  </d004>
+  <d008 i1="0" i2="0" i3="0">
+    <st>s</st>
+    <su>f</su>
+    <sa>1995</sa>
+    <sb>gb</sb>
+    <sl>eng</sl>
+    <sv>0</sv>
+  </d008>
+  <d009 i1="0" i2="0" i3="0">
+    <sa>s</sa>
+    <sg>xc</sg>
+  </d009>
+  <d039 i1="0" i2="0" i3="0">
+    <sa>bef</sa>
+  </d039>
+  <d100 i1="0" i2="0" i3="0">
+    <sa>Mimms</sa>
+    <sh>Garnet</sh>
+  </d100>
+  <d245 i1="0" i2="0" i3="0">
+    <sa>Cry baby</sa>
+    <sa>Warm and soulful</sa>
+    <se>Garnet Mimms ... [et al.]</se>
+  </d245>
+  <d260 i1="0" i2="0" i3="0">
+    <sa>Bury St. Edmunds</sa>
+    <sb>BGO</sb>
+    <sc>1995</sc>
+  </d260>
+  <d300 i1="0" i2="0" i3="0">
+    <sn>1 cd</sn>
+  </d300>
+  <d512 i1="0" i2="0" i3="0">
+    <sa>Indspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)</sa>
+  </d512>
+  <d531 i1="0" i2="0" i3="0">
+    <sa>Indhold:</sa>
+  </d531>
+  <d538 i1="0" i2="0" i3="0">
+    <sf>BGO</sf>
+    <sg>BGOCD268</sg>
+  </d538>
+  <d652 i1="0" i2="0" i3="0">
+    <sm>78.794</sm>
+    <sv>4</sv>
+  </d652>
+  <d666 i1="0" i2="0" i3="0">
+    <sm>soul</sm>
+    <sm>rhythm &amp; blues</sm>
+    <sn>vokal</sn>
+    <sp>1960-1969</sp>
+    <sl>USA</sl>
+  </d666>
+  <d795 i1="0" i2="0" i3="0">
+    <s code="å">11</s>
+    <sa>Cry baby</sa>
+    <sa>Nobody but you</sa>
+    <sa>Until you were gone</sa>
+    <sa>Anytime you want me</sa>
+    <sa>So close</sa>
+    <sa>For your precious love</sa>
+    <sa>Baby don&apos;t you weep</sa>
+    <sa>A ¤quiet place</sa>
+    <sa>Cry to me</sa>
+    <sa>Don&apos;t change your heart</sa>
+    <sa>Wanting you</sa>
+    <sa>The ¤truth hurts</sa>
+    <sa>I&apos;ll take good care of you</sa>
+    <sa>Looking for you</sa>
+    <sa>It won&apos;t hurt (half as much)</sa>
+    <sa>It was easier to hurt her</sa>
+    <sa>Thinkin&apos;</sa>
+    <sa>Prove it to me</sa>
+    <sa>More than a miracle</sa>
+    <sa>As long as I have you</sa>
+    <sa>One girl</sa>
+    <sa>There goes my baby</sa>
+    <sa>It&apos;s just a matter of time</sa>
+    <sa>A ¤little bit of soap</sa>
+    <sa>Look away</sa>
+    <sa>I&apos;ll make it up to you</sa>
+  </d795>
+  <d795 i1="0" i2="0" i3="0">
+    <s code="å">40</s>
+    <sy>0</sy>
+    <sa>1 girl</sa>
+  </d795>
+</r>
+</collection>
diff --git a/test/tmarc3.res.xml b/test/tmarc3.res.xml
new file mode 100644 (file)
index 0000000..cf6766d
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="date">-</pz:metadata>
+    <pz:metadata type="title">Byfornyelse ved Ibsen-Ringen</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Byfornyelse ved Ibsen-Ringen</pz:metadata>
+    <pz:metadata type="physical-extent"/>
+    <pz:metadata type="physical-format">farvefoto</pz:metadata>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="subject"/>
+    <pz:metadata type="subject-long">byfornyelse</pz:metadata>
+    <pz:metadata type="subject"/>
+    <pz:metadata type="subject-long">sanering</pz:metadata>
+    <pz:metadata type="subject">Telje Torp Aasen Arkitektkontor</pz:metadata>
+    <pz:metadata type="subject-long">Telje Torp Aasen Arkitektkontor, Kristian Augustsgate 7B</pz:metadata>
+    <pz:metadata type="subject">Eng, Dagfin</pz:metadata>
+    <pz:metadata type="subject-long">Eng, Dagfin</pz:metadata>
+    <pz:metadata type="subject"/>
+    <pz:metadata type="subject-long">anlund, Tom, Kristian Augustsgate, Pilestredet 19</pz:metadata>
+    <pz:metadata type="medium">web</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc3.xml b/test/tmarc3.xml
new file mode 100644 (file)
index 0000000..84f8bbe
--- /dev/null
@@ -0,0 +1,122 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+<!-- Length implementation at offset 22 should hold a digit. Assuming 0 -->
+  <l>00914naa a2200337   450 </l>
+  <d001 i1=" " i2=" ">
+    <sa>a00001508</sa>
+    <sf>a</sf>
+  </d001>
+  <d004 i1=" " i2=" ">
+    <sa>i</sa>
+    <sr>n</sr>
+  </d004>
+  <d008 i1=" " i2=" ">
+    <sa>1991</sa>
+    <sb>xx</sb>
+    <sl>nor</sl>
+    <st>a</st>
+    <sv>9</sv>
+  </d008>
+  <d009 i1=" " i2=" ">
+    <sa>a</sa>
+    <sg>xx</sg>
+  </d009>
+  <d041 i1=" " i2=" ">
+    <sa>nor</sa>
+  </d041>
+  <d041 i1=" " i2=" ">
+    <sd>eng</sd>
+  </d041>
+  <d097 i1="0" i2="0">
+    <sa>06</sa>
+  </d097>
+  <d245 i1=" " i2=" ">
+    <sa>Byfornyelse ved Ibsen-Ringen</sa>
+  </d245>
+  <d300 i1=" " i2=" ">
+    <sb>farvefoto</sb>
+    <sb>plan</sb>
+    <sb>snit</sb>
+  </d300>
+  <d557 i1=" " i2=" ">
+    <sa>Byggekunst</sa>
+    <sj>1991</sj>
+    <sv>1/2</sv>
+    <sk>41-45</sk>
+  </d557>
+  <d630 i1=" " i2=" ">
+    <sf>byfornyelse</sf>
+  </d630>
+  <d630 i1=" " i2=" ">
+    <sf>sanering</sf>
+  </d630>
+  <d633 i1=" " i2=" ">
+    <sf>Norge</sf>
+  </d633>
+  <d633 i1=" " i2=" ">
+    <sf>Oslo</sf>
+  </d633>
+  <d648 i1=" " i2=" ">
+    <sa>Telje Torp Aasen Arkitektkontor</sa>
+    <sc>Kristian Augustsgate 7B</sc>
+  </d648>
+  <d648 i1=" " i2=" ">
+    <sa>Eng, Dagfin</sa>
+  </d648>
+  <d648 i1=" " i2=" ">
+    <sr>anlund, Tom</sr>
+    <sc>Kristian Augustsgate</sc>
+    <sc>Pilestredet 19</sc>
+  </d648>
+  <dJ01 i1=" " i2=" ">
+    <sa>a</sa>
+  </dJ01>
+  <dBAS i1=" " i2=" ">
+    <s0></s0>
+  </dBAS>
+  <dLKR i1=" " i2=" ">
+    <sa>ITM</sa>
+    <sl>ARK50</sl>
+    <sb>0000145</sb>
+    <sy>1991</sy>
+    <si>1/2</si>
+    <sk>41-45</sk>
+  </dLKR>
+  <dCAT i1=" " i2=" ">
+    <sa></sa>
+    <sb></sb>
+    <sc>20020111</sc>
+    <sl>ARK01</sl>
+    <sh>2002</sh>
+  </dCAT>
+  <dCAT i1=" " i2=" ">
+    <sa></sa>
+    <sb></sb>
+    <sc>20020111</sc>
+    <sl>ARK01</sl>
+    <sh>2116</sh>
+  </dCAT>
+  <dCAT i1=" " i2=" ">
+    <sa></sa>
+    <sb></sb>
+    <sc>20021002</sc>
+    <sl>ARK01</sl>
+    <sh>1000</sh>
+  </dCAT>
+  <dCAT i1=" " i2=" ">
+    <sa>ICLLOAD</sa>
+    <sb>00</sb>
+    <sc>20021122</sc>
+    <sl>ARK01</sl>
+    <sh>1948</sh>
+  </dCAT>
+  <dCAT i1=" " i2=" ">
+    <sc>20030618</sc>
+    <sl>ARK01</sl>
+    <sh>1330</sh>
+  </dCAT>
+  <dUID i1=" " i2=" ">
+    <sa>a00001508</sa>
+  </dUID>
+</r>
+</collection>
diff --git a/test/tmarc4.res.xml b/test/tmarc4.res.xml
new file mode 100644 (file)
index 0000000..a2ea977
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="date">-</pz:metadata>
+    <pz:metadata type="medium">other</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc4.xml b/test/tmarc4.xml
new file mode 100644 (file)
index 0000000..dadbd7b
--- /dev/null
@@ -0,0 +1,11 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+<!-- Indicator length at offset 10 should hold a digit. Assuming 2 -->
+<!-- Identifier length at offset 11 should hold a digit. Assuming 2 -->
+<!-- Base address at offsets 12..16 should hold a number. Assuming 0 -->
+<!-- Length implementation at offset 22 should hold a digit. Assuming 0 -->
+  <l>009140091a22a  22003370 </l>
+<!-- Directory offset 24: Bad value for data length and/or length starting ( 45  00100170) -->
+<!-- Base address not at end of directory, base 0, end 25 -->
+</r>
+</collection>
diff --git a/test/tmarc5.res.xml b/test/tmarc5.res.xml
new file mode 100644 (file)
index 0000000..cf68d05
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="id">000277485</pz:metadata>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="author">Μαρούδης, Κωνσταντίνος Ιω</pz:metadata>
+    <pz:metadata type="author-title"/>
+    <pz:metadata type="author-date"/>
+    <pz:metadata type="date">1894</pz:metadata>
+    <pz:metadata type="title">Ελληνικόν κρυπτογραφικόν λεξικόν /</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility">Κωνστ. Ι. Μαρούδης.</pz:metadata>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Ελληνικόν κρυπτογραφικόν λεξικόν /</pz:metadata>
+    <pz:metadata type="edition"/>
+    <pz:metadata type="publication-place">Αθήνα,</pz:metadata>
+    <pz:metadata type="publication-name"/>
+    <pz:metadata type="publication-date">1894.</pz:metadata>
+    <pz:metadata type="physical-extent">248 σελ.</pz:metadata>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="subject">Greek language, Modern</pz:metadata>
+    <pz:metadata type="subject-long">Greek language, Modern, Dialects, Dictionaries</pz:metadata>
+    <pz:metadata type="subject">Cryptography.</pz:metadata>
+    <pz:metadata type="subject-long">Cryptography.</pz:metadata>
+    <pz:metadata type="medium">book</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc5.xml b/test/tmarc5.xml
new file mode 100644 (file)
index 0000000..89343ab
--- /dev/null
@@ -0,0 +1,33 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+  <l>00492nam a22001455a 4500</l>
+  <c001>000277485</c001>
+  <c005>20051026111436.0</c005>
+  <c008>050413s1894    gr            000 0 gre d</c008>
+  <d100 i1="1" i2=" ">
+    <sa>Μαρούδης, Κωνσταντίνος Ιω</sa>
+  </d100>
+  <d245 i1="1" i2="0">
+    <sa>Ελληνικόν κρυπτογραφικόν λεξικόν /</sa>
+    <sc>Κωνστ. Ι. Μαρούδης.</sc>
+  </d245>
+  <d250 i1=" " i2=" ">
+    <s code="η"> εκδ.</s>
+  </d250>
+  <d260 i1=" " i2=" ">
+    <sa>Αθήνα,</sa>
+    <sc>1894.</sc>
+  </d260>
+  <d300 i1=" " i2=" ">
+    <sa>248 σελ.</sa>
+  </d300>
+  <d650 i1=" " i2="0">
+    <sa>Greek language, Modern</sa>
+    <sx>Dialects</sx>
+    <sv>Dictionaries</sv>
+  </d650>
+  <d650 i1=" " i2="0">
+    <sa>Cryptography.</sa>
+  </d650>
+</r>
+</collection>
diff --git a/test/tmarc6.res.xml b/test/tmarc6.res.xml
new file mode 100644 (file)
index 0000000..10d1ca2
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="id">   11224466 </pz:metadata>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="lccn">   11224466 </pz:metadata>
+    <pz:metadata type="author">Jack Collins</pz:metadata>
+    <pz:metadata type="author-title"/>
+    <pz:metadata type="author-date"/>
+    <pz:metadata type="date"/>
+    <pz:metadata type="title">How to program a computer</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">How to program a computer</pz:metadata>
+    <pz:metadata type="publication-place">Penguin</pz:metadata>
+    <pz:metadata type="publication-name"/>
+    <pz:metadata type="publication-date"/>
+    <pz:metadata type="physical-extent">p. cm.</pz:metadata>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="medium">book</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc6.xml b/test/tmarc6.xml
new file mode 100644 (file)
index 0000000..70d23e7
--- /dev/null
@@ -0,0 +1,34 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+  <l>00366nam a22001698a 4500</l>
+  <c001>   11224466 </c001>
+  <c003>DLC</c003>
+  <c005>00000000000000.0</c005>
+  <c008>910710c19910701nju           00010 eng  </c008>
+  <d010 i1=" " i2=" ">
+    <sa>   11224466 </sa>
+  </d010>
+  <d040 i1=" " i2=" ">
+    <sa>DLC</sa>
+    <sc>DLC</sc>
+  </d040>
+  <d050 i1="0" i2="0">
+    <sa>123-xyz</sa>
+  </d050>
+  <d100 i1="1" i2="0">
+    <sa>Jack Collins</sa>
+  </d100>
+  <d245 i1="1" i2="0">
+    <sa>How to program a computer</sa>
+  </d245>
+  <d260 i1="1" i2=" ">
+    <sa>Penguin</sa>
+  </d260>
+  <d263 i1=" " i2=" ">
+    <sa>8710</sa>
+  </d263>
+  <d300 i1=" " i2=" ">
+    <sa>p. cm.</sa>
+  </d300>
+</r>
+</collection>
diff --git a/test/tmarc7.res.xml b/test/tmarc7.res.xml
new file mode 100644 (file)
index 0000000..449b87e
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="id">   77123332 </pz:metadata>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="lccn">   77123332 </pz:metadata>
+    <pz:metadata type="system-control-nr">57779</pz:metadata>
+    <pz:metadata type="system-control-nr">90490</pz:metadata>
+    <pz:metadata type="system-control-nr">93202</pz:metadata>
+    <pz:metadata type="date">2001</pz:metadata>
+    <pz:metadata type="title">Voyager Diacritic test -- New input 001 (SBIE).</pz:metadata>
+    <pz:metadata type="title-remainder"/>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Voyager Diacritic test -- New input 001 (SBIE).</pz:metadata>
+    <pz:metadata type="publication-place">ny :</pz:metadata>
+    <pz:metadata type="publication-name">ny,</pz:metadata>
+    <pz:metadata type="publication-date">2001.</pz:metadata>
+    <pz:metadata type="physical-extent">100 p. ;</pz:metadata>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions">12 cm.</pz:metadata>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="description">New copy imported from file (8/12/99).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 0  (NEW):  Degree sign (°);  Phono Copyright mark (℗);  Copyright mark (©);  Sharp (♯);  Inverted Question mark (¿);  Inverted Exclamation mark (¡).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 1:  Script L (ℓ);  Polish L (Ł);  Scandanavian O (Ø);  D with Crossbar (Đ);  Icelandic Thorn (Þ);  AE Digraph (Æ); OE Digraph (Œ);  Miagkii Znak (ʹ);  Dot at Midline (·).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 2:  Musical Flat (♭);  Patent Mark (®);  Plus or Minus (±);  O Hook (Ơ);  U Hook (Ư);  Alif (ʼ);  alpha α;  Ayn (ʻ);  Polish l (ł).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 3:  Scandanavian o (ø);  d with crossbar (đ);  Icelandic Thorn (þ);  ae Digraph (æ);  oe Digraph (œ);  Tverdii Znak (ʺ);  Turkish i (ı);  British Pound (£);  eth (ð).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 4:  Dagger (DO NOT USE);  o Hook (ơ);  u Hook (ư);  Beta β;  Gamma γ;  Superscript 0 (⁰);  Superscript 1 (¹);  Superscript 2 (²);  Superscript 3 (³).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 5:  Superscript 4 (⁴);  Superscript 5 (⁵);  Superscript 6 (⁶);  Superscript 7 (⁷);  Superscript 8 (⁸);  Superscript 9 (⁹);  Superscript + (⁺);  Superscript - (⁻);  Superscript ( (⁽).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 6:  Superscript ) (⁾);  Subscript 0 (₀);  Subscript  1 (₁);  Subscript 2 (₂);  Subscript 3 (₃);  Subscript 4 (₄);  Subscript 5 (₅);  Subscript 6 (₆);  Subscript 7 (₇).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 7:  Subscript 8 (₈);  Subscript 9 (₉);  Subscript + (₊);  Subscript - (₋);  Subscript ( (₍);  Subscript ) (₎);  Pseudo Question Mark (ỏ);  Grave (ò);  Acute (ó).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 8:  Circumflex (ô);  Tilde (õ);  Macron (ō);  Breve (ŏ);  Superior Dot (ȯ);  Umlaut (ö);  Hacek (ǒ);  Circle Above (o̊);  Ligature left (o͡).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 9:  Ligature right (o) ;  High Comma off center (o̕);  Double Acute (ő);  Candrabindu (o̐);  Cedilla (o̧);  Right Hook (ǫ);  Dot Below (ọ);  Double Dot Below (o̤);  Circle Below (o̥).</pz:metadata>
+    <pz:metadata type="description">VOYAGER COLUMN 10:  Double Underscore (o̳);  Underscore (o̲);  Left Hook (o̦);  Right Cedilla (o̜);  Upadhmaniya (o̮);  Double Tilde 1st half (o͠);  Double Tilde 2nd half (o) ;  High Comma centered (o̓).</pz:metadata>
+    <pz:metadata type="description">VOYAGER PC Keyboard:  Spacing Circumflex (^); Spacing Underscore (_); Spacing Grave (`); Open Curly Bracket ({); Close Curly Bracket (}); Spacing Tilde (~).</pz:metadata>
+    <pz:metadata type="description">Standard PC Keyboard:   1234567890-=   !@#$%^&amp;*()_+   qwertyuiop[]\   QWERTYUIOP{}|   asdfghjkl;'  ASDFGHJKL:"   zxcvbnm,./   ZXCVBNM&lt;&gt;?</pz:metadata>
+    <pz:metadata type="medium">book</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc7.xml b/test/tmarc7.xml
new file mode 100644 (file)
index 0000000..2acb7d2
--- /dev/null
@@ -0,0 +1,88 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+  <l>03114cam a2200349 i 4500</l>
+  <c001>   77123332 </c001>
+  <c003>DLC</c003>
+  <c005>20051218154744.0</c005>
+  <c008>981008b2001    ilu           000 0 eng  </c008>
+  <d035 i1=" " i2=" ">
+    <sa>57779</sa>
+  </d035>
+  <d035 i1=" " i2=" ">
+    <sa>90490</sa>
+  </d035>
+  <d035 i1=" " i2=" ">
+    <sa>93202</sa>
+  </d035>
+  <d040 i1=" " i2=" ">
+    <sa>DLC</sa>
+    <sc>DLC</sc>
+  </d040>
+  <d906 i1=" " i2=" ">
+    <sa>0</sa>
+    <sb>und</sb>
+    <sc>orignew</sc>
+    <sd>u</sd>
+    <se>ncip</se>
+    <sf>19</sf>
+    <sg>y-gencatlg</sg>
+  </d906>
+  <d010 i1=" " i2=" ">
+    <sa>   77123332 </sa>
+  </d010>
+  <d245 i1="0" i2="0">
+    <sa>Voyager Diacritic test -- New input 001 (SBIE).</sa>
+  </d245>
+  <d260 i1=" " i2=" ">
+    <sa>ny :</sa>
+    <sb>ny,</sb>
+    <sc>2001.</sc>
+  </d260>
+  <d300 i1=" " i2=" ">
+    <sa>100 p. ;</sa>
+    <sc>12 cm.</sc>
+  </d300>
+  <d500 i1=" " i2=" ">
+    <sa>New copy imported from file (8/12/99).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 0  (NEW):  Degree sign (°);  Phono Copyright mark (℗);  Copyright mark (©);  Sharp (♯);  Inverted Question mark (¿);  Inverted Exclamation mark (¡).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 1:  Script L (ℓ);  Polish L (Ł);  Scandanavian O (Ø);  D with Crossbar (Đ);  Icelandic Thorn (Þ);  AE Digraph (Æ); OE Digraph (Œ);  Miagkii Znak (ʹ);  Dot at Midline (·).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 2:  Musical Flat (♭);  Patent Mark (®);  Plus or Minus (±);  O Hook (Ơ);  U Hook (Ư);  Alif (ʼ);  alpha α;  Ayn (ʻ);  Polish l (ł).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 3:  Scandanavian o (ø);  d with crossbar (đ);  Icelandic Thorn (þ);  ae Digraph (æ);  oe Digraph (œ);  Tverdii Znak (ʺ);  Turkish i (ı);  British Pound (£);  eth (ð).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 4:  Dagger (DO NOT USE);  o Hook (ơ);  u Hook (ư);  Beta β;  Gamma γ;  Superscript 0 (⁰);  Superscript 1 (¹);  Superscript 2 (²);  Superscript 3 (³).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 5:  Superscript 4 (⁴);  Superscript 5 (⁵);  Superscript 6 (⁶);  Superscript 7 (⁷);  Superscript 8 (⁸);  Superscript 9 (⁹);  Superscript + (⁺);  Superscript - (⁻);  Superscript ( (⁽).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 6:  Superscript ) (⁾);  Subscript 0 (₀);  Subscript  1 (₁);  Subscript 2 (₂);  Subscript 3 (₃);  Subscript 4 (₄);  Subscript 5 (₅);  Subscript 6 (₆);  Subscript 7 (₇).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 7:  Subscript 8 (₈);  Subscript 9 (₉);  Subscript + (₊);  Subscript - (₋);  Subscript ( (₍);  Subscript ) (₎);  Pseudo Question Mark (ỏ);  Grave (ò);  Acute (ó).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 8:  Circumflex (ô);  Tilde (õ);  Macron (ō);  Breve (ŏ);  Superior Dot (ȯ);  Umlaut (ö);  Hacek (ǒ);  Circle Above (o̊);  Ligature left (o͡).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 9:  Ligature right (o) ;  High Comma off center (o̕);  Double Acute (ő);  Candrabindu (o̐);  Cedilla (o̧);  Right Hook (ǫ);  Dot Below (ọ);  Double Dot Below (o̤);  Circle Below (o̥).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER COLUMN 10:  Double Underscore (o̳);  Underscore (o̲);  Left Hook (o̦);  Right Cedilla (o̜);  Upadhmaniya (o̮);  Double Tilde 1st half (o͠);  Double Tilde 2nd half (o) ;  High Comma centered (o̓).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>VOYAGER PC Keyboard:  Spacing Circumflex (^); Spacing Underscore (_); Spacing Grave (`); Open Curly Bracket ({); Close Curly Bracket (}); Spacing Tilde (~).</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>Standard PC Keyboard:   1234567890-=   !@#$%^&amp;*()_+   qwertyuiop[]\   QWERTYUIOP{}|   asdfghjkl;&apos;  ASDFGHJKL:&quot;   zxcvbnm,./   ZXCVBNM&lt;&gt;?</sa>
+  </d500>
+</r>
+</collection>
diff --git a/test/tmarc8.res.xml b/test/tmarc8.res.xml
new file mode 100644 (file)
index 0000000..0ea5e4e
--- /dev/null
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="id">UCD-002592301</pz:metadata>
+    <pz:metadata type="oclc-number"/>
+    <pz:metadata type="system-control-nr">99851339eo</pz:metadata>
+    <pz:metadata type="author">Clinton, Atkinson.</pz:metadata>
+    <pz:metadata type="author-title"/>
+    <pz:metadata type="author-date"/>
+    <pz:metadata type="date">1583?</pz:metadata>
+    <pz:metadata type="title">Clinton, Purser &amp; Arnold, to their countreymen wheresoeuer</pz:metadata>
+    <pz:metadata type="title-remainder">Wherein is described by their own hands their vnfeigned penitence for their offences past: their patience in welcoming their death, &amp; their duetiful minds towardes her most excellent Maiestie</pz:metadata>
+    <pz:metadata type="title-responsibility"/>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium">[electronic resource] :</pz:metadata>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Clinton, Purser &amp; Arnold, to their countreymen wheresoeuer Wherein is described by their own hands their vnfeigned penitence for their offences past: their patience in welcoming their death, &amp; their duetiful minds towardes her most excellent Maiestie</pz:metadata>
+    <pz:metadata type="publication-place">London :</pz:metadata>
+    <pz:metadata type="publication-name">Imprinted by Iohn Wolfe and are to be sold [by W. Wright] at the middle shop in the Poultry, ioyning S. Mildreds Church,</pz:metadata>
+    <pz:metadata type="publication-date">[1583?]</pz:metadata>
+    <pz:metadata type="physical-extent">[12] p</pz:metadata>
+    <pz:metadata type="physical-format"/>
+    <pz:metadata type="physical-dimensions"/>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="description">In verse</pz:metadata>
+    <pz:metadata type="description">The first poem is signed: Thomas Walton alias Purser</pz:metadata>
+    <pz:metadata type="description">Clinton's full name and bookseller's name from, and publication date conjectured by, STC</pz:metadata>
+    <pz:metadata type="description">Signatures: A⁴ B²</pz:metadata>
+    <pz:metadata type="description">Reproduction of the original in the Bodleian Library</pz:metadata>
+    <pz:metadata type="subject">Electronic texts.</pz:metadata>
+    <pz:metadata type="subject-long">Electronic texts., local</pz:metadata>
+    <pz:metadata type="subject">Pirates</pz:metadata>
+    <pz:metadata type="subject-long">Pirates, England, Early works to 1800.</pz:metadata>
+    <pz:metadata type="electronic-url">http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</pz:metadata>
+    <pz:metadata type="electronic-text">Get resource</pz:metadata>
+    <pz:metadata type="electronic-note">Restricted to UC campuses</pz:metadata>
+    <pz:metadata type="electronic-format-instruction"/>
+    <pz:metadata type="electronic-format-type"/>
+    <pz:metadata type="electronic-url">http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</pz:metadata>
+    <pz:metadata type="electronic-text">Get resource</pz:metadata>
+    <pz:metadata type="electronic-note">Restricted to UC campuses</pz:metadata>
+    <pz:metadata type="electronic-format-instruction"/>
+    <pz:metadata type="electronic-format-type"/>
+    <pz:metadata type="electronic-url">http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</pz:metadata>
+    <pz:metadata type="electronic-text">Get resource</pz:metadata>
+    <pz:metadata type="electronic-note">Restricted to UC campuses</pz:metadata>
+    <pz:metadata type="electronic-format-instruction"/>
+    <pz:metadata type="electronic-format-type"/>
+    <pz:metadata type="electronic-url">http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</pz:metadata>
+    <pz:metadata type="electronic-text">Get resource</pz:metadata>
+    <pz:metadata type="electronic-note">Restricted to UC campuses</pz:metadata>
+    <pz:metadata type="electronic-format-instruction"/>
+    <pz:metadata type="electronic-format-type"/>
+    <pz:metadata type="callnumber">Internet</pz:metadata>
+    <pz:metadata type="medium">book (electronic)</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+    <pz:metadata type="iii-id">DVXL</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc8.xml b/test/tmarc8.xml
new file mode 100644 (file)
index 0000000..b1e7c76
--- /dev/null
@@ -0,0 +1,141 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+  <l>02647nam^a2200469^^^4500</l>
+  <c001>UCD-002592301</c001>
+  <c005>20061209034435.0</c005>
+  <c006>m        d        </c006>
+  <c007>cr bn |||a|bb|</c007>
+  <c008>920330s1583    enk     s     000 0 eng d</c008>
+  <d035 i1=" " i2=" ">
+    <sa>99851339eo</sa>
+  </d035>
+  <d037 i1=" " i2=" ">
+    <sa>CL0036000039</sa>
+    <sb>ProQuest Information and Learning. 300 N. Zeeb Rd., Ann Arbor, MI 48106</sb>
+  </d037>
+  <d040 i1=" " i2=" ">
+    <sa>Cu-RivES</sa>
+    <sc>Cu-RivES</sc>
+    <sd>CStRLIN</sd>
+    <se>dcrb</se>
+    <sd>WaOLN</sd>
+  </d040>
+  <d100 i1="1" i2=" ">
+    <sa>Clinton, Atkinson.</sa>
+  </d100>
+  <d245 i1="0" i2="0">
+    <sa>Clinton, Purser &amp; Arnold, to their countreymen wheresoeuer</sa>
+    <sh>[electronic resource] :</sh>
+    <sb>Wherein is described by their own hands their vnfeigned penitence for their offences past: their patience in welcoming their death, &amp; their duetiful minds towardes her most excellent Maiestie</sb>
+  </d245>
+  <d246 i1="2" i2=" ">
+    <sa>Clinton, Purser &amp; Arnold, to their countreymen wheresoever</sa>
+  </d246>
+  <d246 i1="2" i2=" ">
+    <sa>Clinton, Purser &amp; Arnold, to their countreymen wheresoever</sa>
+  </d246>
+  <d260 i1=" " i2=" ">
+    <sa>London :</sa>
+    <sb>Imprinted by Iohn Wolfe and are to be sold [by W. Wright] at the middle shop in the Poultry, ioyning S. Mildreds Church,</sb>
+    <sc>[1583?]</sc>
+  </d260>
+  <d300 i1=" " i2=" ">
+    <sa>[12] p</sa>
+  </d300>
+  <d500 i1=" " i2=" ">
+    <sa>In verse</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>The first poem is signed: Thomas Walton alias Purser</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>Clinton&apos;s full name and bookseller&apos;s name from, and publication date conjectured by, STC</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>Signatures: A⁴ B²</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>Reproduction of the original in the Bodleian Library</sa>
+  </d500>
+  <d510 i1="4" i2=" ">
+    <sa>STC (2nd ed.)</sa>
+    <sc>5431</sc>
+  </d510>
+  <d530 i1=" " i2=" ">
+    <sa>Also issued in print and on microform</sa>
+  </d530>
+  <d533 i1=" " i2=" ">
+    <sa>Electronic reproduction.</sa>
+    <sn>Mode of access: World Wide Web.</sn>
+    <sn>Restricted to UC campuses</sn>
+  </d533>
+  <d655 i1=" " i2="7">
+    <sa>Electronic texts.</sa>
+    <s2>local</s2>
+  </d655>
+  <d650 i1=" " i2="0">
+    <sa>Pirates</sa>
+    <sz>England</sz>
+    <sv>Early works to 1800.</sv>
+  </d650>
+  <d700 i1="1" i2=" ">
+    <sa>Walton, Thomas,</sa>
+    <sd>fl. 1583.</sd>
+    <s4>aut</s4>
+  </d700>
+  <d700 i1="1" i2=" ">
+    <sa>Arnold,</sa>
+    <sd>fl. 1583.</sd>
+    <s4>aut</s4>
+  </d700>
+  <d793 i1="0" i2=" ">
+    <sa>Early English books online</sa>
+  </d793>
+  <d852 i1=" " i2=" ">
+    <sa>MER</sa>
+    <sb>kmain</sb>
+  </d852>
+  <d852 i1=" " i2=" ">
+    <sa>SCB</sa>
+    <sb>nnet</sb>
+  </d852>
+  <d856 i1="4" i2="0">
+    <sz>Restricted to UC campuses</sz>
+    <sx>SCP UCSD</sx>
+    <su>http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</su>
+  </d856>
+  <d856 i1="4" i2="0">
+    <sz>Restricted to UC campuses</sz>
+    <sx>SCP UCSD</sx>
+    <su>http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</su>
+  </d856>
+  <d852 i1=" " i2=" ">
+    <sa>DVXL</sa>
+    <sb>ELECT-GEN</sb>
+    <sh>Internet</sh>
+  </d852>
+  <d852 i1=" " i2=" ">
+    <sa>LAGE</sa>
+    <sb>in</sb>
+    <s3>Online access</s3>
+  </d852>
+  <d856 i1="4" i2="0">
+    <sz>Restricted to UC campuses</sz>
+    <sx>SCP UCSD</sx>
+    <su>http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</su>
+  </d856>
+  <d856 i1="4" i2="0">
+    <sz>Restricted to UC campuses</sz>
+    <su>http://gateway.proquest.com/openurl?ctx_ver=Z39.88-2003&amp;res_id=xri:eebo&amp;rft_val_fmt=&amp;rft_id=xri:eebo:image:16610</su>
+    <sx>CDL</sx>
+  </d856>
+  <d830 i1=" " i2="0">
+    <sa>Early English books, 1475-1640 ;</sa>
+    <sv>1406:13.</sv>
+  </d830>
+  <d901 i1=" " i2=" ">
+    <sa>DVXL</sa>
+    <sb>002592301</sb>
+  </d901>
+</r>
+</collection>
diff --git a/test/tmarc9.res.xml b/test/tmarc9.res.xml
new file mode 100644 (file)
index 0000000..305b1b1
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<collection xmlns="http://www.indexdata.com/turbomarc" xmlns:pz="http://www.indexdata.com/pazpar2/1.0" xmlns:tmarc="http://www.indexdata.com/turbomarc">
+  <pz:record>
+    <pz:metadata type="id">  2005336282</pz:metadata>
+    <pz:metadata type="oclc-number">(OCoLC)170490164</pz:metadata>
+    <pz:metadata type="lccn">  2005336282</pz:metadata>
+    <pz:metadata type="system-control-nr">(OCoLC)170490164</pz:metadata>
+    <pz:metadata type="date">2005-</pz:metadata>
+    <pz:metadata type="title">Qaḍāʼ al-usrah :</pz:metadata>
+    <pz:metadata type="title-remainder">majallah mutakhaṣṣiṣah /</pz:metadata>
+    <pz:metadata type="title-responsibility">Wizārat al-ʻAdl.</pz:metadata>
+    <pz:metadata type="title-dates"/>
+    <pz:metadata type="title-medium"/>
+    <pz:metadata type="title-number-section"/>
+    <pz:metadata type="title-complete">Qaḍāʼ al-usrah : majallah mutakhaṣṣiṣah /</pz:metadata>
+    <pz:metadata type="publication-place">al-Rabāṭ :</pz:metadata>
+    <pz:metadata type="publication-name">Jamʻīyat Nashr al-Maʻlūmah al-Qānūnīyah wa-al-Qaḍāʼīyah,</pz:metadata>
+    <pz:metadata type="publication-date">2005-</pz:metadata>
+    <pz:metadata type="physical-extent">v. :</pz:metadata>
+    <pz:metadata type="physical-format">ill. ;</pz:metadata>
+    <pz:metadata type="physical-dimensions">24 cm.</pz:metadata>
+    <pz:metadata type="physical-accomp"/>
+    <pz:metadata type="physical-unittype"/>
+    <pz:metadata type="physical-unitsize"/>
+    <pz:metadata type="physical-specified"/>
+    <pz:metadata type="description">Some issues have also a distinctive title.</pz:metadata>
+    <pz:metadata type="description">Latest issue consulted: al-ʻAdad 3. (Dujanbir 2006).</pz:metadata>
+    <pz:metadata type="subject">Domestic relations (Islamic law)</pz:metadata>
+    <pz:metadata type="subject-long">Domestic relations (Islamic law), Morocco.</pz:metadata>
+    <pz:metadata type="subject">Divorce (Islamic law)</pz:metadata>
+    <pz:metadata type="subject-long">Divorce (Islamic law)</pz:metadata>
+    <pz:metadata type="subject">Marriage law</pz:metadata>
+    <pz:metadata type="subject-long">Marriage law, Morocco.</pz:metadata>
+    <pz:metadata type="subject">Law reports, digests, etc.</pz:metadata>
+    <pz:metadata type="subject-long">Law reports, digests, etc., Morocco.</pz:metadata>
+    <pz:metadata type="medium">journal</pz:metadata>
+    <pz:metadata type="has-fulltext">no</pz:metadata>
+  </pz:record>
+</collection>
diff --git a/test/tmarc9.xml b/test/tmarc9.xml
new file mode 100644 (file)
index 0000000..7e070cc
--- /dev/null
@@ -0,0 +1,157 @@
+<collection xmlns="http://www.indexdata.com/turbomarc">
+<r>
+  <l>02075cas a22005055a 4500</l>
+  <c001>  2005336282</c001>
+  <c003>DLC</c003>
+  <c005>20070911033614.0</c005>
+  <c008>070910c20059999mr uu p      f0    0ara  </c008>
+  <d010 i1=" " i2=" ">
+    <sa>  2005336282</sa>
+  </d010>
+  <d012 i1=" " i2=" ">
+    <sa>-3-7-0709110002-p-----    </sa>
+  </d012>
+  <d035 i1=" " i2=" ">
+    <sa>(OCoLC)170490164</sa>
+  </d035>
+  <d906 i1=" " i2=" ">
+    <sa>7</sa>
+    <sb>und</sb>
+    <sc>serials</sc>
+    <sd>u</sd>
+    <se>ncip</se>
+    <sf>19</sf>
+    <sg>n-oclcserc</sg>
+  </d906>
+  <d040 i1=" " i2=" ">
+    <sa>DLC</sa>
+    <sc>DLC</sc>
+    <sd>DLC</sd>
+  </d040>
+  <d041 i1="0" i2=" ">
+    <sa>ara</sa>
+    <sa>fre</sa>
+  </d041>
+  <d042 i1=" " i2=" ">
+    <sa>lc</sa>
+  </d042>
+  <d043 i1=" " i2=" ">
+    <sa>f-mr---</sa>
+  </d043>
+  <d050 i1="0" i2="0">
+    <sa>IN PROCESS</sa>
+  </d050>
+  <d066 i1=" " i2=" ">
+    <sc>(3</sc>
+  </d066>
+  <d245 i1="0" i2="0">
+    <s6>880-01</s6>
+    <sa>Qaḍāʼ al-usrah :</sa>
+    <sb>majallah mutakhaṣṣiṣah /</sb>
+    <sc>Wizārat al-ʻAdl.</sc>
+  </d245>
+  <d246 i1="1" i2="3">
+    <sa>Justice de la famille</sa>
+  </d246>
+  <d246 i1="1" i2="3">
+    <s6>880-02</s6>
+    <sa>Majallat Qaḍāʼ al-usrah</sa>
+    <sf>&lt;2006&gt;</sf>
+  </d246>
+  <d260 i1=" " i2=" ">
+    <s6>880-03</s6>
+    <sa>al-Rabāṭ :</sa>
+    <sb>Jamʻīyat Nashr al-Maʻlūmah al-Qānūnīyah wa-al-Qaḍāʼīyah,</sb>
+    <sc>2005-</sc>
+  </d260>
+  <d300 i1=" " i2=" ">
+    <sa>v. :</sa>
+    <sb>ill. ;</sb>
+    <sc>24 cm.</sc>
+  </d300>
+  <d310 i1=" " i2=" ">
+    <sa>Irregular (semiannual)</sa>
+  </d310>
+  <d362 i1="0" i2=" ">
+    <s6>880-04</s6>
+    <sa>al-ʻAdad 1. (Yūlyūz 2005)-</sa>
+  </d362>
+  <d490 i1="0" i2=" ">
+    <s6>880-05</s6>
+    <sa>Manshūrāt Jamʻīyat Nashr al-Maʻlūmah al-Qānūnīyah wa-al-Qaḍāʼīyah</sa>
+  </d490>
+  <d500 i1=" " i2=" ">
+    <sa>Some issues have also a distinctive title.</sa>
+  </d500>
+  <d500 i1=" " i2=" ">
+    <sa>Latest issue consulted: al-ʻAdad 3. (Dujanbir 2006).</sa>
+  </d500>
+  <d546 i1=" " i2=" ">
+    <sa>Chiefly in Arabic; some French.</sa>
+  </d546>
+  <d650 i1=" " i2="0">
+    <sa>Domestic relations (Islamic law)</sa>
+    <sz>Morocco.</sz>
+  </d650>
+  <d650 i1=" " i2="0">
+    <sa>Divorce (Islamic law)</sa>
+  </d650>
+  <d650 i1=" " i2="0">
+    <sa>Marriage law</sa>
+    <sz>Morocco.</sz>
+  </d650>
+  <d650 i1=" " i2="0">
+    <sa>Law reports, digests, etc.</sa>
+    <sz>Morocco.</sz>
+  </d650>
+  <d710 i1="2" i2=" ">
+    <s6>880-06</s6>
+    <sa>Jamʻīyat Nashr al-Maʻlūmah al-Qānūnīyah wa-al-Qaḍāʼīyah.</sa>
+  </d710>
+  <d710 i1="1" i2=" ">
+    <s6>880-07</s6>
+    <sa>Morocco.</sa>
+    <sb>Wizārat al-ʻAdl.</sb>
+  </d710>
+  <d850 i1=" " i2=" ">
+    <sa>DLC</sa>
+  </d850>
+  <d880 i1="0" i2="0">
+    <s6>245-01/(3/r</s6>
+    <sa>قضاء الأسرة :</sa>
+    <sb>مجلة متخصصة /</sb>
+    <sc>وزارة العدل.</sc>
+  </d880>
+  <d880 i1="1" i2="3">
+    <s6>246-02/(3/r</s6>
+    <sa>مجلة قضاء الأسرة</sa>
+    <sf>&lt;2006&gt;</sf>
+  </d880>
+  <d880 i1=" " i2=" ">
+    <s6>260-03/(3/r</s6>
+    <sa>الرباط :</sa>
+    <sb>جمعية نشر المعلومة القانونية والقضائية،</sb>
+    <sc>2005-</sc>
+  </d880>
+  <d880 i1="0" i2=" ">
+    <s6>362-04/(3/r</s6>
+    <sa>العدد 1. (يوليوز 2005)-</sa>
+  </d880>
+  <d880 i1="0" i2=" ">
+    <s6>490-05/(3/r</s6>
+    <sa>منشورات جمعية نشر المعلومة القانونية والقضائية</sa>
+  </d880>
+  <d880 i1="2" i2=" ">
+    <s6>710-06/(3/r</s6>
+    <sa>جمعية نشر المعلومة القانونية والقضائية.</sa>
+  </d880>
+  <d880 i1="1" i2=" ">
+    <s6>710-07/(3/r</s6>
+    <sa>Morocco.</sa>
+    <sb>وزارة العدل.</sb>
+  </d880>
+  <d936 i1=" " i2=" ">
+    <sa>LC Cairo Office [we 45]</sa>
+  </d936>
+</r>
+</collection>