From 09093de3a1ef84e67b0a3f7192f396238a871116 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 21 Sep 2009 16:17:12 +0200 Subject: [PATCH] Add test for marc map --- test/Makefile.am | 2 +- test/marc21.mmap | 83 +++++++++++++++++++++++++++++++++++++++++++++++++ test/test_http_29.res | 1 + test/test_http_30.res | 1 + test/test_http_31.res | 1 + test/test_http_32.res | 26 ++++++++++++++++ test/test_http_urls | 5 +++ 7 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 test/marc21.mmap create mode 100644 test/test_http_29.res create mode 100644 test/test_http_30.res create mode 100644 test/test_http_31.res create mode 100644 test/test_http_32.res diff --git a/test/Makefile.am b/test/Makefile.am index de29b11..f87c6e5 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 index 0000000..17a5720 --- /dev/null +++ b/test/marc21.mmap @@ -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 index 0000000..e057057 --- /dev/null +++ b/test/test_http_29.res @@ -0,0 +1 @@ +OK41 \ No newline at end of file diff --git a/test/test_http_30.res b/test/test_http_30.res new file mode 100644 index 0000000..523d190 --- /dev/null +++ b/test/test_http_30.res @@ -0,0 +1 @@ +OK \ No newline at end of file diff --git a/test/test_http_31.res b/test/test_http_31.res new file mode 100644 index 0000000..d2e0e58 --- /dev/null +++ b/test/test_http_31.res @@ -0,0 +1 @@ +OK \ No newline at end of file diff --git a/test/test_http_32.res b/test/test_http_32.res new file mode 100644 index 0000000..d660d8b --- /dev/null +++ b/test/test_http_32.res @@ -0,0 +1,26 @@ + +OK +0 +3 +3 +0 +3 + + +OIL/GAS DRILLING +OIL/GAS DRILLING +title oil gas drilling author oil gas drilling medium book + + + +GROUNDWATER RESOURCE MAPS - COUNTY SERIES +GROUNDWATER RESOURCE MAPS - COUNTY SERIES +title groundwater resource maps county series author groundwater resource maps county series medium book + + + +BIBLIOGRAPHY OF MAINE GEOLOGY +BIBLIOGRAPHY OF MAINE GEOLOGY +title bibliography of maine geology author bibliography of maine geology medium book + + diff --git a/test/test_http_urls b/test/test_http_urls index 1361d16..00c08cc 100644 --- a/test/test_http_urls +++ b/test/test_http_urls @@ -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 -- 1.7.10.4