Add test for marc map
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Sep 2009 14:17:12 +0000 (16:17 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Sep 2009 14:17:12 +0000 (16:17 +0200)
test/Makefile.am
test/marc21.mmap [new file with mode: 0644]
test/test_http_29.res [new file with mode: 0644]
test/test_http_30.res [new file with mode: 0644]
test/test_http_31.res [new file with mode: 0644]
test/test_http_32.res [new file with mode: 0644]
test/test_http_urls

index de29b11..f87c6e5 100644 (file)
@@ -3,7 +3,7 @@ check_SCRIPTS = test_http.sh test_icu.sh
 
 EXTRA_DIST = run_pazpar2.sh marc21.xsl z3950_indexdata_com_marc.xml \
        z3950_indexdata_com_gils.xml test_http.cfg \
-       gils_service.xml marc_service.xml \
+       gils_service.xml marc_service.xml marc21.mmap \
        test_http_urls test_icu.cfg test_icu_urls $(check_SCRIPTS)
 
 TESTS = $(check_SCRIPTS)
diff --git a/test/marc21.mmap b/test/marc21.mmap
new file mode 100644 (file)
index 0000000..17a5720
--- /dev/null
@@ -0,0 +1,83 @@
+001 $ id
+010 a lccn
+020 a isbn
+022 a issn
+027 a tech-rep-nr
+035 a system-control-nr
+100 a author
+100 c author-title
+100 d author-date
+110 a corporate-name
+110 c corporate-location
+110 d corporate-date
+111 a meeting-name
+111 c meeting-location
+111 d meeting-date
+260 c date
+245 a title
+245 b title-remainder
+245 c title-responsibility
+245 f title-dates
+245 h title-medium
+245 n title-number-section
+250 a edition
+260 a publication-place
+260 b publication-name
+260 c publication-date
+300 a physical-extent
+300 b physical-format
+300 c physical-dimensions
+300 e physical-accomp
+300 f physical-unittype
+300 g physical-unitsize
+300 3 physical-specified
+440 a series-title
+500 $ description
+505 $ description
+518 $ description
+520 $ description
+522 $ description
+600 a subject
+600 a subject
+610 a subject
+610 a subject
+611 a subject
+611 a subject
+630 a subject
+630 a subject
+648 a subject
+648 a subject
+650 a subject
+650 * subject-long
+651 a subject
+651 * subject-long
+653 a subject
+653 * subject-long
+654 a subject
+654 * subject-long
+655 a subject
+655 * subject-long
+656 a subject
+656 * subject-long
+657 a subject
+657 * subject-long
+658 a subject
+658 * subject-long
+662 a subject
+662 * subject-long
+69X a subject
+69X * subject-long
+773 * citation
+856 u electronic-url
+856 y electronic-text
+856 3 electronic-text
+856 z electronic-note
+852 y publicnote
+852 h callnumber
+900 a fulltext
+900 b fulltext
+901 a iii-id
+907 a iii-id
+926 * holding
+948 * holding
+991 * holding
diff --git a/test/test_http_29.res b/test/test_http_29.res
new file mode 100644 (file)
index 0000000..e057057
--- /dev/null
@@ -0,0 +1 @@
+<init><status>OK</status><session>4</session><protocol>1</protocol></init>
\ No newline at end of file
diff --git a/test/test_http_30.res b/test/test_http_30.res
new file mode 100644 (file)
index 0000000..523d190
--- /dev/null
@@ -0,0 +1 @@
+<settings><status>OK</status></settings>
\ No newline at end of file
diff --git a/test/test_http_31.res b/test/test_http_31.res
new file mode 100644 (file)
index 0000000..d2e0e58
--- /dev/null
@@ -0,0 +1 @@
+<search><status>OK</status></search>
\ No newline at end of file
diff --git a/test/test_http_32.res b/test/test_http_32.res
new file mode 100644 (file)
index 0000000..d660d8b
--- /dev/null
@@ -0,0 +1,26 @@
+<show>
+<status>OK</status>
+<activeclients>0</activeclients>
+<merged>3</merged>
+<total>3</total>
+<start>0</start>
+<num>3</num>
+<hit>
+
+<md-title>OIL/GAS DRILLING</md-title><location id="z3950.indexdata.com/gils" name="gils">
+<md-title>OIL/GAS DRILLING</md-title></location>
+<recid>title oil gas drilling author oil gas drilling medium book</recid>
+</hit>
+<hit>
+
+<md-title>GROUNDWATER RESOURCE MAPS - COUNTY SERIES</md-title><location id="z3950.indexdata.com/gils" name="gils">
+<md-title>GROUNDWATER RESOURCE MAPS - COUNTY SERIES</md-title></location>
+<recid>title groundwater resource maps county series author groundwater resource maps county series medium book</recid>
+</hit>
+<hit>
+
+<md-title>BIBLIOGRAPHY OF MAINE GEOLOGY</md-title><location id="z3950.indexdata.com/gils" name="gils">
+<md-title>BIBLIOGRAPHY OF MAINE GEOLOGY</md-title></location>
+<recid>title bibliography of maine geology author bibliography of maine geology medium book</recid>
+</hit>
+</show>
index 1361d16..00c08cc 100644 (file)
@@ -31,3 +31,8 @@ http://localhost:9763/search.pz2?command=init&service=gils
 http://localhost:9763/search.pz2?session=2&command=search&query=utah
 2
 http://localhost:9763/search.pz2?session=2&command=show&start=0&number=1&block=1
+http://localhost:9763/search.pz2?command=init&clear=1
+http://localhost:9763/search.pz2?session=3&command=settings&pz:name[z3950.indexdata.com%2Fgils]=gils&pz:requestsyntax[z3950.indexdata.com%2Fgils]=usmarc&pz:nativesyntax[z3950.indexdata.com%2Fgils]=iso2709&pz:xslt[z3950.indexdata.com%2Fgils]=marc21.mmap
+http://localhost:9763/search.pz2?session=3&command=search&query=computer
+2
+http://localhost:9763/search.pz2?session=3&command=show&start=0&number=1&block=1