├── .github └── workflows │ ├── build-c23-yaz.yaml │ ├── build-complete-yaz.yaml │ └── build-minimal-yaz.yaml ├── .gitignore ├── .gitmodules ├── .project ├── .travis.yml ├── .vscode ├── c_cpp_properties.json └── settings.json ├── Doxyfile.in ├── IDMETA ├── LICENSE ├── Makefile.am ├── NEWS ├── README.md ├── WORKSPACE ├── buildconf.sh ├── client ├── .gitignore ├── BUILD ├── Makefile.am ├── admin.c ├── admin.h ├── bertorture.c ├── client.c ├── default.bib ├── fhistory.c ├── fhistory.h ├── tabcomplete.c └── tabcomplete.h ├── configure.ac ├── debian ├── .gitignore ├── compat ├── control ├── libyaz5-dev.install ├── libyaz5-dev.manpages ├── libyaz5.install ├── rules ├── yaz-doc.install ├── yaz-icu.install ├── yaz-icu.manpages ├── yaz-illclient.install ├── yaz-illclient.manpages ├── yaz.install └── yaz.manpages ├── doc ├── .gitignore ├── BUILD ├── Makefile.am ├── apilayer.obj ├── apilayer.png ├── bib1-attr-man.xml ├── book.xml ├── entities.ent ├── gfs-options.xml ├── gfs-synopsis.xml ├── gfs-virtual.xml ├── id.html5.xsl ├── local0.ent.in ├── profiles.sgml ├── yaz-asncomp-man.xml ├── yaz-client-man.xml ├── yaz-config-man.xml ├── yaz-iconv-man.xml ├── yaz-icu-man.xml ├── yaz-illclient-man.xml ├── yaz-json-parse-man.xml ├── yaz-log-man.xml ├── yaz-man.xml ├── yaz-marcdump-man.xml ├── yaz-record-conv-man.xml ├── yaz-url-man.xml ├── yaz-ztest-man.xml └── zoomsh-man.xml ├── etc ├── MARC21slim2DC.xsl ├── MARC21slim2MODS.xsl ├── MARC21slim2RDFDC.xsl ├── MARC21slimUtils.xsl ├── Makefile.am ├── cqlpass.properties ├── debian.init.d ├── maps.xml ├── marc21_to_endnote.xsl ├── opacxml.xsd ├── pqf.properties └── yazgfs.xml ├── header.c ├── lib └── .gitignore ├── src ├── .gitignore ├── BUILD ├── Makefile.am ├── advancegreek.c ├── atoin.c ├── attset_bib1.csv ├── backtrace.c ├── base64.c ├── ber_any.c ├── ber_bit.c ├── ber_bool.c ├── ber_int.c ├── ber_len.c ├── ber_null.c ├── ber_oct.c ├── ber_oid.c ├── ber_tag.c ├── bib1.csv ├── ccl_stop_words.c ├── cclerrms.c ├── cclfind.c ├── cclp.h ├── cclptree.c ├── cclqfile.c ├── cclqual.c ├── cclstr.c ├── ccltoken.c ├── cclxmlconfig.c ├── charconv.sgm ├── charconv.tcl ├── charconv_cjk.xml ├── charneg-3.asn ├── charneg.c ├── codetables-iso5426.xml ├── codetables.xml ├── comstack.c ├── condvar.c ├── cookie.c ├── copy_types.c ├── cql.y ├── cql1.2.y ├── cql2.0.y ├── cql2ccl.c ├── cql_sortkeys.c ├── cqlstdio.c ├── cqlstrer.c ├── cqlstring.c ├── cqltransform.c ├── cqlutil.c ├── csvtodiag.tcl ├── daemon.c ├── datetime.asn ├── diag-entry.c ├── diag-entry.h ├── diag_map.c ├── dirent.c ├── dumpber.c ├── elementset.c ├── errno.c ├── esadmin.asn ├── esupdate.asn ├── eventl.c ├── eventl.h ├── facet.asn ├── facet.c ├── file_glob.c ├── gettimeofday.c ├── grs1disp.c ├── http.c ├── iconv-p.h ├── iconv_decode_danmarc.c ├── iconv_decode_iso5426.c ├── iconv_decode_marc8.c ├── iconv_encode_danmarc.c ├── iconv_encode_iso_8859_1.c ├── iconv_encode_marc8.c ├── iconv_encode_wchar.c ├── icu_casemap.c ├── icu_chain.c ├── icu_sortkey.c ├── icu_tokenizer.c ├── icu_transform.c ├── icu_utf16.c ├── icu_utf8.c ├── ill-get.c ├── ill.tcl ├── ill9702.asn ├── init_diag.c ├── init_globals.c ├── initopt.c ├── iso5428.c ├── item-req.asn ├── json.c ├── log.c ├── logrpn.c ├── malloc_info.c ├── marc_read_iso2709.c ├── marc_read_json.c ├── marc_read_line.c ├── marc_read_sax.c ├── marc_read_xml.c ├── marcdisp.c ├── match_glob.c ├── matchstr.c ├── mime.c ├── mime.h ├── mterm2.asn ├── mutex-p.h ├── mutex.c ├── nmem.c ├── nmemsdup.c ├── oclc-ill-req-ext.asn ├── oclcui.asn ├── odr-priv.h ├── odr.c ├── odr_any.c ├── odr_bit.c ├── odr_bool.c ├── odr_choice.c ├── odr_cons.c ├── odr_enum.c ├── odr_int.c ├── odr_mem.c ├── odr_null.c ├── odr_oct.c ├── odr_oid.c ├── odr_seq.c ├── odr_tag.c ├── odr_use.c ├── odr_util.c ├── oid.csv ├── oid_db.c ├── oid_util.c ├── oidtoc.tcl ├── opac_to_xml.c ├── options.c ├── otherinfo.c ├── poll.c ├── pquery.c ├── proxunit.c ├── prt-ext.c ├── query-charset.c ├── querytowrbuf.c ├── readconf.c ├── record_conv.c ├── record_render.c ├── requestq.c ├── retrieval.c ├── rpn2cql.c ├── rpn2solr.c ├── sc.c ├── seshigh.c ├── session.h ├── siconv.c ├── snprintf.c ├── soap.c ├── solr.c ├── solrtransform.c ├── sortspec.c ├── spipe.c ├── sru-p.h ├── sru_facet.c ├── sru_update.csv ├── srw.c ├── srw.csv ├── srwutil.c ├── statserv.c ├── stemmer.c ├── tcpdchk.c ├── tcpip.c ├── test.c ├── thread_create.c ├── thread_id.c ├── timing.c ├── tokenizer.c ├── tpath.c ├── ucs4.c ├── univres.asn ├── unix.c ├── uri.c ├── url.c ├── utf8.c ├── util.bzl ├── version.c ├── wrbuf.c ├── wrbuf_sha1.c ├── xcqlutil.c ├── xmalloc.c ├── xml_add.c ├── xml_get.c ├── xml_include.c ├── xml_match.c ├── xml_to_opac.c ├── xmlerror.c ├── xmlquery.c ├── yaz-asncomp ├── yaz-ccl.c ├── yaz │ ├── .gitignore │ ├── backend.h │ ├── backtrace.h │ ├── base64.h │ ├── ccl.h │ ├── ccl_xml.h │ ├── charneg.h │ ├── comstack.h │ ├── cookie.h │ ├── copy_types.h │ ├── cql.h │ ├── daemon.h │ ├── dirent.h │ ├── errno.h │ ├── facet.h │ ├── file_glob.h │ ├── gettimeofday.h │ ├── icu.h │ ├── icu_I18N.h │ ├── ill.h │ ├── json.h │ ├── log.h │ ├── logrpn.h │ ├── malloc_info.h │ ├── marc_sax.h │ ├── marcdisp.h │ ├── match_glob.h │ ├── matchstr.h │ ├── mutex.h │ ├── nmem.h │ ├── nmem_xml.h │ ├── odr.h │ ├── oid_db.h │ ├── oid_util.h │ ├── options.h │ ├── otherinfo.h │ ├── poll.h │ ├── pquery.h │ ├── proto.h │ ├── proxunit.h │ ├── prt-ext.h │ ├── query-charset.h │ ├── querytowrbuf.h │ ├── readconf.h │ ├── record_conv.h │ ├── record_render.h │ ├── retrieval.h │ ├── rpn2cql.h │ ├── rpn2solr.h │ ├── sc.h │ ├── shptr.h │ ├── snprintf.h │ ├── soap.h │ ├── solr.h │ ├── sortspec.h │ ├── spipe.h │ ├── srw.h │ ├── stamp-h.in │ ├── statserv.h │ ├── stemmer.h │ ├── tcpip.h │ ├── test.h │ ├── thread_create.h │ ├── thread_id.h │ ├── timing.h │ ├── tokenizer.h │ ├── tpath.h │ ├── unix.h │ ├── url.h │ ├── wrbuf.h │ ├── xmalloc.h │ ├── xml_get.h │ ├── xml_include.h │ ├── xmlquery.h │ ├── xmltypes.h │ ├── yaz-ccl.h │ ├── yaz-iconv.h │ ├── yaz-util.h │ ├── yaz-version.h.in │ ├── yconfig.h │ ├── zgdu.h │ └── zoom.h ├── z.tcl ├── z3950v3.asn ├── zgdu.c ├── zget.c ├── zoom-c.c ├── zoom-event.c ├── zoom-memcached.c ├── zoom-opt.c ├── zoom-p.h ├── zoom-query.c ├── zoom-record-cache.c ├── zoom-socket.c ├── zoom-sru.c └── zoom-z3950.c ├── tab └── gils-v1 │ ├── gils.abs │ ├── gils.att │ └── gils.tag ├── test ├── .gitignore ├── Makefile.am ├── cql │ ├── .gitignore │ ├── 1.1.err │ ├── 1.1.out │ ├── 1.10.err │ ├── 1.10.out │ ├── 1.11.err │ ├── 1.11.out │ ├── 1.2.err │ ├── 1.2.out │ ├── 1.3.err │ ├── 1.3.out │ ├── 1.4.err │ ├── 1.4.out │ ├── 1.5.err │ ├── 1.5.out │ ├── 1.6.err │ ├── 1.6.out │ ├── 1.7.err │ ├── 1.7.out │ ├── 1.8.err │ ├── 1.8.out │ ├── 1.9.err │ ├── 1.9.out │ ├── 10.1.err │ ├── 10.1.out │ ├── 10.10.err │ ├── 10.10.out │ ├── 10.2.err │ ├── 10.2.out │ ├── 10.3.err │ ├── 10.3.out │ ├── 10.4.err │ ├── 10.4.out │ ├── 10.5.err │ ├── 10.5.out │ ├── 10.6.err │ ├── 10.6.out │ ├── 10.7.err │ ├── 10.7.out │ ├── 10.8.err │ ├── 10.8.out │ ├── 10.9.err │ ├── 10.9.out │ ├── 11.1.err │ ├── 11.1.out │ ├── 11.2.err │ ├── 11.2.out │ ├── 11.3.err │ ├── 11.3.out │ ├── 11.4.err │ ├── 11.4.out │ ├── 11.5.err │ ├── 11.5.out │ ├── 11.6.err │ ├── 11.6.out │ ├── 11.7.err │ ├── 11.7.out │ ├── 12.1.err │ ├── 12.1.out │ ├── 12.2.err │ ├── 12.2.out │ ├── 13.1.err │ ├── 13.1.out │ ├── 13.2.err │ ├── 13.2.out │ ├── 2.1.err │ ├── 2.1.out │ ├── 2.10.err │ ├── 2.10.out │ ├── 2.11.err │ ├── 2.11.out │ ├── 2.12.err │ ├── 2.12.out │ ├── 2.13.err │ ├── 2.13.out │ ├── 2.14.err │ ├── 2.14.out │ ├── 2.2.err │ ├── 2.2.out │ ├── 2.3.err │ ├── 2.3.out │ ├── 2.4.err │ ├── 2.4.out │ ├── 2.5.err │ ├── 2.5.out │ ├── 2.6.err │ ├── 2.6.out │ ├── 2.7.err │ ├── 2.7.out │ ├── 2.8.err │ ├── 2.8.out │ ├── 2.9.err │ ├── 2.9.out │ ├── 3.1.err │ ├── 3.1.out │ ├── 3.2.err │ ├── 3.2.out │ ├── 3.3.err │ ├── 3.3.out │ ├── 3.4.err │ ├── 3.4.out │ ├── 3.5.err │ ├── 3.5.out │ ├── 3.6.err │ ├── 3.6.out │ ├── 3.7.err │ ├── 3.7.out │ ├── 3.8.err │ ├── 3.8.out │ ├── 3.9.err │ ├── 3.9.out │ ├── 4.1.err │ ├── 4.1.out │ ├── 4.2.err │ ├── 4.2.out │ ├── 5.1.err │ ├── 5.1.out │ ├── 5.2.err │ ├── 5.2.out │ ├── 5.3.err │ ├── 5.3.out │ ├── 5.4.err │ ├── 5.4.out │ ├── 5.5.err │ ├── 5.5.out │ ├── 5.6.err │ ├── 5.6.out │ ├── 5.7.err │ ├── 5.7.out │ ├── 5.8.err │ ├── 5.8.out │ ├── 6.1.err │ ├── 6.1.out │ ├── 6.2.err │ ├── 6.2.out │ ├── 6.3.err │ ├── 6.3.out │ ├── 6.4.err │ ├── 6.4.out │ ├── 6.5.err │ ├── 6.5.out │ ├── 6.6.err │ ├── 6.6.out │ ├── 7.1.err │ ├── 7.1.out │ ├── 7.2.err │ ├── 7.2.out │ ├── 7.3.err │ ├── 7.3.out │ ├── 8.1.err │ ├── 8.1.out │ ├── 8.2.err │ ├── 8.2.out │ ├── 8.3.err │ ├── 8.3.out │ ├── 9.1.err │ ├── 9.1.out │ ├── 9.2.err │ ├── 9.2.out │ ├── 9.3.err │ ├── 9.3.out │ ├── 9.4.err │ └── 9.4.out ├── cql2pqf-order.txt ├── cql2pqf │ ├── 1.1.err │ ├── 1.1.out │ ├── 1.2.err │ ├── 1.2.out │ ├── 1.3.err │ ├── 1.3.out │ ├── 2.1.err │ ├── 2.1.out │ ├── 2.2.err │ ├── 2.2.out │ ├── 3.1.err │ ├── 3.1.out │ ├── 3.2.err │ ├── 3.2.out │ ├── 3.3.err │ ├── 3.3.out │ ├── 3.4.err │ ├── 3.4.out │ ├── 3.5.err │ ├── 3.5.out │ ├── 3.6.err │ ├── 3.6.out │ ├── 3.7.err │ ├── 3.7.out │ ├── 3.8.err │ ├── 3.8.out │ ├── 3.9.err │ ├── 3.9.out │ ├── 4.1.err │ ├── 4.1.out │ ├── 4.10.err │ ├── 4.10.out │ ├── 4.11.err │ ├── 4.11.out │ ├── 4.12.err │ ├── 4.12.out │ ├── 4.2.err │ ├── 4.2.out │ ├── 4.3.err │ ├── 4.3.out │ ├── 4.4.err │ ├── 4.4.out │ ├── 4.5.err │ ├── 4.5.out │ ├── 4.6.err │ ├── 4.6.out │ ├── 4.7.err │ ├── 4.7.out │ ├── 4.8.err │ ├── 4.8.out │ ├── 4.9.err │ ├── 4.9.out │ ├── 5.1.err │ ├── 5.1.out │ ├── 5.10.err │ ├── 5.10.out │ ├── 5.2.err │ ├── 5.2.out │ ├── 5.3.err │ ├── 5.3.out │ ├── 5.4.err │ ├── 5.4.out │ ├── 5.5.err │ ├── 5.5.out │ ├── 5.6.err │ ├── 5.6.out │ ├── 5.7.err │ ├── 5.7.out │ ├── 5.8.err │ ├── 5.8.out │ ├── 5.9.err │ ├── 5.9.out │ ├── 6.1.err │ ├── 6.1.out │ ├── 6.2.err │ ├── 6.2.out │ ├── 6.3.err │ ├── 6.3.out │ ├── 6.4.err │ ├── 6.4.out │ ├── 6.5.err │ ├── 6.5.out │ ├── 6.6.err │ ├── 6.6.out │ ├── 7.1.err │ ├── 7.1.out │ ├── 7.2.err │ ├── 7.2.out │ ├── 7.3.err │ ├── 7.3.out │ ├── 7.4.err │ ├── 7.4.out │ ├── 7.5.err │ ├── 7.5.out │ ├── 7.6.err │ └── 7.6.out ├── cql2pqfsample ├── cql2xcqlsample ├── marc-files │ ├── marc0.chr │ ├── marc0.json │ ├── marc0.json.marc │ ├── marc0.marc │ ├── marc0.xml │ ├── marc0.xml.marc │ ├── marc1.chr │ ├── marc1.json │ ├── marc1.json.marc │ ├── marc1.marc │ ├── marc1.xml │ ├── marc1.xml.marc │ ├── marc10.chr │ ├── marc10.json │ ├── marc10.json.marc │ ├── marc10.marc │ ├── marc10.xml │ ├── marc10.xml.marc │ ├── marc11.chr │ ├── marc11.json │ ├── marc11.json.marc │ ├── marc11.marc │ ├── marc11.xml │ ├── marc11.xml.marc │ ├── marc12.chr │ ├── marc12.json │ ├── marc12.json.marc │ ├── marc12.marc │ ├── marc12.xml │ ├── marc12.xml.marc │ ├── marc2.chr │ ├── marc2.json │ ├── marc2.json.marc │ ├── marc2.marc │ ├── marc2.xml │ ├── marc2.xml.marc │ ├── marc3.chr │ ├── marc3.json │ ├── marc3.json.marc │ ├── marc3.marc │ ├── marc3.xml │ ├── marc3.xml.marc │ ├── marc4.chr │ ├── marc4.json │ ├── marc4.json.marc │ ├── marc4.marc │ ├── marc4.xml │ ├── marc4.xml.marc │ ├── marc5.chr │ ├── marc5.json │ ├── marc5.json.marc │ ├── marc5.marc │ ├── marc5.xml │ ├── marc5.xml.marc │ ├── marc6.chr │ ├── marc6.json │ ├── marc6.json.marc │ ├── marc6.marc │ ├── marc6.xml │ ├── marc6.xml.marc │ ├── marc7.chr │ ├── marc7.json │ ├── marc7.json.marc │ ├── marc7.marc │ ├── marc7.xml │ ├── marc7.xml.marc │ ├── marc8.chr │ ├── marc8.json │ ├── marc8.json.marc │ ├── marc8.marc │ ├── marc8.xml │ ├── marc8.xml.marc │ ├── marc9.chr │ ├── marc9.json │ ├── marc9.json.marc │ ├── marc9.marc │ ├── marc9.xml │ ├── marc9.xml.marc │ ├── marccol1.u8.1.lst │ ├── marccol1.u8.2.lst │ ├── marccol1.u8.marc │ ├── marccol2.u8.1.lst │ ├── marccol2.u8.2.lst │ ├── marccol2.u8.marc │ ├── marccol3.u8.1.lst │ ├── marccol3.u8.2.lst │ ├── marccol3.u8.marc │ ├── marccol4.u8.1.lst │ ├── marccol4.u8.2.lst │ ├── marccol4.u8.marc │ ├── marccol5.u8.1.lst │ ├── marccol5.u8.2.lst │ ├── marccol5.u8.marc │ ├── tmarc0.xml │ ├── tmarc0.xml.marc │ ├── tmarc1.xml │ ├── tmarc1.xml.marc │ ├── tmarc10.xml │ ├── tmarc10.xml.marc │ ├── tmarc11.xml │ ├── tmarc11.xml.marc │ ├── tmarc12.xml │ ├── tmarc12.xml.marc │ ├── tmarc2.xml │ ├── tmarc2.xml.marc │ ├── tmarc3.xml │ ├── tmarc3.xml.marc │ ├── tmarc4.xml │ ├── tmarc4.xml.marc │ ├── tmarc5.xml │ ├── tmarc5.xml.marc │ ├── tmarc6.xml │ ├── tmarc6.xml.marc │ ├── tmarc7.xml │ ├── tmarc7.xml.marc │ ├── tmarc8.xml │ ├── tmarc8.xml.marc │ ├── tmarc9.xml │ ├── tmarc9.xml.marc │ ├── xml2marc0.xml │ ├── xml2marc0.xml.marc │ ├── xml2marc1.xml │ ├── xml2marc1.xml.marc │ ├── xml2marc10.xml │ ├── xml2marc10.xml.marc │ ├── xml2marc11.xml │ ├── xml2marc11.xml.marc │ ├── xml2marc12.xml │ ├── xml2marc12.xml.marc │ ├── xml2marc2.xml │ ├── xml2marc2.xml.marc │ ├── xml2marc3.xml │ ├── xml2marc3.xml.marc │ ├── xml2marc4.xml │ ├── xml2marc4.xml.marc │ ├── xml2marc5.xml │ ├── xml2marc5.xml.marc │ ├── xml2marc6.xml │ ├── xml2marc6.xml.marc │ ├── xml2marc7.xml │ ├── xml2marc7.xml.marc │ ├── xml2marc8.xml │ ├── xml2marc8.xml.marc │ ├── xml2marc9.xml │ ├── xml2marc9.xml.marc │ ├── xml2tmarc0.xml │ ├── xml2tmarc0.xml.marc │ ├── xml2tmarc1.xml │ ├── xml2tmarc1.xml.marc │ ├── xml2tmarc10.xml │ ├── xml2tmarc10.xml.marc │ ├── xml2tmarc11.xml │ ├── xml2tmarc11.xml.marc │ ├── xml2tmarc12.xml │ ├── xml2tmarc12.xml.marc │ ├── xml2tmarc2.xml │ ├── xml2tmarc2.xml.marc │ ├── xml2tmarc3.xml │ ├── xml2tmarc3.xml.marc │ ├── xml2tmarc4.xml │ ├── xml2tmarc4.xml.marc │ ├── xml2tmarc5.xml │ ├── xml2tmarc5.xml.marc │ ├── xml2tmarc6.xml │ ├── xml2tmarc6.xml.marc │ ├── xml2tmarc7.xml │ ├── xml2tmarc7.xml.marc │ ├── xml2tmarc8.xml │ ├── xml2tmarc8.xml.marc │ ├── xml2tmarc9.xml │ └── xml2tmarc9.xml.marc ├── pqf2cql │ ├── 1.1.err │ ├── 1.1.out │ ├── 1.2.err │ ├── 1.2.out │ ├── 1.3.err │ ├── 1.3.out │ ├── 1.4.err │ ├── 1.4.out │ ├── 1.5.err │ ├── 1.5.out │ ├── 1.6.err │ ├── 1.6.out │ ├── 1.7.err │ ├── 1.7.out │ ├── 2.1.err │ ├── 2.1.out │ ├── 2.2.err │ ├── 2.2.out │ ├── 2.3.err │ ├── 2.3.out │ ├── 2.4.err │ ├── 2.4.out │ ├── 2.5.err │ ├── 2.5.out │ ├── 2.6.err │ └── 2.6.out ├── pqf2cqlsample ├── rdf-lookup │ ├── bf.xml │ ├── lookup-conf.xml │ └── lookup.sh ├── sc_test.c ├── test_ccl.c ├── test_comstack.c ├── test_cql2ccl.c ├── test_cql2pqf.sh ├── test_cql2xcql.sh ├── test_embed_record.c ├── test_file_glob.c ├── test_filepath.c ├── test_iconv.c ├── test_icu.0.input ├── test_icu.0.output ├── test_icu.0.xml ├── test_icu.1.input ├── test_icu.1.output ├── test_icu.1.xml ├── test_icu.2.input ├── test_icu.2.output ├── test_icu.2.xml ├── test_icu.3.input ├── test_icu.3.output ├── test_icu.3.xml ├── test_icu.4.input ├── test_icu.4.output ├── test_icu.4.xml ├── test_icu.c ├── test_icu.sh ├── test_json.c ├── test_libstemmer.c ├── test_log.c ├── test_log_thread.c ├── test_marc.sh ├── test_marc_read_sax.c ├── test_marccol.sh ├── test_match_glob.c ├── test_matchstr.c ├── test_mutex.c ├── test_nmem.c ├── test_odr.c ├── test_odrstack.c ├── test_oid.c ├── test_options.c ├── test_pquery.c ├── test_query_charset.c ├── test_record_conv.c ├── test_record_conv.xsl ├── test_retrieval.c ├── test_rpn2cql.c ├── test_rpn2solr.c ├── test_shared_ptr.c ├── test_soap1.c ├── test_soap2.c ├── test_solr.c ├── test_sortspec.c ├── test_timing.c ├── test_tpath.c ├── test_wrbuf.c ├── test_xmalloc.c ├── test_xml_include.c ├── test_xml_include.xml ├── test_xmlquery.c ├── test_zgdu.c ├── tstodr.asn └── tstpqf2cql.sh ├── util ├── .gitignore ├── BUILD ├── Makefile.am ├── benchmark.c ├── bib1 ├── cclsh.c ├── cql2pqf.c ├── cql2xcql.c ├── ill-params.txt ├── json-parse.c ├── marcdump.c ├── pqf2pqf.xsl ├── srwtst.c ├── yaz-icu-example.xml ├── yaz-icu.c ├── yaz-illclient.c ├── yaz-record-conv.c ├── yaz-url.c ├── yaz-xmlquery.c └── yaziconv.c ├── win ├── .gitignore ├── LICENSE.txt ├── makefile ├── version.nsi.in ├── yaz.nsi └── yaz.rc ├── yaz-config.in ├── yaz-icu.pc.in ├── yaz-server.pc.in ├── yaz.pc.in ├── yaz.spec ├── zoom ├── .gitignore ├── BUILD ├── Makefile.am ├── zoom-benchmark.c ├── zoom-bug-641.c ├── zoom-ka.c ├── zoomsh.c ├── zoomtst1.c ├── zoomtst10.c ├── zoomtst11.c ├── zoomtst2.c ├── zoomtst3.c ├── zoomtst4.c ├── zoomtst5.c ├── zoomtst6.c ├── zoomtst7.c ├── zoomtst8.c └── zoomtst9.c └── ztest ├── .gitignore ├── BUILD ├── Makefile.am ├── config1.xml ├── dummy-grs ├── dummy-opac.c ├── dummy-words ├── gfs-example.c ├── read-grs.c ├── read-marc.c ├── ztest.c ├── ztest.h └── ztest.pem /.github/workflows/build-c23-yaz.yaml: -------------------------------------------------------------------------------- 1 | # Build yaz from source with clang c23 2 | name: Build complete YAZ, clang, c23 3 | on: [pull_request] 4 | jobs: 5 | build-clang-c23-complete: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v4 9 | with: 10 | fetch-depth: 1 11 | - name: Update packages 12 | run: sudo apt update 13 | - name: Install required and optional dependencies 14 | run: > 15 | sudo apt install autoconf automake libtool clang make bison 16 | tclsh xsltproc docbook docbook-xml docbook-xsl 17 | pkg-config libxslt1-dev libgnutls28-dev 18 | libreadline-dev libwrap0-dev libicu-dev 19 | libhiredis-dev libmemcached-dev 20 | - name: Run buildconf 21 | run: ./buildconf.sh 22 | - name: Run configure 23 | run: > 24 | CC=clang CFLAGS="-std=c23" ./configure --enable-tcpd --with-xslt --with-gnutls --with-icu 25 | --with-memcached --with-redis 26 | - name: Run Make check 27 | run: make -j4 check 28 | -------------------------------------------------------------------------------- /.github/workflows/build-complete-yaz.yaml: -------------------------------------------------------------------------------- 1 | # Build yaz from source with gcc default + dist check 2 | name: Build complete YAZ 3 | on: [push, pull_request] 4 | jobs: 5 | build-complete: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v4 9 | with: 10 | fetch-depth: 1 11 | - name: Update packages 12 | run: sudo apt update 13 | - name: Install required and optional dependencies 14 | run: > 15 | sudo apt install autoconf automake libtool gcc make bison 16 | tclsh xsltproc docbook docbook-xml docbook-xsl 17 | pkg-config libxslt1-dev libgnutls28-dev 18 | libreadline-dev libwrap0-dev libicu-dev 19 | libhiredis-dev libmemcached-dev 20 | - name: Run buildconf 21 | run: ./buildconf.sh 22 | - name: Run configure 23 | run: > 24 | ./configure --enable-tcpd --with-xslt --with-gnutls --with-icu 25 | --with-memcached --with-redis 26 | - name: Run Make check 27 | run: make -j4 check 28 | - name: Run Make dist 29 | run: make -j4 dist 30 | - name: Run Make clean 31 | run: make clean 32 | -------------------------------------------------------------------------------- /.github/workflows/build-minimal-yaz.yaml: -------------------------------------------------------------------------------- 1 | # Build minimal yaz from source with gcc c89 2 | name: Build minimal YAZ 3 | on: [pull_request] 4 | jobs: 5 | build-minimal-yaz: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v4 9 | with: 10 | fetch-depth: 1 11 | - name: Update packages 12 | run: sudo apt update 13 | - name: Install required dependencies 14 | run: > 15 | sudo apt install autoconf automake libtool gcc make bison 16 | tclsh xsltproc docbook docbook-xml docbook-xsl 17 | - name: Run buildconf without xml, icu, ... 18 | run: ./buildconf.sh 19 | - name: Run configure without xml, icu, ... 20 | run: > 21 | CFLAGS="-g -Wall -std=c89" ./configure 22 | --without-xml2 --without-icu --disable-tcpd --without-memcached --without-redis 23 | - name: Run Make check 24 | run: make -j4 check 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | aclocal.m4 4 | config 5 | config.cache 6 | config.status 7 | configure 8 | libtool 9 | yaz-config 10 | yaz.pc 11 | yaz-icu.pc 12 | yaz-server.pc 13 | Doxyfile 14 | dox 15 | autom4te.cache 16 | ChangeLog 17 | build-stamp 18 | config.guess 19 | config.sub 20 | Default 21 | *~ 22 | .settings 23 | build 24 | deb-src 25 | *.o 26 | *.lo 27 | *.la 28 | *.a 29 | *.log 30 | .deps 31 | .libs 32 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "m4"] 2 | path = m4 3 | url = https://github.com/indexdata/m4 4 | [submodule "doc/common"] 5 | path = doc/common 6 | url = https://github.com/indexdata/id-docbook-common 7 | [submodule "src/libstemmer_c"] 8 | path = src/libstemmer_c 9 | url = https://github.com/indexdata/libstemmer_c 10 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: required 3 | 4 | matrix: 5 | include: 6 | - os: linux 7 | dist: xenial 8 | compiler: clang 9 | env: 10 | - MY_OS=xenial 11 | - os: linux 12 | dist: trusty 13 | compiler: clang 14 | env: 15 | - MY_OS=trusty 16 | - os: linux 17 | dist: precise 18 | compiler: gcc 19 | env: 20 | - MY_OS=precise 21 | - os: osx 22 | env: 23 | - MY_OS=macos 24 | 25 | addons: 26 | apt: 27 | packages: 28 | - autoconf 29 | - automake 30 | - bison 31 | - docbook 32 | - docbook-xml 33 | - docbook-xsl 34 | - gcc 35 | - libgnutls-dev 36 | - libhiredis-dev 37 | - libicu-dev 38 | - libmemcached-dev 39 | - libreadline-dev 40 | - libtool 41 | - libwrap0-dev 42 | - libxslt1-dev 43 | - make 44 | - pkg-config 45 | - tcl8.5 46 | - xsltproc 47 | 48 | before_install: 49 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi 50 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install docbook-xsl icu4c; fi 51 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then XML_CATALOG_FILES=/usr/local/etc/xml/catalog; export XML_CATALOG_FILES; fi 52 | 53 | before_script: 54 | - ./buildconf.sh 55 | 56 | script: 57 | - ./configure 58 | - make -j3 59 | - make check 60 | 61 | -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Linux", 5 | "includePath": [ 6 | "${default}", 7 | "${workspaceFolder}/src", 8 | "${workspaceFolder}/build/src", 9 | "/usr/include/libxml2" 10 | ], 11 | "defines": [ 12 | "HAVE_CONFIG_H=1" 13 | ], 14 | "compilerPath": "/usr/bin/gcc", 15 | "cStandard": "c89", 16 | "cppStandard": "gnu++17", 17 | "intelliSenseMode": "linux-gcc-x64" 18 | } 19 | ], 20 | "version": 4 21 | } 22 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.trimTrailingWhitespace": true, 3 | "makefile.compileCommandsPath": ".vscode/compile_commands.json", 4 | "sonarlint.pathToCompileCommands": "${workspaceFolder}/.vscode/compile_commands.json", 5 | "files.associations": { 6 | "__locale": "c", 7 | "rpn2cql.h": "c", 8 | "cql.h": "c" 9 | }, 10 | "xml.symbols.maxItemsComputed": 10000, 11 | "xml.validation.resolveExternalEntities": true 12 | } 13 | -------------------------------------------------------------------------------- /IDMETA: -------------------------------------------------------------------------------- 1 | DEBIAN_DIST="bookworm bullseye" 2 | UBUNTU_DIST="noble jammy focal" 3 | CENTOS_DIST="centos7 centos8 centos9" 4 | VERSION=5.35.1 5 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | ## This file is part of the YAZ toolkit. 2 | ## Copyright (C) Index Data 3 | ## See the file LICENSE for details. 4 | 5 | AUTOMAKE_OPTIONS = foreign 6 | 7 | ACLOCAL_AMFLAGS = -I m4 8 | 9 | SUBDIRS = src util test client ztest zoom doc etc 10 | 11 | aclocaldir=$(datadir)/aclocal 12 | 13 | aclocal_DATA = m4/yaz.m4 14 | 15 | pkgconfigdir = $(libdir)/pkgconfig 16 | pkgconfig_DATA = yaz.pc yaz-icu.pc yaz-server.pc 17 | 18 | SPEC_FILE=$(PACKAGE).spec 19 | EXTRA_DIST=$(SPEC_FILE) IDMETA README.md LICENSE NEWS m4/id-config.sh \ 20 | m4/yaz.m4 m4/yaz_libxml2.m4 buildconf.sh \ 21 | m4/acx_pthread.m4 m4/ac_check_icu.m4 m4/common.nsi m4/mk_version.tcl 22 | 23 | dist-hook: 24 | if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi 25 | test -d $(distdir)/win || mkdir $(distdir)/win 26 | -cp $(srcdir)/win/* $(distdir)/win 27 | 28 | .PHONY:debian 29 | debian: 30 | dpkg-buildpackage -rfakeroot 31 | 32 | 33 | -------------------------------------------------------------------------------- /WORKSPACE: -------------------------------------------------------------------------------- 1 | workspace(name = "yaz") 2 | -------------------------------------------------------------------------------- /buildconf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -d .git ]; then 4 | git submodule init 5 | git submodule update 6 | fi 7 | 8 | . m4/id-config.sh 9 | 10 | if $enable_help; then 11 | cat <= 5.30.0)' 25 | 26 | override_dh_installchangelogs: 27 | dh_installchangelogs NEWS 28 | 29 | override_dh_installdocs: 30 | cp LICENSE debian/copyright 31 | dh_installdocs -A README.md 32 | -------------------------------------------------------------------------------- /debian/yaz-doc.install: -------------------------------------------------------------------------------- 1 | usr/share/doc/yaz-doc 2 | usr/share/doc/yaz-doc/common 3 | -------------------------------------------------------------------------------- /debian/yaz-icu.install: -------------------------------------------------------------------------------- 1 | usr/bin/yaz-icu 2 | -------------------------------------------------------------------------------- /debian/yaz-icu.manpages: -------------------------------------------------------------------------------- 1 | doc/yaz-icu.1 2 | -------------------------------------------------------------------------------- /debian/yaz-illclient.install: -------------------------------------------------------------------------------- 1 | usr/bin/yaz-illclient 2 | -------------------------------------------------------------------------------- /debian/yaz-illclient.manpages: -------------------------------------------------------------------------------- 1 | doc/yaz-illclient.1 2 | -------------------------------------------------------------------------------- /debian/yaz.install: -------------------------------------------------------------------------------- 1 | usr/bin/yaz-client 2 | usr/bin/yaz-ztest 3 | usr/bin/zoomsh 4 | usr/bin/yaz-marcdump 5 | usr/bin/yaz-iconv 6 | usr/bin/yaz-json-parse 7 | usr/bin/yaz-url 8 | usr/bin/yaz-record-conv 9 | -------------------------------------------------------------------------------- /debian/yaz.manpages: -------------------------------------------------------------------------------- 1 | doc/yaz-client.1 2 | doc/yaz-ztest.8 3 | doc/zoomsh.1 4 | doc/yaz-marcdump.1 5 | doc/yaz-iconv.1 6 | doc/yaz-log.7 7 | doc/bib1-attr.7 8 | doc/yaz-json-parse.1 9 | doc/yaz-url.1 10 | doc/yaz-record-conv.1 11 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | yaz.tex 3 | yaz.aux 4 | yaz.log 5 | yaz.out 6 | yaz.pdf 7 | yazj.* 8 | *.php 9 | *.tkl 10 | manpage.links 11 | manpage.refs 12 | *.[178] 13 | local.ent 14 | local0.ent 15 | htmlhelp.hhp 16 | toc.hhc 17 | std-oid-table.xml 18 | bib1-diag-table.xml 19 | srw-diag-table.xml 20 | manref.xml 21 | -------------------------------------------------------------------------------- /doc/apilayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/doc/apilayer.png -------------------------------------------------------------------------------- /doc/entities.ent: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ODR"> 11 | COMSTACK"> 12 | ZOOM"> 13 | 14 | "> 15 | "> 16 | 17 | 18 | -------------------------------------------------------------------------------- /doc/id.html5.xsl: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /doc/local0.ent.in: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /etc/Makefile.am: -------------------------------------------------------------------------------- 1 | ## This file is part of the YAZ toolkit. 2 | ## Copyright (C) Index Data 3 | 4 | etcdatadir = $(pkgdatadir)/etc 5 | etcdata_DATA = \ 6 | pqf.properties \ 7 | cqlpass.properties \ 8 | yazgfs.xml \ 9 | maps.xml \ 10 | MARC21slim2DC.xsl \ 11 | MARC21slim2MODS.xsl \ 12 | MARC21slim2RDFDC.xsl \ 13 | MARC21slimUtils.xsl \ 14 | marc21_to_endnote.xsl \ 15 | opacxml.xsd 16 | 17 | EXTRA_DIST = $(etcdata_DATA) debian.init.d 18 | 19 | -------------------------------------------------------------------------------- /etc/debian.init.d: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Debian sample start/stop script for YAZ Generic Frontend Server 3 | # 4 | set -e 5 | 6 | DAEMON=/usr/local/bin/yaz-ztest 7 | NAME=yaz-ztest 8 | PIDFILE=/var/run/yaz-ztest.pid 9 | LOGFILE=/var/log/yaz-ztest.log 10 | RUNAS=nobody 11 | 12 | test -x $DAEMON || exit 0 13 | 14 | case "$1" in 15 | start) 16 | echo -n "Starting YAZ server: " 17 | start-stop-daemon --start --pidfile $PIDFILE \ 18 | --exec $DAEMON -- \ 19 | -u $RUNAS -l $LOGFILE -D -p $PIDFILE @:210 20 | 21 | echo "$NAME." 22 | ;; 23 | stop) 24 | echo -n "Stopping YAZ server: " 25 | start-stop-daemon --stop --pidfile $PIDFILE \ 26 | --oknodo --retry 30 --exec $DAEMON 27 | echo "$NAME." 28 | ;; 29 | restart) 30 | echo -n "Restarting YAZ server: " 31 | start-stop-daemon --stop --pidfile $PIDFILE \ 32 | --oknodo --retry 30 --exec $DAEMON 33 | start-stop-daemon --start --pidfile $PIDFILE d \ 34 | --exec $DAEMON -- \ 35 | -u $RUNAS -l $LOGFILE -D -p $PIDFILE @:210 36 | echo "$NAME." 37 | ;; 38 | reload|force-reload) 39 | echo "Reloading $NAME configuration files" 40 | start-stop-daemon --stop --pidfile $PIDFILE \ 41 | --signal 1 --exec $DAEMON 42 | ;; 43 | *) 44 | echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}" 45 | exit 1 46 | ;; 47 | esac 48 | 49 | exit 0 50 | -------------------------------------------------------------------------------- /etc/maps.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /header.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /* 7 | * Local variables: 8 | * c-basic-offset: 4 9 | * c-file-style: "Stroustrup" 10 | * indent-tabs-mode: nil 11 | * End: 12 | * vim: shiftwidth=4 tabstop=8 expandtab 13 | */ 14 | 15 | -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | *.lib 2 | *.map 3 | *.exp 4 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | zes-*.c 2 | z-*.c 3 | item-req.c 4 | ill-core.c 5 | marc8.c 6 | marc8r.c 7 | iso5426.c 8 | cql.c 9 | diagbib1.c 10 | diagsrw.c 11 | diagsru_update.c 12 | oid_std.c 13 | oclc-ill-req-ext.c 14 | config.h 15 | config.h.in 16 | stamp-h1 17 | -------------------------------------------------------------------------------- /src/atoin.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file atoin.c 8 | * \brief Implements atoi_n function. 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | int atoi_n(const char *buf, int len) 20 | { 21 | int val = 0; 22 | 23 | while (--len >= 0) 24 | { 25 | if (yaz_isdigit(*buf)) 26 | val = val*10 + (*buf - '0'); 27 | buf++; 28 | } 29 | return val; 30 | } 31 | 32 | int atoi_n_check(const char *buf, int size, int *val) 33 | { 34 | int i; 35 | for (i = 0; i < size; i++) 36 | if (!yaz_isdigit(buf[i])) 37 | return 0; 38 | *val = atoi_n(buf, size); 39 | return 1; 40 | } 41 | 42 | /* 43 | * Local variables: 44 | * c-basic-offset: 4 45 | * c-file-style: "Stroustrup" 46 | * indent-tabs-mode: nil 47 | * End: 48 | * vim: shiftwidth=4 tabstop=8 expandtab 49 | */ 50 | 51 | -------------------------------------------------------------------------------- /src/ber_null.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file ber_null.c 8 | * \brief Implements ber_null 9 | * 10 | * This source file implements BER encoding and decoding of 11 | * the NULL type. 12 | */ 13 | #if HAVE_CONFIG_H 14 | #include 15 | #endif 16 | 17 | #include "odr-priv.h" 18 | 19 | /** 20 | * ber_null: BER-en/decoder for NULL type. 21 | */ 22 | int ber_null(ODR o) 23 | { 24 | switch (o->direction) 25 | { 26 | case ODR_ENCODE: 27 | if (odr_putc(o, 0X00) < 0) 28 | return 0; 29 | return 1; 30 | case ODR_DECODE: 31 | if (odr_max(o) < 1) 32 | { 33 | odr_seterror(o, OPROTO, 39); 34 | return 0; 35 | } 36 | if (*(o->op->bp++) != 0X00) 37 | { 38 | odr_seterror(o, OPROTO, 12); 39 | return 0; 40 | } 41 | return 1; 42 | case ODR_PRINT: 43 | return 1; 44 | default: 45 | odr_seterror(o, OOTHER, 13); 46 | return 0; 47 | } 48 | } 49 | /* 50 | * Local variables: 51 | * c-basic-offset: 4 52 | * c-file-style: "Stroustrup" 53 | * indent-tabs-mode: nil 54 | * End: 55 | * vim: shiftwidth=4 tabstop=8 expandtab 56 | */ 57 | 58 | -------------------------------------------------------------------------------- /src/cclerrms.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file cclerrms.c 7 | * \brief Implements CCL error code to error string map. 8 | * 9 | * This source file implements mapping between CCL error code and 10 | * their string equivalents. 11 | */ 12 | #if HAVE_CONFIG_H 13 | #include 14 | #endif 15 | 16 | #include 17 | 18 | static char *err_msg_array[] = { 19 | "Ok", 20 | "Search word expected", 21 | "')' expected", 22 | "Set name expected", 23 | "Operator expected", 24 | "Unbalanced ')'", 25 | "Unknown qualifier", 26 | "Qualifiers applied twice", 27 | "'=' expected", 28 | "Bad relation", 29 | "Left truncation not supported", 30 | "Both left - and right truncation not supported", 31 | "Right truncation not supported", 32 | "Embedded truncation not supported", 33 | "Single character mask not supported" 34 | }; 35 | 36 | const char *ccl_err_msg(int ccl_errno) 37 | { 38 | if (ccl_errno >= 0 && 39 | ccl_errno < sizeof(err_msg_array)/sizeof(*err_msg_array)) 40 | return err_msg_array[ccl_errno]; 41 | else 42 | return 0; 43 | } 44 | /* 45 | * Local variables: 46 | * c-basic-offset: 4 47 | * c-file-style: "Stroustrup" 48 | * indent-tabs-mode: nil 49 | * End: 50 | * vim: shiftwidth=4 tabstop=8 expandtab 51 | */ 52 | 53 | -------------------------------------------------------------------------------- /src/cqlstdio.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file cqlstdio.c 7 | * \brief Implements query stream reading using FILE handle. 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | 15 | static int getbyte_stream(void *client_data) 16 | { 17 | FILE *f = (FILE*) client_data; 18 | 19 | int c = fgetc(f); 20 | if (c == EOF) 21 | return 0; 22 | return c; 23 | } 24 | 25 | static void ungetbyte_stream(int c, void *client_data) 26 | { 27 | FILE *f = (FILE*) client_data; 28 | 29 | if (c == 0) 30 | c = EOF; 31 | ungetc(c, f); 32 | } 33 | 34 | int cql_parser_stdio(CQL_parser cp, FILE *f) 35 | { 36 | return cql_parser_stream(cp, getbyte_stream, ungetbyte_stream, f); 37 | } 38 | 39 | 40 | /* 41 | * Local variables: 42 | * c-basic-offset: 4 43 | * c-file-style: "Stroustrup" 44 | * indent-tabs-mode: nil 45 | * End: 46 | * vim: shiftwidth=4 tabstop=8 expandtab 47 | */ 48 | 49 | -------------------------------------------------------------------------------- /src/cqlstrer.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file cqlstrer.c 7 | * \brief Implements CQL error code map to description string. 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | #include 15 | 16 | const char *cql_strerror(int code) 17 | { 18 | return yaz_diag_srw_str(code); 19 | } 20 | /* 21 | * Local variables: 22 | * c-basic-offset: 4 23 | * c-file-style: "Stroustrup" 24 | * indent-tabs-mode: nil 25 | * End: 26 | * vim: shiftwidth=4 tabstop=8 expandtab 27 | */ 28 | 29 | -------------------------------------------------------------------------------- /src/cqlstring.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file cqlstring.c 7 | * \brief Implements query stream reader that reads from a C string. 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | 15 | struct cql_buf_info { 16 | const char *str; 17 | int off; 18 | }; 19 | 20 | static int getbuf(void *vp) 21 | { 22 | struct cql_buf_info *bi = (struct cql_buf_info *) vp; 23 | if (bi->str[bi->off] == 0) 24 | return 0; 25 | return bi->str[bi->off++]; 26 | } 27 | 28 | static void ungetbuf(int b, void *vp) 29 | { 30 | struct cql_buf_info *bi = (struct cql_buf_info *) vp; 31 | if (b) 32 | (bi->off--); 33 | } 34 | 35 | int cql_parser_string(CQL_parser cp, const char *str) 36 | { 37 | struct cql_buf_info b; 38 | 39 | b.str = str; 40 | b.off = 0; 41 | 42 | return cql_parser_stream(cp, getbuf, ungetbuf, &b); 43 | } 44 | 45 | /* 46 | * Local variables: 47 | * c-basic-offset: 4 48 | * c-file-style: "Stroustrup" 49 | * indent-tabs-mode: nil 50 | * End: 51 | * vim: shiftwidth=4 tabstop=8 expandtab 52 | */ 53 | 54 | -------------------------------------------------------------------------------- /src/diag-entry.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file diag-entry.c 8 | * \brief Diagnostic table lookup 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | 17 | const char *yaz_diag_to_str(struct yaz_diag_entry *tab, int code) 18 | { 19 | int i; 20 | for (i=0; tab[i].msg; i++) 21 | if (tab[i].code == code) 22 | return tab[i].msg; 23 | return "Unknown error"; 24 | } 25 | /* 26 | * Local variables: 27 | * c-basic-offset: 4 28 | * c-file-style: "Stroustrup" 29 | * indent-tabs-mode: nil 30 | * End: 31 | * vim: shiftwidth=4 tabstop=8 expandtab 32 | */ 33 | 34 | -------------------------------------------------------------------------------- /src/facet.asn: -------------------------------------------------------------------------------- 1 | UserInfoFormat-facet-1 2 | {Z39-50-userInfoFormat facet-1 (1)} DEFINITIONS ::= 3 | BEGIN 4 | IMPORTS AttributeList, Term FROM Z39-50-APDU-1995; 5 | FacetList ::= SEQUENCE OF FacetField; 6 | 7 | FacetField ::= SEQUENCE { 8 | -- attributes will specify: 9 | -- 1=use (field name) 10 | -- 2=sortorder 0=count descending, 1=alpha ascending .. 11 | -- 3=limit (integer) 12 | -- 4=start (integer), starting from 1 13 | attributes [1] IMPLICIT AttributeList, 14 | terms [2] IMPLICIT SEQUENCE OF FacetTerm OPTIONAL 15 | } 16 | 17 | FacetTerm ::= SEQUENCE { 18 | term Term, 19 | count INTEGER 20 | } 21 | 22 | END 23 | -------------------------------------------------------------------------------- /src/gettimeofday.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file gettimeofday.c 8 | * \brief Implements wrapper for gettimeofday 9 | * 10 | */ 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | #ifdef WIN32 20 | #include 21 | #include 22 | #endif 23 | #if HAVE_SYS_TIME_H 24 | #include 25 | #endif 26 | #include 27 | 28 | int yaz_gettimeofday(struct timeval *tval) 29 | { 30 | #ifdef WIN32 31 | struct _timeb timeb; 32 | _ftime(&timeb); 33 | tval->tv_sec = timeb.time; 34 | tval->tv_usec = timeb.millitm * 1000; 35 | return 0; 36 | #else 37 | return gettimeofday(tval, 0); 38 | #endif 39 | } 40 | 41 | /* 42 | * Local variables: 43 | * c-basic-offset: 4 44 | * c-file-style: "Stroustrup" 45 | * indent-tabs-mode: nil 46 | * End: 47 | * vim: shiftwidth=4 tabstop=8 expandtab 48 | */ 49 | 50 | -------------------------------------------------------------------------------- /src/malloc_info.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file malloc_info.c 8 | * \brief Malloc info reporting via WRBUF 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | 17 | #if HAVE_MALLOC_INFO 18 | #include 19 | #endif 20 | #include 21 | 22 | #include 23 | #include 24 | 25 | int wrbuf_malloc_info(WRBUF b) 26 | { 27 | int r = -2; 28 | #if HAVE_MALLOC_INFO 29 | #if HAVE_OPEN_MEMSTREAM 30 | char *ptr = 0; 31 | size_t sz = 0; 32 | FILE *f = open_memstream(&ptr, &sz); 33 | if (!f) 34 | r = -1; 35 | else 36 | { 37 | r = malloc_info(0, f); 38 | fclose(f); 39 | wrbuf_write(b, ptr, sz); 40 | } 41 | if (ptr) 42 | free(ptr); 43 | #endif 44 | #endif 45 | return r; 46 | } 47 | /* 48 | * Local variables: 49 | * c-basic-offset: 4 50 | * c-file-style: "Stroustrup" 51 | * indent-tabs-mode: nil 52 | * End: 53 | * vim: shiftwidth=4 tabstop=8 expandtab 54 | */ 55 | 56 | -------------------------------------------------------------------------------- /src/mterm2.asn: -------------------------------------------------------------------------------- 1 | UserInfoFormat-multipleSearchTerms-2 2 | {Z39-50-userInfoFormat MultipleSearchTerms-2 (5)} DEFINITIONS ::= 3 | BEGIN 4 | IMPORTS Term FROM Z39-50-APDU-1995; 5 | 6 | MultipleSearchTerms-2 ::= SEQUENCE OF SEQUENCE{ 7 | term [1] Term, 8 | flag [2] IMPLICIT BOOLEAN OPTIONAL} 9 | 10 | END 11 | -------------------------------------------------------------------------------- /src/oclc-ill-req-ext.asn: -------------------------------------------------------------------------------- 1 | -- Couple of OCLC-specific extensions to their ILL-Request 2 | 3 | OCLCILLRequestExtension DEFINITIONS ::= 4 | --The object identifier is 1.0.10161.13.2 5 | BEGIN 6 | IMPORTS ILL-String FROM ISO-10161-ILL-1; 7 | 8 | OCLCILLRequestExtension ::=SEQUENCE { 9 | clientDepartment [0] ILL-String OPTIONAL, 10 | paymentMethod [1] ILL-String OPTIONAL, 11 | uniformTitle [2] ILL-String OPTIONAL, 12 | dissertation [3] ILL-String OPTIONAL, 13 | issueNumber [4] ILL-String OPTIONAL, 14 | volume [5] ILL-String OPTIONAL, 15 | affiliations [6] ILL-String OPTIONAL, 16 | source [7] ILL-String OPTIONAL 17 | } 18 | 19 | -- If present, systemNo should contain an OCLC number. To encode the OCLC 20 | -- number, use the external object for system number defined by the Library and 21 | -- Archives Canada. 22 | -- The object identifier is 1.2.124.10161.2 23 | 24 | SystemNo ::= SEQUENCE SIZE (1..10) OF SEQUENCE 25 | system System, 26 | recordNo RecordNo 27 | } 28 | 29 | System ::= ENUMERATED { 30 | dobis (1), 31 | candoc (2), 32 | oclc (3), 33 | rlin (4), 34 | utlas (5), 35 | other (6) 36 | } 37 | --Do not include the acronym for the system as part of the record number unless 38 | --"other (6)" is chosen. 39 | 40 | RecordNo ::= ILL-String (SIZE (1..50)) 41 | 42 | 43 | 44 | END 45 | 46 | -------------------------------------------------------------------------------- /src/oclcui.asn: -------------------------------------------------------------------------------- 1 | UserInfoFormat-oclcUserInformation 2 | {Z39-50-userInfoFormat OCLCUserInformation (7)} DEFINITIONS ::= 3 | BEGIN 4 | 5 | -- 6 | -- This format is returned from the server at 7 | -- fsz3950test.oclc.org:210 8 | -- I found the definition at 9 | -- http://www.oclc.org/support/services/firstsearch/documentation/z3950/fs_z39_config_guide.en.html 10 | -- 11 | -- I have added OPTIONAL modifiers to the `dblist' and and `code' 12 | -- elements because they appear to be admitted from the APDU returned 13 | -- as an Init diagnostic from fsz3950test.oclc.org:210. Adam further 14 | -- removed the SEQUENCE structure, changed failReason to a BOOLEAN and 15 | -- deleted diagnosticSetId altogether, to make the ASN.1 conform to 16 | -- what's actually returned on the wire. Finally, I removed the 17 | -- OPTIONAL on failReason on the advice of OCLC's Keith Neibarger 18 | -- (although he'd also advised me, wrongly, that I 19 | -- could remove the OPTIONAL on dblist). 20 | 21 | OCLC-UserInformation ::= SEQUENCE { 22 | motd [1] IMPLICIT VisibleString OPTIONAL, 23 | dblist SEQUENCE OF DBName OPTIONAL, 24 | failReason [3] IMPLICIT BOOLEAN OPTIONAL, 25 | code [1] IMPLICIT INTEGER OPTIONAL, 26 | text [2] IMPLICIT VisibleString OPTIONAL 27 | } 28 | 29 | DBName ::= [2] IMPLICIT VisibleString 30 | 31 | END 32 | 33 | -------------------------------------------------------------------------------- /src/odr_any.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file odr_any.c 8 | * \brief Implements ODR ANY codec 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include "odr-priv.h" 16 | 17 | /** 18 | * This is a catch-all type. It stuffs a random ostring (assumed to be properly 19 | * encoded) into the stream, or reads a full data element. Implicit tagging 20 | * does not work, and neither does the optional flag, unless the element 21 | * is the last in a sequence. 22 | */ 23 | int odr_any(ODR o, Odr_any **p, int opt, const char *name) 24 | { 25 | if (o->error) 26 | return 0; 27 | if (o->direction == ODR_PRINT) 28 | { 29 | odr_prname(o, name); 30 | odr_printf(o, "ANY (len=%d)\n", (*p)->len); 31 | return 1; 32 | } 33 | if (o->direction == ODR_DECODE) 34 | *p = (Odr_oct *)odr_malloc(o, sizeof(**p)); 35 | if (ber_any(o, p)) 36 | return 1; 37 | *p = 0; 38 | return odr_missing(o, opt, name); 39 | } 40 | /* 41 | * Local variables: 42 | * c-basic-offset: 4 43 | * c-file-style: "Stroustrup" 44 | * indent-tabs-mode: nil 45 | * End: 46 | * vim: shiftwidth=4 tabstop=8 expandtab 47 | */ 48 | 49 | -------------------------------------------------------------------------------- /src/proxunit.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file proxunit.c 7 | * \brief ProximityUnit map to/from string 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | /* Hand-written, but in reality depends on z3950v3.asn */ 18 | static const char *units[] = { 19 | 0, 20 | "character", 21 | "word", 22 | "sentence", 23 | "paragraph", 24 | "section", 25 | "chapter", 26 | "document", 27 | "element", 28 | "subelement", 29 | "elementType", 30 | "byte" 31 | }; 32 | 33 | const char *z_ProxUnit_to_str(int u) 34 | { 35 | if (u >= Z_ProxUnit_character && u <= Z_ProxUnit_byte) 36 | return units[u]; 37 | return 0; 38 | } 39 | 40 | int z_str_to_ProxUnit(const char *str) 41 | { 42 | int i; 43 | for (i = 1; i <= Z_ProxUnit_byte; i++) 44 | if (!strcmp(units[i], str)) 45 | return i; 46 | return 0; 47 | } 48 | 49 | /* 50 | * Local variables: 51 | * c-basic-offset: 4 52 | * c-file-style: "Stroustrup" 53 | * indent-tabs-mode: nil 54 | * End: 55 | * vim: shiftwidth=4 tabstop=8 expandtab 56 | */ 57 | -------------------------------------------------------------------------------- /src/snprintf.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file snprintf.c 7 | * \brief snprintf wrapper 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | void yaz_vsnprintf(char *buf, size_t size, const char *fmt, va_list ap) 18 | { 19 | #if HAVE_VSNPRINTF 20 | vsnprintf(buf, size, fmt, ap); 21 | #else 22 | #ifdef WIN32 23 | _vsnprintf(buf, size-1, fmt, ap); 24 | buf[size-1] = '\0'; 25 | #else 26 | vsprintf(buf, fmt, ap); 27 | #endif 28 | #endif 29 | } 30 | 31 | void yaz_snprintf(char *buf, size_t size, const char *fmt, ...) 32 | { 33 | va_list ap; 34 | va_start(ap, fmt); 35 | yaz_vsnprintf(buf, size, fmt, ap); 36 | va_end(ap); 37 | } 38 | 39 | /* 40 | * Local variables: 41 | * c-basic-offset: 4 42 | * c-file-style: "Stroustrup" 43 | * indent-tabs-mode: nil 44 | * End: 45 | * vim: shiftwidth=4 tabstop=8 expandtab 46 | */ 47 | 48 | -------------------------------------------------------------------------------- /src/thread_id.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file thread_id.c 8 | * \brief Returns printable thread ID 9 | * 10 | */ 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | #include 17 | 18 | #ifdef WIN32 19 | #include 20 | #endif 21 | 22 | #if HAVE_SYS_TIME_H 23 | #include 24 | #endif 25 | 26 | #if YAZ_POSIX_THREADS 27 | #include 28 | #endif 29 | 30 | #include 31 | 32 | void yaz_thread_id_cstr(char *buf, size_t buf_max) 33 | { 34 | #ifdef WIN32 35 | *buf = '\0'; 36 | #elif YAZ_POSIX_THREADS 37 | pthread_t t = pthread_self(); 38 | size_t i; 39 | *buf = '\0'; 40 | for (i = 0; i < sizeof(t); i++) 41 | { 42 | if (strlen(buf) >= buf_max-2) 43 | break; 44 | sprintf(buf + strlen(buf), "%02x", ((const unsigned char *) &t)[i]); 45 | } 46 | #else 47 | *buf = '\0'; 48 | #endif 49 | } 50 | 51 | /* 52 | * Local variables: 53 | * c-basic-offset: 4 54 | * c-file-style: "Stroustrup" 55 | * indent-tabs-mode: nil 56 | * End: 57 | * vim: shiftwidth=4 tabstop=8 expandtab 58 | */ 59 | 60 | -------------------------------------------------------------------------------- /src/univres.asn: -------------------------------------------------------------------------------- 1 | ResourceReport-Format-Universe-1 2 | {Z39-50-resourceReport universe-1 (1000)} DEFINITIONS ::= 3 | BEGIN 4 | IMPORTS StringOrNumeric FROM Z39-50-APDU-1995; 5 | -- 6 | 7 | UniverseReportHits ::= SEQUENCE { 8 | database StringOrNumeric, 9 | hits StringOrNumeric 10 | } 11 | 12 | UniverseReportDuplicate ::= SEQUENCE { 13 | hitno StringOrNumeric 14 | } 15 | 16 | UniverseReport ::= SEQUENCE { 17 | totalHits INTEGER, 18 | report CHOICE { 19 | databaseHits [0] IMPLICIT UniverseReportHits, 20 | duplicate [1] IMPLICIT UniverseReportDuplicate 21 | } 22 | } 23 | END 24 | -------------------------------------------------------------------------------- /src/util.bzl: -------------------------------------------------------------------------------- 1 | 2 | def cplush(names): 3 | l = [] 4 | for name in names: 5 | l.append(name + ".c") 6 | l.append("yaz/" + name + ".h") 7 | return l 8 | 9 | def c_dir(dir, names): 10 | l = [] 11 | for name in names: 12 | if dir == ".": 13 | l.append(name + ".c") 14 | else: 15 | l.append(dir + "/" + name + ".c") 16 | return l 17 | 18 | def h_dir(dir, names): 19 | l = [] 20 | for name in names: 21 | if dir == ".": 22 | l.append(name + ".h") 23 | else: 24 | l.append(dir + "/" + name + ".h") 25 | return l 26 | 27 | def listToString(list, sep): 28 | r = "" 29 | for elem in list: 30 | if r == "": 31 | r = elem 32 | else: 33 | r = r + sep + elem 34 | return r 35 | 36 | def man_page(name, manname, srcs): 37 | native.genrule( 38 | name = name, 39 | srcs = srcs, 40 | outs = [ manname ], 41 | cmd = "xsltproc --path $(RULEDIR) -o $(location " + manname + ") $(location common/id.man.xsl) $(location " + srcs[0] + ") 2>/dev/null", 42 | tools = [ 43 | "common/id.man.xsl", 44 | "local.ent", 45 | "entities.ent", 46 | "common/common.ent" 47 | ] 48 | ) 49 | -------------------------------------------------------------------------------- /src/version.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file version.c 8 | * \brief Implements YAZ version utilities. 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | #include 17 | 18 | unsigned long yaz_version(char *version_str, char *sha1_str) 19 | { 20 | if (version_str) 21 | strcpy(version_str, YAZ_VERSION); 22 | if (sha1_str) 23 | strcpy(sha1_str, YAZ_VERSION_SHA1); 24 | return YAZ_VERSIONL; 25 | } 26 | /* 27 | * Local variables: 28 | * c-basic-offset: 4 29 | * c-file-style: "Stroustrup" 30 | * indent-tabs-mode: nil 31 | * End: 32 | * vim: shiftwidth=4 tabstop=8 expandtab 33 | */ 34 | 35 | -------------------------------------------------------------------------------- /src/yaz-ccl.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | /** 6 | * \file yaz-ccl.c 7 | * \brief Implements CCL node tree to RPN converson. 8 | */ 9 | #if HAVE_CONFIG_H 10 | #include 11 | #endif 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | #include 18 | #include 19 | 20 | Z_RPNQuery *ccl_rpn_query (ODR o, struct ccl_rpn_node *p) 21 | { 22 | YAZ_PQF_Parser parser = yaz_pqf_create(); 23 | WRBUF wr = wrbuf_alloc(); 24 | Z_RPNQuery *q; 25 | 26 | ccl_pquery(wr, p); 27 | 28 | q = yaz_pqf_parse(parser, o, wrbuf_cstr(wr)); 29 | 30 | wrbuf_destroy(wr); 31 | yaz_pqf_destroy(parser); 32 | return q; 33 | } 34 | 35 | Z_AttributesPlusTerm *ccl_scan_query (ODR o, struct ccl_rpn_node *p) 36 | { 37 | YAZ_PQF_Parser parser = yaz_pqf_create(); 38 | WRBUF wr = wrbuf_alloc(); 39 | Z_AttributesPlusTerm *q; 40 | Odr_oid *setp; 41 | 42 | ccl_pquery(wr, p); 43 | 44 | q = yaz_pqf_scan(parser, o, &setp, wrbuf_cstr(wr)); 45 | 46 | wrbuf_destroy(wr); 47 | yaz_pqf_destroy(parser); 48 | return q; 49 | } 50 | 51 | /* 52 | * Local variables: 53 | * c-basic-offset: 4 54 | * c-file-style: "Stroustrup" 55 | * indent-tabs-mode: nil 56 | * End: 57 | * vim: shiftwidth=4 tabstop=8 expandtab 58 | */ 59 | 60 | -------------------------------------------------------------------------------- /src/yaz/.gitignore: -------------------------------------------------------------------------------- 1 | ill-core.h 2 | item-req.h 3 | z-*.h 4 | zes-*.h 5 | diagbib1.h 6 | diagsrw.h 7 | diagsru_update.h 8 | oid_std.h 9 | oclc-ill-req-ext.h 10 | yaz-version.h 11 | -------------------------------------------------------------------------------- /src/yaz/stamp-h.in: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | test_odrcodec.c 2 | test_odrcodec.h 3 | test_cql2ccl 4 | test_ccl 5 | test_embed_record 6 | test_iconv 7 | test_matchstr 8 | test_nmem 9 | test_odr 10 | test_wrbuf 11 | test_log 12 | test_soap1 13 | test_soap2 14 | test_odrstack 15 | test_logthread 16 | test_xmlquery 17 | test_pquery 18 | test_xmalloc 19 | test_options 20 | test_filepath 21 | test_record_conv 22 | test_retrieval 23 | test_tpath 24 | test_sortspec 25 | test_timing 26 | test_comstack 27 | test_query_charset 28 | test_icu 29 | test_match_glob 30 | test_rpn2cql 31 | test_json 32 | test_xml_include 33 | test_oid 34 | test_file_glob 35 | test_log_thread 36 | test_mutex 37 | test_libstemmer 38 | test_rpn2solr 39 | test_shared_ptr 40 | test_solr 41 | test_zgdu 42 | test_marc_read_sax 43 | *.diff 44 | *.hex* 45 | *.revert* 46 | *.trs 47 | -------------------------------------------------------------------------------- /test/cql/.gitignore: -------------------------------------------------------------------------------- 1 | *.tmp 2 | *.diff 3 | -------------------------------------------------------------------------------- /test/cql/1.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.1.err -------------------------------------------------------------------------------- /test/cql/1.1.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.10.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.10.err -------------------------------------------------------------------------------- /test/cql/1.10.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | all 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.11.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.11.err -------------------------------------------------------------------------------- /test/cql/1.11.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | prox 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.2.err -------------------------------------------------------------------------------- /test/cql/1.2.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.3.err -------------------------------------------------------------------------------- /test/cql/1.3.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | comp.os.linux 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.4.err -------------------------------------------------------------------------------- /test/cql/1.4.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | ml:element 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.5.err -------------------------------------------------------------------------------- /test/cql/1.5.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | <xml:element> 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.6.err -------------------------------------------------------------------------------- /test/cql/1.6.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | = 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.7.err -------------------------------------------------------------------------------- /test/cql/1.7.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | prox/distance<3/unit=word 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.8.err -------------------------------------------------------------------------------- /test/cql/1.8.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat 7 | 8 | -------------------------------------------------------------------------------- /test/cql/1.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/1.9.err -------------------------------------------------------------------------------- /test/cql/1.9.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | dog 7 | 8 | -------------------------------------------------------------------------------- /test/cql/10.1.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.1.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.1.out -------------------------------------------------------------------------------- /test/cql/10.10.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.10.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.10.out -------------------------------------------------------------------------------- /test/cql/10.2.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.2.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.2.out -------------------------------------------------------------------------------- /test/cql/10.3.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.3.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.3.out -------------------------------------------------------------------------------- /test/cql/10.4.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.4.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.4.out -------------------------------------------------------------------------------- /test/cql/10.5.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.5.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.5.out -------------------------------------------------------------------------------- /test/cql/10.6.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.6.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.6.out -------------------------------------------------------------------------------- /test/cql/10.7.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.7.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.7.out -------------------------------------------------------------------------------- /test/cql/10.8.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/10.8.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.8.out -------------------------------------------------------------------------------- /test/cql/10.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/10.9.err -------------------------------------------------------------------------------- /test/cql/10.9.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | = 5 | 6 | illegal parentheses 7 | 8 | -------------------------------------------------------------------------------- /test/cql/11.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.1.err -------------------------------------------------------------------------------- /test/cql/11.1.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | a 7 | b 8 | 9 | -------------------------------------------------------------------------------- /test/cql/11.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.2.err -------------------------------------------------------------------------------- /test/cql/11.2.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | a 7 | b 8 | c 9 | 10 | -------------------------------------------------------------------------------- /test/cql/11.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.3.err -------------------------------------------------------------------------------- /test/cql/11.3.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | a.b 7 | c 8 | 9 | -------------------------------------------------------------------------------- /test/cql/11.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.4.err -------------------------------------------------------------------------------- /test/cql/11.4.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | and 7 | b 8 | c 9 | 10 | -------------------------------------------------------------------------------- /test/cql/11.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.5.err -------------------------------------------------------------------------------- /test/cql/11.5.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | all 7 | a 8 | 9 | -------------------------------------------------------------------------------- /test/cql/11.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.6.err -------------------------------------------------------------------------------- /test/cql/11.6.out: -------------------------------------------------------------------------------- 1 | 2 | a 3 | 4 | any 5 | 6 | b 7 | 8 | -------------------------------------------------------------------------------- /test/cql/11.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/11.7.err -------------------------------------------------------------------------------- /test/cql/11.7.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | dc.title 12 | a 13 | b 14 | c 15 | 16 | 17 | 18 | 19 | cql.serverChoice 20 | 21 | = 22 | 23 | d 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /test/cql/12.1.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/12.1.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/12.1.out -------------------------------------------------------------------------------- /test/cql/12.2.err: -------------------------------------------------------------------------------- 1 | Syntax error 2 | -------------------------------------------------------------------------------- /test/cql/12.2.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/12.2.out -------------------------------------------------------------------------------- /test/cql/13.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/13.1.err -------------------------------------------------------------------------------- /test/cql/13.1.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | a 7 | 8 | 9 | title 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /test/cql/13.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/13.2.err -------------------------------------------------------------------------------- /test/cql/13.2.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | or 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | a 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | b 21 | 22 | 23 | 24 | 25 | title 26 | 27 | 28 | ascending 29 | 30 | 31 | 32 | 33 | author 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /test/cql/2.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.1.err -------------------------------------------------------------------------------- /test/cql/2.1.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | = 5 | 6 | fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.10.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.10.err -------------------------------------------------------------------------------- /test/cql/2.10.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | any 5 | 6 | frog 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.11.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.11.err -------------------------------------------------------------------------------- /test/cql/2.11.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | any 5 | 6 | 7 | stem 8 | 9 | 10 | 11 | frog pond 12 | 13 | -------------------------------------------------------------------------------- /test/cql/2.12.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.12.err -------------------------------------------------------------------------------- /test/cql/2.12.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | = 5 | 6 | fish frog chicken 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.13.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.13.err -------------------------------------------------------------------------------- /test/cql/2.13.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | = 5 | 6 | 7 | rel.algorithm 8 | = 9 | CORI 10 | 11 | 12 | 13 | squid 14 | 15 | -------------------------------------------------------------------------------- /test/cql/2.14.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.14.err -------------------------------------------------------------------------------- /test/cql/2.14.out: -------------------------------------------------------------------------------- 1 | 2 | creator 3 | 4 | any 5 | 6 | 7 | b.bar 8 | > 9 | 1 10 | 11 | 12 | f.foo 13 | 14 | 15 | 16 | sanderson taylor 17 | 18 | -------------------------------------------------------------------------------- /test/cql/2.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.2.err -------------------------------------------------------------------------------- /test/cql/2.2.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | == 5 | 6 | fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.3.err -------------------------------------------------------------------------------- /test/cql/2.3.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | any 5 | 6 | fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.4.err -------------------------------------------------------------------------------- /test/cql/2.4.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | all 5 | 6 | fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.5.err -------------------------------------------------------------------------------- /test/cql/2.5.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | > 5 | 6 | 9 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.6.err -------------------------------------------------------------------------------- /test/cql/2.6.out: -------------------------------------------------------------------------------- 1 | 2 | title 3 | 4 | >= 5 | 6 | 23 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.7.err -------------------------------------------------------------------------------- /test/cql/2.7.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | any 5 | 6 | fish chips 7 | 8 | -------------------------------------------------------------------------------- /test/cql/2.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.8.err -------------------------------------------------------------------------------- /test/cql/2.8.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | any 5 | 6 | 7 | stem 8 | 9 | 10 | 11 | fish 12 | 13 | -------------------------------------------------------------------------------- /test/cql/2.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/2.9.err -------------------------------------------------------------------------------- /test/cql/2.9.out: -------------------------------------------------------------------------------- 1 | 2 | dc.fish 3 | 4 | all 5 | 6 | 7 | fuzzy 8 | 9 | 10 | stem 11 | 12 | 13 | 14 | fish chips 15 | 16 | -------------------------------------------------------------------------------- /test/cql/3.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.1.err -------------------------------------------------------------------------------- /test/cql/3.1.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | or 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | dog 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.2.err -------------------------------------------------------------------------------- /test/cql/3.2.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | fish 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.3.err -------------------------------------------------------------------------------- /test/cql/3.3.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | not 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | frog 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.4.err -------------------------------------------------------------------------------- /test/cql/3.4.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | not 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | frog 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.5.err -------------------------------------------------------------------------------- /test/cql/3.5.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | not 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | fish food 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.6.err -------------------------------------------------------------------------------- /test/cql/3.6.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | xml 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | prox/// 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.7.err -------------------------------------------------------------------------------- /test/cql/3.7.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | fred 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | any 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.8.err -------------------------------------------------------------------------------- /test/cql/3.8.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | or 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | fred 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | all 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/3.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/3.9.err -------------------------------------------------------------------------------- /test/cql/4.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/4.1.err -------------------------------------------------------------------------------- /test/cql/4.1.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | bath.uniformTitle 8 | 9 | any 10 | 11 | fish 12 | 13 | 14 | 15 | 16 | dc.title 17 | 18 | any 19 | 20 | cat dog 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/4.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/4.2.err -------------------------------------------------------------------------------- /test/cql/4.2.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | or 4 | 5 | 6 | 7 | title 8 | 9 | any 10 | 11 | 12 | stem 13 | 14 | 15 | 16 | fish dog 17 | 18 | 19 | 20 | 21 | cql.serverChoice 22 | 23 | = 24 | 25 | and 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /test/cql/5.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.1.err -------------------------------------------------------------------------------- /test/cql/5.1.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | 7 | cql.serverChoice 8 | 9 | = 10 | 11 | cat 12 | 13 | 14 | 15 | 16 | cql.serverChoice 17 | 18 | = 19 | 20 | hat 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /test/cql/5.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.2.err -------------------------------------------------------------------------------- /test/cql/5.2.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | ordered 7 | 8 | 9 | unit 10 | = 11 | word 12 | 13 | 14 | distance 15 | = 16 | 3 17 | 18 | 19 | 20 | 21 | 22 | cql.serverChoice 23 | 24 | = 25 | 26 | cat 27 | 28 | 29 | 30 | 31 | cql.serverChoice 32 | 33 | = 34 | 35 | hat 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /test/cql/5.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.3.err -------------------------------------------------------------------------------- /test/cql/5.3.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | distance 7 | < 8 | 3 9 | 10 | 11 | 12 | 13 | 14 | cql.serverChoice 15 | 16 | = 17 | 18 | cat 19 | 20 | 21 | 22 | 23 | cql.serverChoice 24 | 25 | = 26 | 27 | hat 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /test/cql/5.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.4.err -------------------------------------------------------------------------------- /test/cql/5.4.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | unit 7 | = 8 | sentence 9 | 10 | 11 | 12 | 13 | 14 | cql.serverChoice 15 | 16 | = 17 | 18 | fish food 19 | 20 | 21 | 22 | 23 | cql.serverChoice 24 | 25 | = 26 | 27 | and 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /test/cql/5.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.5.err -------------------------------------------------------------------------------- /test/cql/5.5.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | distance 7 | <= 8 | 5 9 | 10 | 11 | 12 | 13 | 14 | title 15 | 16 | all 17 | 18 | chips frog 19 | 20 | 21 | 22 | 23 | cql.serverChoice 24 | 25 | = 26 | 27 | exact 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /test/cql/5.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.6.err -------------------------------------------------------------------------------- /test/cql/5.6.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | prox 4 | 5 | 6 | unit 7 | = 8 | element 9 | 10 | 11 | distance 12 | > 13 | 5 14 | 15 | 16 | 17 | 18 | 19 | dc.author 20 | 21 | == 22 | 23 | jones 24 | 25 | 26 | 27 | 28 | title 29 | 30 | >= 31 | 32 | smith 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /test/cql/5.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.7.err -------------------------------------------------------------------------------- /test/cql/5.7.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | rel.SumOfScores 7 | 8 | 9 | 10 | 11 | 12 | cql.serverChoice 13 | 14 | = 15 | 16 | a 17 | 18 | 19 | 20 | 21 | cql.serverChoice 22 | 23 | = 24 | 25 | b 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /test/cql/5.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/5.8.err -------------------------------------------------------------------------------- /test/cql/5.8.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | rel.algorithm 7 | = 8 | CORI 9 | 10 | 11 | 12 | 13 | 14 | cql.serverChoice 15 | 16 | = 17 | 18 | a 19 | 20 | 21 | 22 | 23 | cql.serverChoice 24 | 25 | = 26 | 27 | b 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /test/cql/6.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.1.err -------------------------------------------------------------------------------- /test/cql/6.1.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat^ 7 | 8 | -------------------------------------------------------------------------------- /test/cql/6.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.2.err -------------------------------------------------------------------------------- /test/cql/6.2.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat 7 | 8 | -------------------------------------------------------------------------------- /test/cql/6.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.3.err -------------------------------------------------------------------------------- /test/cql/6.3.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | ^cat says \"fish\" 7 | 8 | -------------------------------------------------------------------------------- /test/cql/6.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.4.err -------------------------------------------------------------------------------- /test/cql/6.4.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat*fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/6.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.5.err -------------------------------------------------------------------------------- /test/cql/6.5.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | cat?dog 7 | 8 | -------------------------------------------------------------------------------- /test/cql/6.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/6.6.err -------------------------------------------------------------------------------- /test/cql/6.6.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | ^cat*fishdog\"horse? 7 | 8 | -------------------------------------------------------------------------------- /test/cql/7.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/7.1.err -------------------------------------------------------------------------------- /test/cql/7.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/7.2.err -------------------------------------------------------------------------------- /test/cql/7.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/7.3.err -------------------------------------------------------------------------------- /test/cql/8.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/8.1.err -------------------------------------------------------------------------------- /test/cql/8.1.out: -------------------------------------------------------------------------------- 1 | 2 | dc.title 3 | 4 | = 5 | 6 | fish 7 | 8 | -------------------------------------------------------------------------------- /test/cql/8.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/8.2.err -------------------------------------------------------------------------------- /test/cql/8.2.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | info:srw/cql-context-set/1/dc-v1.1 5 | 6 | 7 | title 8 | 9 | = 10 | 11 | fish 12 | 13 | -------------------------------------------------------------------------------- /test/cql/8.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/8.3.err -------------------------------------------------------------------------------- /test/cql/8.3.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | and 4 | 5 | 6 | 7 | 8 | 9 | info:srw/cql-context-set/1/dc-v1.1 10 | 11 | 12 | title 13 | 14 | = 15 | 16 | fish 17 | 18 | 19 | 20 | 21 | 22 | 23 | http://srw.cheshire3.org/contextSets/ccg/1.1/ 24 | 25 | 26 | force 27 | 28 | = 29 | 30 | 3 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /test/cql/9.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/9.1.err -------------------------------------------------------------------------------- /test/cql/9.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/9.2.err -------------------------------------------------------------------------------- /test/cql/9.2.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | any 7 | 8 | -------------------------------------------------------------------------------- /test/cql/9.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/9.3.err -------------------------------------------------------------------------------- /test/cql/9.3.out: -------------------------------------------------------------------------------- 1 | 2 | cql.serverChoice 3 | 4 | = 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/cql/9.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql/9.4.err -------------------------------------------------------------------------------- /test/cql/9.4.out: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | any 5 | 6 | 7 | any 8 | 9 | > 10 | 11 | any 12 | 13 | -------------------------------------------------------------------------------- /test/cql2pqf-order.txt: -------------------------------------------------------------------------------- 1 | # cql2pqf spec which tests evaluation order of rules 2 | # Identifiers for prefixes used in this file. (index.*) 3 | set.cql = info:srw/cql-context-set/1/cql-v1.1 4 | set.rec = info:srw/cql-context-set/2/rec-1.0 5 | set.dc = info:srw/cql-context-set/1/dc-v1.1 6 | 7 | # default set (in query) 8 | set = info:srw/cql-context-set/1/dc-v1.1 9 | 10 | # The default access point and result-set references 11 | 12 | index.dc.title = 1=index 13 | 14 | relation.eq = 2=relation 15 | 16 | relationModifier.relevant = 3=modifier 17 | 18 | position.any = 4=position 19 | 20 | 21 | structure.* = 5=structure 22 | 23 | truncation.none = 6=truncation 24 | 25 | always = 7=always 26 | 27 | -------------------------------------------------------------------------------- /test/cql2pqf/1.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/1.1.err -------------------------------------------------------------------------------- /test/cql2pqf/1.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/1.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/1.2.err -------------------------------------------------------------------------------- /test/cql2pqf/1.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a b 2 | @attr 6=1 @attr 2=3 @attr 4=1 @and @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/1.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/1.3.err -------------------------------------------------------------------------------- /test/cql2pqf/1.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL "a b" 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/2.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/2.1.err -------------------------------------------------------------------------------- /test/cql2pqf/2.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL title = fish 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=4 "fish" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/2.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/2.2.err -------------------------------------------------------------------------------- /test/cql2pqf/2.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title = fish 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=4 "fish" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.1.err -------------------------------------------------------------------------------- /test/cql2pqf/3.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL cat or dog 2 | @or @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "cat" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "dog" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.2.err -------------------------------------------------------------------------------- /test/cql2pqf/3.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL cat and fish 2 | @and @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "cat" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "fish" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.3.err -------------------------------------------------------------------------------- /test/cql2pqf/3.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL cat not frog 2 | @not @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "cat" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "frog" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.4.err -------------------------------------------------------------------------------- /test/cql2pqf/3.4.out: -------------------------------------------------------------------------------- 1 | Parsing CQL (cat not frog) 2 | @not @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "cat" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "frog" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.5.err -------------------------------------------------------------------------------- /test/cql2pqf/3.5.out: -------------------------------------------------------------------------------- 1 | Parsing CQL "cat" not "fish food" 2 | @not @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "cat" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "fish food" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.6.err -------------------------------------------------------------------------------- /test/cql2pqf/3.6.out: -------------------------------------------------------------------------------- 1 | Parsing CQL xml and "prox///" 2 | @and @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "xml" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "prox///" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.7.err -------------------------------------------------------------------------------- /test/cql2pqf/3.7.out: -------------------------------------------------------------------------------- 1 | Parsing CQL fred and any 2 | @and @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "fred" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "any" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.8.err -------------------------------------------------------------------------------- /test/cql2pqf/3.8.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ((fred or all)) 2 | @or @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "fred" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "all" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/3.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/3.9.err -------------------------------------------------------------------------------- /test/cql2pqf/3.9.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a or b and c not d 2 | @not @and @or @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "c" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "d" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.1.err -------------------------------------------------------------------------------- /test/cql2pqf/4.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL *a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=2 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.10.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.10.err -------------------------------------------------------------------------------- /test/cql2pqf/4.10.out: -------------------------------------------------------------------------------- 1 | Parsing CQL *a# 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=2 @attr 1=1016 "a#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.11.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.11.err -------------------------------------------------------------------------------- /test/cql2pqf/4.11.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a#a* 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=1 @attr 1=1016 "a#a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.12.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.12.err -------------------------------------------------------------------------------- /test/cql2pqf/4.12.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a*3 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a?\\3" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.2.err -------------------------------------------------------------------------------- /test/cql2pqf/4.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a* 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=1 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.3.err -------------------------------------------------------------------------------- /test/cql2pqf/4.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL *a* 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=3 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.4.err -------------------------------------------------------------------------------- /test/cql2pqf/4.4.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a*a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a?a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.5.err -------------------------------------------------------------------------------- /test/cql2pqf/4.5.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ?a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "#a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.6.err -------------------------------------------------------------------------------- /test/cql2pqf/4.6.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a? 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.7.err -------------------------------------------------------------------------------- /test/cql2pqf/4.7.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ?a? 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "#a#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.8.err -------------------------------------------------------------------------------- /test/cql2pqf/4.8.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a?a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a#a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/4.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/4.9.err -------------------------------------------------------------------------------- /test/cql2pqf/4.9.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a#a? 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a\\#a#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.1.err -------------------------------------------------------------------------------- /test/cql2pqf/5.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a*\3 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "a?3" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.10.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.10.err -------------------------------------------------------------------------------- /test/cql2pqf/5.10.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ^a\^ 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=1 @attr 6=1 @attr 5=100 @attr 1=1016 "a^" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.2.err -------------------------------------------------------------------------------- /test/cql2pqf/5.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL \*a# 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "*a#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.3.err -------------------------------------------------------------------------------- /test/cql2pqf/5.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL \*a*b# 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=1016 "*a?b\\#" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.4.err -------------------------------------------------------------------------------- /test/cql2pqf/5.4.out: -------------------------------------------------------------------------------- 1 | Parsing CQL \" 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "\"" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.5.err -------------------------------------------------------------------------------- /test/cql2pqf/5.5.out: -------------------------------------------------------------------------------- 1 | Parsing CQL @and 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "@and" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.6.err -------------------------------------------------------------------------------- /test/cql2pqf/5.6.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a^ 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=4 @attr 6=1 @attr 5=100 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.7.err -------------------------------------------------------------------------------- /test/cql2pqf/5.7.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ^a 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=1 @attr 6=1 @attr 5=100 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.8.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.8.err -------------------------------------------------------------------------------- /test/cql2pqf/5.8.out: -------------------------------------------------------------------------------- 1 | Parsing CQL ^a^ 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=3 @attr 5=100 @attr 1=1016 "a" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/5.9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/5.9.err -------------------------------------------------------------------------------- /test/cql2pqf/5.9.out: -------------------------------------------------------------------------------- 1 | Parsing CQL \^ 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "^" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.1.err -------------------------------------------------------------------------------- /test/cql2pqf/6.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/unmasked a*b 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 1=4 @attr 5=100 "a*b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.2.err -------------------------------------------------------------------------------- /test/cql2pqf/6.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/masked a*b 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=104 @attr 1=4 "a?b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.3.err -------------------------------------------------------------------------------- /test/cql2pqf/6.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/regexp a.*b 2 | @attr 6=1 @attr 2=3 @attr 4=1 @attr 1=4 @attr 5=102 "a.*b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.4.err -------------------------------------------------------------------------------- /test/cql2pqf/6.4.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/dc.language=dk a 2 | @prox 0 0 0 0 k 8 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=4 "a" @attr 1=54 dk 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.5.err -------------------------------------------------------------------------------- /test/cql2pqf/6.5.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/dc.language=dk/regexp a.*b 2 | @prox 0 0 0 0 k 8 @attr 6=1 @attr 2=3 @attr 4=1 @attr 1=4 @attr 5=102 "a.*b" @attr 1=54 dk 3 | -------------------------------------------------------------------------------- /test/cql2pqf/6.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/6.6.err -------------------------------------------------------------------------------- /test/cql2pqf/6.6.out: -------------------------------------------------------------------------------- 1 | Parsing CQL dc.title=/language=dk/regexp a.*b 2 | @prox 0 0 0 0 k 8 @attr 6=1 @attr 2=3 @attr 4=1 @attr 1=4 @attr 5=102 "a.*b" 3 | Transform error 16 language 4 | -------------------------------------------------------------------------------- /test/cql2pqf/7.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.1.err -------------------------------------------------------------------------------- /test/cql2pqf/7.1.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox b 2 | @prox 0 1 0 2 k 2 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/7.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.2.err -------------------------------------------------------------------------------- /test/cql2pqf/7.2.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox/unordered b 2 | @prox 0 1 0 2 k 2 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/7.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.3.err -------------------------------------------------------------------------------- /test/cql2pqf/7.3.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox/ordered b 2 | @prox 0 1 1 2 k 2 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/7.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.4.err -------------------------------------------------------------------------------- /test/cql2pqf/7.4.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox/distance < 3 b 2 | @prox 0 3 0 1 k 2 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/7.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.5.err -------------------------------------------------------------------------------- /test/cql2pqf/7.5.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox/distance<3/ordered b 2 | @prox 0 3 1 1 k 2 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqf/7.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/cql2pqf/7.6.err -------------------------------------------------------------------------------- /test/cql2pqf/7.6.out: -------------------------------------------------------------------------------- 1 | Parsing CQL a prox/unit=paragraph b 2 | @prox 0 0 0 2 k 4 @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "a" @attr 6=1 @attr 2=3 @attr 4=1 @attr 3=3 @attr 6=1 @attr 5=100 @attr 1=1016 "b" 3 | -------------------------------------------------------------------------------- /test/cql2pqfsample: -------------------------------------------------------------------------------- 1 | # CQL queries for testing. 2 | # Read by test_cql2pqf.sh 3 | # No blank lines! 4 | # 5 | # Simple Term 6 | a 7 | a b 8 | "a b" 9 | # Index Relation Term 10 | title = fish 11 | dc.title = fish 12 | # Simple Boolean 13 | cat or dog 14 | cat and fish 15 | cat not frog 16 | (cat not frog) 17 | "cat" not "fish food" 18 | xml and "prox///" 19 | fred and any 20 | ((fred or all)) 21 | a or b and c not d 22 | # Masking/Truncation 23 | *a 24 | a* 25 | *a* 26 | a*a 27 | ?a 28 | a? 29 | ?a? 30 | a?a 31 | a#a? 32 | *a# 33 | a#a* 34 | a*3 35 | # Escape sequences (sh reads one slash, though) 36 | a*\\3 37 | \\*a# 38 | \\*a*b# 39 | \\" 40 | @and 41 | a^ 42 | ^a 43 | ^a^ 44 | \\^ 45 | ^a\\^ 46 | # relation modifiers 47 | dc.title=/unmasked a*b 48 | dc.title=/masked a*b 49 | dc.title=/regexp a.*b 50 | dc.title=/dc.language=dk a 51 | dc.title=/dc.language=dk/regexp a.*b 52 | dc.title=/language=dk/regexp a.*b 53 | # proximity 54 | a prox b 55 | a prox/unordered b 56 | a prox/ordered b 57 | a prox/distance < 3 b 58 | a prox/distance<3/ordered b 59 | a prox/unit=paragraph b 60 | -------------------------------------------------------------------------------- /test/marc-files/marc0.chr: -------------------------------------------------------------------------------- 1 | utf-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc0.json: -------------------------------------------------------------------------------- 1 | { 2 | "leader": "00062cgm a2200037Ia 4500", 3 | "fields": [ 4 | { 5 | "092": { 6 | "subfields": [ 7 | { 8 | "a": "DVD CHI 791.43" 9 | }, 10 | { 11 | "b": "QI" 12 | } 13 | ], 14 | "ind1": " ", 15 | "ind2": "á" 16 | } 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /test/marc-files/marc0.json.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/marc0.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/marc0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00062cgm a2200037Ia 4500 4 | 5 | DVD CHI 791.43 6 | QI 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/marc-files/marc0.xml.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/marc1.chr: -------------------------------------------------------------------------------- 1 | iso-8859-1 2 | -------------------------------------------------------------------------------- /test/marc-files/marc1.json.marc: -------------------------------------------------------------------------------- 1 | 00989nam0 32003011 450 001002800000004001000028008002800038009001100066021002700077032001500104100002100119245005400140250004100194260004000235300002700275504012300302512006100425520005000486652002400536652001600560666001600576666001900592666001500611666001800626666001900644666000900663666001500672000a9 181 423 4b710100fa000rnae000tmuua2002buslengv0000aagxx000a1-4000-4596-7d$14,00000&DBC2004390000aSlomanhLarry000aOn the road with Bob DylaneLarry "Ratso" Sloman000aRevised editionbThree Rivers Press000aNew YorkbThree Rivers Pressc2002000axv, 464 sider, tavler000aLarry "Ratso" Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: "The Rolling Thunder revue"000aPå omslaget: With a new introduction by Kinky Friedman000aTidligere: 1. udgave. New York, Bantam, 19780000m99.4aDylanhBob000p78.9064v5000ffolkemusik000ffolkemusikere000frockmusik000frockmusikere000frockkoncerter000eUSA000i1970-1979 -------------------------------------------------------------------------------- /test/marc-files/marc1.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc1.marc -------------------------------------------------------------------------------- /test/marc-files/marc1.xml.marc: -------------------------------------------------------------------------------- 1 | 00989nam0a32003011 450 001002800000004001000028008002800038009001100066021002700077032001500104100002100119245005400140250004100194260004000235300002700275504012300302512006100425520005000486652002400536652001600560666001600576666001900592666001500611666001800626666001900644666000900663666001500672000a9 181 423 4b710100fa000rnae000tmuua2002buslengv0000aagxx000a1-4000-4596-7d$14,00000&DBC2004390000aSlomanhLarry000aOn the road with Bob DylaneLarry "Ratso" Sloman000aRevised editionbThree Rivers Press000aNew YorkbThree Rivers Pressc2002000axv, 464 sider, tavler000aLarry "Ratso" Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: "The Rolling Thunder revue"000aPå omslaget: With a new introduction by Kinky Friedman000aTidligere: 1. udgave. New York, Bantam, 19780000m99.4aDylanhBob000p78.9064v5000ffolkemusik000ffolkemusikere000frockmusik000frockmusikere000frockkoncerter000eUSA000i1970-1979 -------------------------------------------------------------------------------- /test/marc-files/marc10.chr: -------------------------------------------------------------------------------- 1 | danmarc 2 | -------------------------------------------------------------------------------- /test/marc-files/marc10.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc10.marc -------------------------------------------------------------------------------- /test/marc-files/marc11.chr: -------------------------------------------------------------------------------- 1 | danmarc 2 | -------------------------------------------------------------------------------- /test/marc-files/marc11.json.marc: -------------------------------------------------------------------------------- 1 | 00694nam 22002054 450 0010009000000050017000090080041000262450037000672600012001045050070001165050052001865050046002385050051002845050033003355050037003685050024004055050022004295050016004517400021004672028538920180924145927.0000000s1992 dk |||| 00| | dan d00ategnsæt test, diakritiske tegn. b[S.n.].0 a:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈0 aaigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;0 agrave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;0 acirconflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;0 atilde: ã;Ã;ñ;Ñ;õ;Õ;~m;0 atrema: ë;Ë;ı̈;Ï;ÿ;n̈;0 acedille: ç;Ç;ņ;0 aomlyd: ä;ë;n̈;0 asnabel a: @0 asnabel @ snabel. -------------------------------------------------------------------------------- /test/marc-files/marc11.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc11.marc -------------------------------------------------------------------------------- /test/marc-files/marc11.xml.marc: -------------------------------------------------------------------------------- 1 | 00694nam a22002054 450 0010009000000050017000090080041000262450037000672600012001045050070001165050052001865050046002385050051002845050033003355050037003685050024004055050022004295050016004517400021004672028538920180924145927.0000000s1992 dk |||| 00| | dan d00ategnsæt test, diakritiske tegn. b[S.n.].0 a:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈0 aaigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;0 agrave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;0 acirconflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;0 atilde: ã;Ã;ñ;Ñ;õ;Õ;~m;0 atrema: ë;Ë;ı̈;Ï;ÿ;n̈;0 acedille: ç;Ç;ņ;0 aomlyd: ä;ë;n̈;0 asnabel a: @0 asnabel @ snabel. -------------------------------------------------------------------------------- /test/marc-files/marc12.chr: -------------------------------------------------------------------------------- 1 | marc-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc12.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc12.marc -------------------------------------------------------------------------------- /test/marc-files/marc2.chr: -------------------------------------------------------------------------------- 1 | iso-8859-1 2 | -------------------------------------------------------------------------------- /test/marc-files/marc2.json.marc: -------------------------------------------------------------------------------- 1 | 01121nam0 32002171 450 001002800000004001000028008002800038009001100066039000900077100001900086245005900105260003300164300001000197512007300207531001400280538001900294652001500313666004900328795050600377795002000883000a9 182 502 3b710100fa000rcae000tsufa1995bgblengv0000asgxc000abef000aMimmshGarnet000aCry babyaWarm and soulfuleGarnet Mimms ... [et al.]000aBury St. EdmundsbBGOc1995000n1 cd000aIndspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)000aIndhold:000fBGOgBGOCD268000m78.794v4000msoulmrhythm & bluesnvokalp1960-1969lUSA000å11aCry babyaNobody but youaUntil you were goneaAnytime you want meaSo closeaFor your precious loveaBaby don't you weepaA ¤quiet placeaCry to meaDon't change your heartaWanting youaThe ¤truth hurtsaI'll take good care of youaLooking for youaIt won't hurt (half as much)aIt was easier to hurt heraThinkin'aProve it to meaMore than a miracleaAs long as I have youaOne girlaThere goes my babyaIt's just a matter of timeaA ¤little bit of soapaLook awayaI'll make it up to you000å40y0a1 girl -------------------------------------------------------------------------------- /test/marc-files/marc2.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc2.marc -------------------------------------------------------------------------------- /test/marc-files/marc2.xml.marc: -------------------------------------------------------------------------------- 1 | 01121nam0a32002171 450 001002800000004001000028008002800038009001100066039000900077100001900086245005900105260003300164300001000197512007300207531001400280538001900294652001500313666004900328795050600377795002000883000a9 182 502 3b710100fa000rcae000tsufa1995bgblengv0000asgxc000abef000aMimmshGarnet000aCry babyaWarm and soulfuleGarnet Mimms ... [et al.]000aBury St. EdmundsbBGOc1995000n1 cd000aIndspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)000aIndhold:000fBGOgBGOCD268000m78.794v4000msoulmrhythm & bluesnvokalp1960-1969lUSA000å11aCry babyaNobody but youaUntil you were goneaAnytime you want meaSo closeaFor your precious loveaBaby don't you weepaA ¤quiet placeaCry to meaDon't change your heartaWanting youaThe ¤truth hurtsaI'll take good care of youaLooking for youaIt won't hurt (half as much)aIt was easier to hurt heraThinkin'aProve it to meaMore than a miracleaAs long as I have youaOne girlaThere goes my babyaIt's just a matter of timeaA ¤little bit of soapaLook awayaI'll make it up to you000å40y0a1 girl -------------------------------------------------------------------------------- /test/marc-files/marc3.chr: -------------------------------------------------------------------------------- 1 | iso-8859-1 2 | -------------------------------------------------------------------------------- /test/marc-files/marc3.json.marc: -------------------------------------------------------------------------------- 1 | 00914naa 2200337 450 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin ranlund, TomcKristian AugustsgatecPilestredet 19 aa 0 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/marc3.marc: -------------------------------------------------------------------------------- 1 | 00914naa 2200337 45 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin Granlund, TomcKristian AugustsgatecPilestredet 19 aa 20 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/marc3.xml.marc: -------------------------------------------------------------------------------- 1 | 00914naa a2200337 450 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin ranlund, TomcKristian AugustsgatecPilestredet 19 aa 0 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/marc4.chr: -------------------------------------------------------------------------------- 1 | iso-8859-1 2 | -------------------------------------------------------------------------------- /test/marc-files/marc4.json: -------------------------------------------------------------------------------- 1 | { 2 | "leader": "009140091422a 22003370 ", 3 | "fields": [] 4 | } 5 | -------------------------------------------------------------------------------- /test/marc-files/marc4.json.marc: -------------------------------------------------------------------------------- 1 | 00026009142200025003370  -------------------------------------------------------------------------------- /test/marc-files/marc4.marc: -------------------------------------------------------------------------------- 1 | 0091400914naa 2200337 45 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin Granlund, TomcKristian AugustsgatecPilestredet 19 aa 20 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 2 | -------------------------------------------------------------------------------- /test/marc-files/marc4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 009140091a22a 22003370 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/marc-files/marc4.xml.marc: -------------------------------------------------------------------------------- 1 | 000260091a2200025003370  -------------------------------------------------------------------------------- /test/marc-files/marc5.chr: -------------------------------------------------------------------------------- 1 | utf-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc5.json.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/marc5.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. 2η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/marc5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00492nam a22001455a 4500 4 | 000277485 5 | 20051026111436.0 6 | 050413s1894 gr 000 0 gre d 7 | 8 | Μαρούδης, Κωνσταντίνος Ιω 9 | 10 | 11 | Ελληνικόν κρυπτογραφικόν λεξικόν / 12 | Κωνστ. Ι. Μαρούδης. 13 | 14 | 15 | εκδ. 16 | 17 | 18 | Αθήνα, 19 | 1894. 20 | 21 | 22 | 248 σελ. 23 | 24 | 25 | Greek language, Modern 26 | Dialects 27 | Dictionaries 28 | 29 | 30 | Cryptography. 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /test/marc-files/marc5.xml.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/marc6.chr: -------------------------------------------------------------------------------- 1 | marc-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc6.json.marc: -------------------------------------------------------------------------------- 1 | 00366nam 22001698a 4500001001300000003000400013005001700017008004100034010001700075040001300092050001200105100001700117245003000134260001200164263000900176300001100185 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  a 11224466  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. -------------------------------------------------------------------------------- /test/marc-files/marc6.marc: -------------------------------------------------------------------------------- 1 | 00366nam 22001698a 4500001001300000003000400013005001700017008004100034010001700179040001300075050001200088100001700100245003000117260001200147263000900159300001100168 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. a 11224466  -------------------------------------------------------------------------------- /test/marc-files/marc6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00366nam a22001698a 4500 4 | 11224466 5 | DLC 6 | 00000000000000.0 7 | 910710c19910701nju 00010 eng 8 | 9 | 11224466 10 | 11 | 12 | DLC 13 | DLC 14 | 15 | 16 | 123-xyz 17 | 18 | 19 | Jack Collins 20 | 21 | 22 | How to program a computer 23 | 24 | 25 | Penguin 26 | 27 | 28 | 8710 29 | 30 | 31 | p. cm. 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /test/marc-files/marc6.xml.marc: -------------------------------------------------------------------------------- 1 | 00366nam a22001698a 4500001001300000003000400013005001700017008004100034010001700075040001300092050001200105100001700117245003000134260001200164263000900176300001100185 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  a 11224466  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. -------------------------------------------------------------------------------- /test/marc-files/marc7.chr: -------------------------------------------------------------------------------- 1 | marc-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc7.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc7.marc -------------------------------------------------------------------------------- /test/marc-files/marc8.chr: -------------------------------------------------------------------------------- 1 | marc-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc9.chr: -------------------------------------------------------------------------------- 1 | marc-8 2 | -------------------------------------------------------------------------------- /test/marc-files/marc9.marc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/marc-files/marc9.marc -------------------------------------------------------------------------------- /test/marc-files/marccol3.u8.1.lst: -------------------------------------------------------------------------------- 1 | 01313cam a2200349ua 4500 2 | 001 82129893 3 | 003 DLC 4 | 005 20070808062021.0 5 | 008 841102s1980 cc a 000 0 chi 6 | 035 $a (DLC)5011703 7 | 010 $a 82129893 8 | 035 $a (CStRLIN)DCLP84-B3561 9 | 040 $a DLC-R $c DLC-R $d CStRLIN $d DLC 10 | 050 00 $a TL546.7 $b .S48 1980 11 | 066 $c $1 12 | 082 00 $a 629.4 $2 19 13 | 100 1 $6 880-01 $a Shen, Guoliang. 14 | 245 10 $6 880-02 $a Yu zhou hang xing he shu li hua / $c Shen Guoliang wen ; Chen Genxiang tu. 15 | 250 $6 880-03 $a Di 1 ban. 16 | 260 $6 880-04 $a [Canton] : $b Guangdong ren min chu ban she : $b Guangdong sheng xin hua shu dian fa xing, $c 1980. 17 | 300 $a 199 p. : $b ill. ; $c 19 cm. 18 | 440 0 $6 880-05 $a Ke xue zhi shi pu ji cong shu 19 | 650 0 $a Astronautics $x Popular works. 20 | 700 1 $6 880-06 $a Chen, Genxiang. 21 | 880 1 $6 100-01/1 $a 沈 国良. 22 | 880 10 $6 245-02/1 $a 宇宙 航行 和 数理化 / $c 沈 国良 文 ; 陈 根祥 图. 23 | 880 $6 250-03/1 $a 第1版. 24 | 880 $6 260-04/1 $a [Canton] : $b 广东 人民 出版社 : $b 广东省 新華 書店 发行, $c 1980. 25 | 880 0 $6 440-05/1 $a 科学 知识 普及 丛书 26 | 880 1 $6 700-06/1 $a 陈 根祥. 27 | 906 $a 0 $b cbc $c orignew $d u $e ncip $f 19 $g y-rlinjack 28 | 985 $a spacingreload 29 | 30 | -------------------------------------------------------------------------------- /test/marc-files/marccol3.u8.2.lst: -------------------------------------------------------------------------------- 1 | 01373cam a2200349ua 4500 2 | 001 82129893 3 | 003 DLC 4 | 005 20070808062021.0 5 | 008 841102s1980 cc a 000 0 chi 6 | 035 $a (DLC)5011703 7 | 010 $a 82129893 8 | 035 $a (CStRLIN)DCLP84-B3561 9 | 040 $a DLC-R $c DLC-R $d CStRLIN $d DLC 10 | 050 00 $a TL546.7 $b .S48 1980 11 | 066 $c $1 12 | 082 00 $a 629.4 $2 19 13 | 100 1 $6 880-01 $a Shen, Guoliang. 14 | 245 10 $6 880-02 $a Yu zhou hang xing he shu li hua / $c Shen Guoliang wen ; Chen Genxiang tu. 15 | 250 $6 880-03 $a Di 1 ban. 16 | 260 $6 880-04 $a [Canton] : $b Guangdong ren min chu ban she : $b Guangdong sheng xin hua shu dian fa xing, $c 1980. 17 | 300 $a 199 p. : $b ill. ; $c 19 cm. 18 | 440 0 $6 880-05 $a Ke xue zhi shi pu ji cong shu 19 | 650 0 $a Astronautics $x Popular works. 20 | 700 1 $6 880-06 $a Chen, Genxiang. 21 | 880 1 $6 100-01/1 $a 沈 国良. 22 | 880 10 $6 245-02/1 $a 宇宙 航行 和 数理化 / $c 沈 国良 文 ; 陈 根祥 图. 23 | 880 $6 250-03/1 $a 第1版. 24 | 880 $6 260-04/1 $a [Canton] : $b 广东 人民 出版社 : $b 广东省 新華 書店 发行, $c 1980. 25 | 880 0 $6 440-05/1 $a 科学 知识 普及 丛书 26 | 880 1 $6 700-06/1 $a 陈 根祥. 27 | 906 $a 0 $b cbc $c orignew $d u $e ncip $f 19 $g y-rlinjack 28 | 985 $a spacingreload 29 | 30 | -------------------------------------------------------------------------------- /test/marc-files/marccol3.u8.marc: -------------------------------------------------------------------------------- 1 | 01313cam a2200349ua 450000100090000000300040000900500170001300800410003003500170007101000170008803500260010504000310013105000230016206600070018508200140019210000280020624500850023425000220031926001060034130000290044744000420047665000330051870000280055188000280057988000920060788000230069988001020072288000480082488000280087290600450090098500180094582129893DLC20070808062021.0841102s1980 cc a 000 0 chi  a(DLC)5011703 a 82129893  a(CStRLIN)DCLP84-B3561 aDLC-RcDLC-RdCStRLINdDLC00aTL546.7b.S48 1980 c$100a629.42191 6880-01aShen, Guoliang.106880-02aYu zhou hang xing he shu li hua /cShen Guoliang wen ; Chen Genxiang tu. 6880-03aDi 1 ban. 6880-04a[Canton] :bGuangdong ren min chu ban she :bGuangdong sheng xin hua shu dian fa xing,c1980. a199 p. :bill. ;c19 cm. 06880-05aKe xue zhi shi pu ji cong shu 0aAstronauticsxPopular works.1 6880-06aChen, Genxiang.1 6100-01/1a沈 国良.106245-02/1a宇宙 航行 和 数理化 /c沈 国良 文 ; 陈 根祥 图. 6250-03/1a第1版. 6260-04/1a[Canton] :b广东 人民 出版社 :b广东省 新華 書店 发行,c1980. 06440-05/1a科学 知识 普及 丛书1 6700-06/1a陈 根祥. a0bcbccorignewduencipf19gy-rlinjack aspacingreload -------------------------------------------------------------------------------- /test/marc-files/marccol4.u8.1.lst: -------------------------------------------------------------------------------- 1 | 01357nas a2200313 a 4500 2 | 001 2007210635 3 | 003 DLC 4 | 005 20071005153240.0 5 | 008 071005c200u9999ja | | d0jpn 6 | 010 $a 2007210635 7 | 035 $a (OCoLC)173684089 8 | 040 $a DLC $c DLC $d DLC 9 | 042 $a lc 10 | 043 $a a-ja--- 11 | 050 00 $a T27.J32 $b S83a 12 | 066 $c $1 13 | 110 2 $6 880-01 $a Sangyō Gijutsu Sōgō Kenkyūjo. $b Shikoku Sangakukan Renkei Sentā. 14 | 245 10 $6 880-02 $a Shikoku Sangakukan Renkei Sentā̄ katsudo hokoku. 15 | 246 11 $a Activity report 16 | 260 $6 880-03 $a Kagawa-ken Takamatsu-shi : $b Sangyō Gijutsu Sōgō Kenkyūjo Shikoku Sangakukan Renkei Sentā 17 | 500 $a Description based on: 2005; title from cover. 18 | 610 20 $a Sangyō Gijutsu Sōgō Kenkyūjo. $b Shikoku Sangakukan Renkei Sentā $v Periodicals. 19 | 650 0 $a Technology $z Japan $v Periodicals. 20 | 650 0 $a Technological innovations $z Japan $v Periodicals. 21 | 850 $a DLC 22 | 880 2 $6 110-01/$1 $a 産業技術総合研究所. $b 四国産学官連携センター. 23 | 880 10 $6 245-02/$1 $a 四国産学官連携センタ̄̄ー活動報告. 24 | 880 $6 260-03/$1 $a 香川県高松市 : $b 産業技術総合研究所研究所四国産学官連携センター. 25 | 880 24 $6 610-00/$1 $a 産業技術総合研究所. $b 四国産学官連携センタ̄̄ー $v Periodicals. 26 | 27 | -------------------------------------------------------------------------------- /test/marc-files/marccol4.u8.2.lst: -------------------------------------------------------------------------------- 1 | 01390nas a2200313 a 4500 2 | 001 2007210635 3 | 003 DLC 4 | 005 20071005153240.0 5 | 008 071005c200u9999ja | | d0jpn 6 | 010 $a 2007210635 7 | 035 $a (OCoLC)173684089 8 | 040 $a DLC $c DLC $d DLC 9 | 042 $a lc 10 | 043 $a a-ja--- 11 | 050 00 $a T27.J32 $b S83a 12 | 066 $c $1 13 | 110 2 $6 880-01 $a Sangyō Gijutsu Sōgō Kenkyūjo. $b Shikoku Sangakukan Renkei Sentā. 14 | 245 10 $6 880-02 $a Shikoku Sangakukan Renkei Sentā̄ katsudo hokoku. 15 | 246 11 $a Activity report 16 | 260 $6 880-03 $a Kagawa-ken Takamatsu-shi : $b Sangyō Gijutsu Sōgō Kenkyūjo Shikoku Sangakukan Renkei Sentā 17 | 500 $a Description based on: 2005; title from cover. 18 | 610 20 $a Sangyō Gijutsu Sōgō Kenkyūjo. $b Shikoku Sangakukan Renkei Sentā $v Periodicals. 19 | 650 0 $a Technology $z Japan $v Periodicals. 20 | 650 0 $a Technological innovations $z Japan $v Periodicals. 21 | 850 $a DLC 22 | 880 2 $6 110-01/$1 $a 産業技術総合研究所. $b 四国産学官連携センター. 23 | 880 10 $6 245-02/$1 $a 四国産学官連携センタ̄̄ー活動報告. 24 | 880 $6 260-03/$1 $a 香川県高松市 : $b 産業技術総合研究所研究所四国産学官連携センター. 25 | 880 24 $6 610-00/$1 $a 産業技術総合研究所. $b 四国産学官連携センタ̄̄ー $v Periodicals. 26 | 27 | -------------------------------------------------------------------------------- /test/marc-files/marccol4.u8.marc: -------------------------------------------------------------------------------- 1 | 01357nas a2200313 a 4500001001300000003000400013005001700017008004100034010001700075035002100092040001800113042000700131043001200138050001800150066000700168110008600175245006400261246002000325260011100345500005000456610009100506650003600597650005100633850000800684880008000692880006600772880010800838880009700946 2007210635DLC20071005153240.0071005c200u9999ja | | d0jpn  a 2007210635 a(OCoLC)173684089 aDLCcDLCdDLC alc aa-ja---00aT27.J32bS83a c$12 6880-01aSangyō Gijutsu Sōgō Kenkyūjo.bShikoku Sangakukan Renkei Sentā.106880-02aShikoku Sangakukan Renkei Sentā̄ katsudo hokoku.11aActivity report 6880-03aKagawa-ken Takamatsu-shi :bSangyō Gijutsu Sōgō Kenkyūjo Shikoku Sangakukan Renkei Sentā aDescription based on: 2005; title from cover.20aSangyō Gijutsu Sōgō Kenkyūjo.bShikoku Sangakukan Renkei SentāvPeriodicals. 0aTechnologyzJapanvPeriodicals. 0aTechnological innovationszJapanvPeriodicals. aDLC2 6110-01/$1a産業技術総合研究所.b四国産学官連携センター.106245-02/$1a四国産学官連携センタ̄̄ー活動報告. 6260-03/$1a香川県高松市 :b産業技術総合研究所研究所四国産学官連携センター.246610-00/$1a産業技術総合研究所.b四国産学官連携センタ̄̄ーvPeriodicals. -------------------------------------------------------------------------------- /test/marc-files/tmarc0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00062cgm a2200037Ia 4500 4 | 5 | DVD CHI 791.43 6 | QI 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/marc-files/tmarc0.xml.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/tmarc1.xml.marc: -------------------------------------------------------------------------------- 1 | 00989nam0a32003011 450 001002800000004001000028008002800038009001100066021002700077032001500104100002100119245005400140250004100194260004000235300002700275504012300302512006100425520005000486652002400536652001600560666001600576666001900592666001500611666001800626666001900644666000900663666001500672000a9 181 423 4b710100fa000rnae000tmuua2002buslengv0000aagxx000a1-4000-4596-7d$14,00000&DBC2004390000aSlomanhLarry000aOn the road with Bob DylaneLarry "Ratso" Sloman000aRevised editionbThree Rivers Press000aNew YorkbThree Rivers Pressc2002000axv, 464 sider, tavler000aLarry "Ratso" Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: "The Rolling Thunder revue"000aPå omslaget: With a new introduction by Kinky Friedman000aTidligere: 1. udgave. New York, Bantam, 19780000m99.4aDylanhBob000p78.9064v5000ffolkemusik000ffolkemusikere000frockmusik000frockmusikere000frockkoncerter000eUSA000i1970-1979 -------------------------------------------------------------------------------- /test/marc-files/tmarc11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00689nam a22002054 450 4 | 20285389 5 | 20180924145927.0 6 | 000000s1992 dk |||| 00| | dan d 7 | 8 | tegnsæt test, diakritiske tegn. 9 | 10 | 11 | [S.n.]. 12 | 13 | 14 | :;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈ 15 | 16 | 17 | aigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń; 18 | 19 | 20 | grave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ; 21 | 22 | 23 | circonflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂; 24 | 25 | 26 | tilde: ã;Ã;ñ;Ñ;õ;Õ;~m; 27 | 28 | 29 | trema: ë;Ë;ı̈;Ï;ÿ;n̈; 30 | 31 | 32 | cedille: ç;Ç;ņ; 33 | 34 | 35 | omlyd: ä;ë;n̈; 36 | 37 | 38 | snabel a: @ 39 | 40 | 41 | snabel @ snabel. 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /test/marc-files/tmarc11.xml.marc: -------------------------------------------------------------------------------- 1 | 00694nam a22002054 450 0010009000000050017000090080041000262450037000672600012001045050070001165050052001865050046002385050051002845050033003355050037003685050024004055050022004295050016004517400021004672028538920180924145927.0000000s1992 dk |||| 00| | dan d00ategnsæt test, diakritiske tegn. b[S.n.].0 a:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈0 aaigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;0 agrave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;0 acirconflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;0 atilde: ã;Ã;ñ;Ñ;õ;Õ;~m;0 atrema: ë;Ë;ı̈;Ï;ÿ;n̈;0 acedille: ç;Ç;ņ;0 aomlyd: ä;ë;n̈;0 asnabel a: @0 asnabel @ snabel. -------------------------------------------------------------------------------- /test/marc-files/tmarc2.xml.marc: -------------------------------------------------------------------------------- 1 | 01121nam0a32002171 450 001002800000004001000028008002800038009001100066039000900077100001900086245005900105260003300164300001000197512007300207531001400280538001900294652001500313666004900328795050600377795002000883000a9 182 502 3b710100fa000rcae000tsufa1995bgblengv0000asgxc000abef000aMimmshGarnet000aCry babyaWarm and soulfuleGarnet Mimms ... [et al.]000aBury St. EdmundsbBGOc1995000n1 cd000aIndspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)000aIndhold:000fBGOgBGOCD268000m78.794v4000msoulmrhythm & bluesnvokalp1960-1969lUSA000å11aCry babyaNobody but youaUntil you were goneaAnytime you want meaSo closeaFor your precious loveaBaby don't you weepaA ¤quiet placeaCry to meaDon't change your heartaWanting youaThe ¤truth hurtsaI'll take good care of youaLooking for youaIt won't hurt (half as much)aIt was easier to hurt heraThinkin'aProve it to meaMore than a miracleaAs long as I have youaOne girlaThere goes my babyaIt's just a matter of timeaA ¤little bit of soapaLook awayaI'll make it up to you000å40y0a1 girl -------------------------------------------------------------------------------- /test/marc-files/tmarc3.xml.marc: -------------------------------------------------------------------------------- 1 | 00914naa a2200337 450 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin ranlund, TomcKristian AugustsgatecPilestredet 19 aa 0 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/tmarc4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 009140091a22a 22003370 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/marc-files/tmarc4.xml.marc: -------------------------------------------------------------------------------- 1 | 000260091a2200025003370  -------------------------------------------------------------------------------- /test/marc-files/tmarc5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00492nam a22001455a 4500 4 | 000277485 5 | 20051026111436.0 6 | 050413s1894 gr 000 0 gre d 7 | 8 | Μαρούδης, Κωνσταντίνος Ιω 9 | 10 | 11 | Ελληνικόν κρυπτογραφικόν λεξικόν / 12 | Κωνστ. Ι. Μαρούδης. 13 | 14 | 15 | εκδ. 16 | 17 | 18 | Αθήνα, 19 | 1894. 20 | 21 | 22 | 248 σελ. 23 | 24 | 25 | Greek language, Modern 26 | Dialects 27 | Dictionaries 28 | 29 | 30 | Cryptography. 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /test/marc-files/tmarc5.xml.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/tmarc6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00366nam a22001698a 4500 4 | 11224466 5 | DLC 6 | 00000000000000.0 7 | 910710c19910701nju 00010 eng 8 | 9 | 11224466 10 | 11 | 12 | DLC 13 | DLC 14 | 15 | 16 | 123-xyz 17 | 18 | 19 | Jack Collins 20 | 21 | 22 | How to program a computer 23 | 24 | 25 | Penguin 26 | 27 | 28 | 8710 29 | 30 | 31 | p. cm. 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /test/marc-files/tmarc6.xml.marc: -------------------------------------------------------------------------------- 1 | 00366nam a22001698a 4500001001300000003000400013005001700017008004100034010001700075040001300092050001200105100001700117245003000134260001200164263000900176300001100185 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  a 11224466  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. -------------------------------------------------------------------------------- /test/marc-files/xml2marc0.xml: -------------------------------------------------------------------------------- 1 | 2 | 00062cgm a2200037Ia 4500DVD CHI 791.43QI 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2marc0.xml.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/xml2marc1.xml.marc: -------------------------------------------------------------------------------- 1 | 00989nam0a32003011 450 001002800000004001000028008002800038009001100066021002700077032001500104100002100119245005400140250004100194260004000235300002700275504012300302512006100425520005000486652002400536652001600560666001600576666001900592666001500611666001800626666001900644666000900663666001500672000a9 181 423 4b710100fa000rnae000tmuua2002buslengv0000aagxx000a1-4000-4596-7d$14,00000&DBC2004390000aSlomanhLarry000aOn the road with Bob DylaneLarry "Ratso" Sloman000aRevised editionbThree Rivers Press000aNew YorkbThree Rivers Pressc2002000axv, 464 sider, tavler000aLarry "Ratso" Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: "The Rolling Thunder revue"000aPå omslaget: With a new introduction by Kinky Friedman000aTidligere: 1. udgave. New York, Bantam, 19780000m99.4aDylanhBob000p78.9064v5000ffolkemusik000ffolkemusikere000frockmusik000frockmusikere000frockkoncerter000eUSA000i1970-1979 -------------------------------------------------------------------------------- /test/marc-files/xml2marc11.xml.marc: -------------------------------------------------------------------------------- 1 | 00694nam a22002054 450 0010009000000050017000090080041000262450037000672600012001045050070001165050052001865050046002385050051002845050033003355050037003685050024004055050022004295050016004517400021004672028538920180924145927.0000000s1992 dk |||| 00| | dan d00ategnsæt test, diakritiske tegn. b[S.n.].0 a:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈0 aaigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;0 agrave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;0 acirconflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;0 atilde: ã;Ã;ñ;Ñ;õ;Õ;~m;0 atrema: ë;Ë;ı̈;Ï;ÿ;n̈;0 acedille: ç;Ç;ņ;0 aomlyd: ä;ë;n̈;0 asnabel a: @0 asnabel @ snabel. -------------------------------------------------------------------------------- /test/marc-files/xml2marc2.xml.marc: -------------------------------------------------------------------------------- 1 | 01121nam0a32002171 450 001002800000004001000028008002800038009001100066039000900077100001900086245005900105260003300164300001000197512007300207531001400280538001900294652001500313666004900328795050600377795002000883000a9 182 502 3b710100fa000rcae000tsufa1995bgblengv0000asgxc000abef000aMimmshGarnet000aCry babyaWarm and soulfuleGarnet Mimms ... [et al.]000aBury St. EdmundsbBGOc1995000n1 cd000aIndspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)000aIndhold:000fBGOgBGOCD268000m78.794v4000msoulmrhythm & bluesnvokalp1960-1969lUSA000å11aCry babyaNobody but youaUntil you were goneaAnytime you want meaSo closeaFor your precious loveaBaby don't you weepaA ¤quiet placeaCry to meaDon't change your heartaWanting youaThe ¤truth hurtsaI'll take good care of youaLooking for youaIt won't hurt (half as much)aIt was easier to hurt heraThinkin'aProve it to meaMore than a miracleaAs long as I have youaOne girlaThere goes my babyaIt's just a matter of timeaA ¤little bit of soapaLook awayaI'll make it up to you000å40y0a1 girl -------------------------------------------------------------------------------- /test/marc-files/xml2marc3.xml.marc: -------------------------------------------------------------------------------- 1 | 00914naa a2200337 450 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin ranlund, TomcKristian AugustsgatecPilestredet 19 aa 0 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/xml2marc4.xml: -------------------------------------------------------------------------------- 1 | 2 | 009140091a22a 22003370 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2marc4.xml.marc: -------------------------------------------------------------------------------- 1 | 000260091a2200025003370  -------------------------------------------------------------------------------- /test/marc-files/xml2marc5.xml.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/xml2marc6.xml: -------------------------------------------------------------------------------- 1 | 2 | 00366nam a22001698a 4500 11224466 DLC00000000000000.0910710c19910701nju 00010 eng 11224466 DLCDLC123-xyzJack CollinsHow to program a computerPenguin8710p. cm. 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2marc6.xml.marc: -------------------------------------------------------------------------------- 1 | 00366nam a22001698a 4500001001300000003000400013005001700017008004100034010001700075040001300092050001200105100001700117245003000134260001200164263000900176300001100185 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  a 11224466  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc0.xml: -------------------------------------------------------------------------------- 1 | 2 | 00062cgm a2200037Ia 4500DVD CHI 791.43QI 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc0.xml.marc: -------------------------------------------------------------------------------- 1 | 00062cgm a2200037Ia 4500092002400000 áaDVD CHI 791.43bQI -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc1.xml.marc: -------------------------------------------------------------------------------- 1 | 00989nam0a32003011 450 001002800000004001000028008002800038009001100066021002700077032001500104100002100119245005400140250004100194260004000235300002700275504012300302512006100425520005000486652002400536652001600560666001600576666001900592666001500611666001800626666001900644666000900663666001500672000a9 181 423 4b710100fa000rnae000tmuua2002buslengv0000aagxx000a1-4000-4596-7d$14,00000&DBC2004390000aSlomanhLarry000aOn the road with Bob DylaneLarry "Ratso" Sloman000aRevised editionbThree Rivers Press000aNew YorkbThree Rivers Pressc2002000axv, 464 sider, tavler000aLarry "Ratso" Slomans meget personlige beretning om Bob Dylans koncertturne i USA i 1975: "The Rolling Thunder revue"000aPå omslaget: With a new introduction by Kinky Friedman000aTidligere: 1. udgave. New York, Bantam, 19780000m99.4aDylanhBob000p78.9064v5000ffolkemusik000ffolkemusikere000frockmusik000frockmusikere000frockkoncerter000eUSA000i1970-1979 -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc11.xml: -------------------------------------------------------------------------------- 1 | 2 | 00689nam a22002054 450 2028538920180924145927.0000000s1992 dk |||| 00| | dan dtegnsæt test, diakritiske tegn.[S.n.].:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈aigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;grave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;circonflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;tilde: ã;Ã;ñ;Ñ;õ;Õ;~m;trema: ë;Ë;ı̈;Ï;ÿ;n̈;cedille: ç;Ç;ņ;omlyd: ä;ë;n̈;snabel a: @snabel @ snabel. 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc11.xml.marc: -------------------------------------------------------------------------------- 1 | 00694nam a22002054 450 0010009000000050017000090080041000262450037000672600012001045050070001165050052001865050046002385050051002845050033003355050037003685050024004055050022004295050016004517400021004672028538920180924145927.0000000s1992 dk |||| 00| | dan d00ategnsæt test, diakritiske tegn. b[S.n.].0 a:;̲;̀;́;̂~;;̄;̆;̇;̈;̌;̊;︠;︡;̕;̋;̧;̨;̣;̳;̦;̈0 aaigu: á;Á;é;É;í;Í;ó;Ó;ú;Ú;ý;Ý;ń;0 agrave: à;À;è;È;ì;Ì;ò;Ò;ù;Ù;ǹ;0 acirconflex: â;Â;ê;Ê;î;Î;ô;Ô;û;Û;n̂;0 atilde: ã;Ã;ñ;Ñ;õ;Õ;~m;0 atrema: ë;Ë;ı̈;Ï;ÿ;n̈;0 acedille: ç;Ç;ņ;0 aomlyd: ä;ë;n̈;0 asnabel a: @0 asnabel @ snabel. -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc2.xml.marc: -------------------------------------------------------------------------------- 1 | 01121nam0a32002171 450 001002800000004001000028008002800038009001100066039000900077100001900086245005900105260003300164300001000197512007300207531001400280538001900294652001500313666004900328795050600377795002000883000a9 182 502 3b710100fa000rcae000tsufa1995bgblengv0000asgxc000abef000aMimmshGarnet000aCry babyaWarm and soulfuleGarnet Mimms ... [et al.]000aBury St. EdmundsbBGOc1995000n1 cd000aIndspilninger publiceret 1963 (Cry baby) og 1965 (Warm and soulful)000aIndhold:000fBGOgBGOCD268000m78.794v4000msoulmrhythm & bluesnvokalp1960-1969lUSA000å11aCry babyaNobody but youaUntil you were goneaAnytime you want meaSo closeaFor your precious loveaBaby don't you weepaA ¤quiet placeaCry to meaDon't change your heartaWanting youaThe ¤truth hurtsaI'll take good care of youaLooking for youaIt won't hurt (half as much)aIt was easier to hurt heraThinkin'aProve it to meaMore than a miracleaAs long as I have youaOne girlaThere goes my babyaIt's just a matter of timeaA ¤little bit of soapaLook awayaI'll make it up to you000å40y0a1 girl -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc3.xml.marc: -------------------------------------------------------------------------------- 1 | 00914naa a2200337 450 001001700000004000900017008002400026009001000050041000800060041000800068097000700076245003300083300002600116557003300142630001600175630001300191633001000204633000900214648006100223648001600284648005400300J01000600354BAS000500360LKR004200365CAT003000407CAT003000437CAT003000467CAT003900497CAT002600536UID001400562 aa00001508fa airn a1991bxxlnortav9 aagxx anor deng00a06 aByfornyelse ved Ibsen-Ringen bfarvefotobplanbsnit aByggekunstj1991v1/2k41-45 fbyfornyelse fsanering fNorge fOslo aTelje Torp Aasen ArkitektkontorcKristian Augustsgate 7B aEng, Dagfin ranlund, TomcKristian AugustsgatecPilestredet 19 aa 0 aITMlARK50b0000145y1991i1/2k41-45 abc20020111lARK01h2002 abc20020111lARK01h2116 abc20021002lARK01h1000 aICLLOADb00c20021122lARK01h1948 c20030618lARK01h1330 aa00001508 -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc4.xml: -------------------------------------------------------------------------------- 1 | 2 | 009140091a22a 22003370 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc4.xml.marc: -------------------------------------------------------------------------------- 1 | 000260091a2200025003370  -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc5.xml: -------------------------------------------------------------------------------- 1 | 2 | 00492nam a22001455a 450000027748520051026111436.0050413s1894 gr 000 0 gre dΜαρούδης, Κωνσταντίνος ΙωΕλληνικόν κρυπτογραφικόν λεξικόν /Κωνστ. Ι. Μαρούδης. εκδ.Αθήνα,1894.248 σελ.Greek language, ModernDialectsDictionariesCryptography. 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc5.xml.marc: -------------------------------------------------------------------------------- 1 | 00492nam a22001455a 450000100100000000500170001000800410002710000520006824501040012025000140022426000230023830000160026165000510027765000180032800027748520051026111436.0050413s1894 gr 000 0 gre d1 aΜαρούδης, Κωνσταντίνος Ιω10aΕλληνικόν κρυπτογραφικόν λεξικόν /cΚωνστ. Ι. Μαρούδης. η εκδ. aΑθήνα,c1894. a248 σελ. 0aGreek language, ModernxDialectsvDictionaries 0aCryptography. -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc6.xml: -------------------------------------------------------------------------------- 1 | 2 | 00366nam a22001698a 4500 11224466 DLC00000000000000.0910710c19910701nju 00010 eng 11224466 DLCDLC123-xyzJack CollinsHow to program a computerPenguin8710p. cm. 3 | -------------------------------------------------------------------------------- /test/marc-files/xml2tmarc6.xml.marc: -------------------------------------------------------------------------------- 1 | 00366nam a22001698a 4500001001300000003000400013005001700017008004100034010001700075040001300092050001200105100001700117245003000134260001200164263000900176300001100185 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  a 11224466  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. -------------------------------------------------------------------------------- /test/pqf2cql/1.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.1.err -------------------------------------------------------------------------------- /test/pqf2cql/1.1.out: -------------------------------------------------------------------------------- 1 | date<1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.2.err -------------------------------------------------------------------------------- /test/pqf2cql/1.2.out: -------------------------------------------------------------------------------- 1 | date<=1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.3.err -------------------------------------------------------------------------------- /test/pqf2cql/1.3.out: -------------------------------------------------------------------------------- 1 | date=1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.4.err -------------------------------------------------------------------------------- /test/pqf2cql/1.4.out: -------------------------------------------------------------------------------- 1 | date>=1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.5.err -------------------------------------------------------------------------------- /test/pqf2cql/1.5.out: -------------------------------------------------------------------------------- 1 | date>1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.6.err -------------------------------------------------------------------------------- /test/pqf2cql/1.6.out: -------------------------------------------------------------------------------- 1 | date<>1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/1.7.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/1.7.err -------------------------------------------------------------------------------- /test/pqf2cql/1.7.out: -------------------------------------------------------------------------------- 1 | date=1980 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.1.err -------------------------------------------------------------------------------- /test/pqf2cql/2.1.out: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.2.err -------------------------------------------------------------------------------- /test/pqf2cql/2.2.out: -------------------------------------------------------------------------------- 1 | x 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.3.err -------------------------------------------------------------------------------- /test/pqf2cql/2.3.out: -------------------------------------------------------------------------------- 1 | *x 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.4.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.4.err -------------------------------------------------------------------------------- /test/pqf2cql/2.4.out: -------------------------------------------------------------------------------- 1 | x* 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.5.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.5.err -------------------------------------------------------------------------------- /test/pqf2cql/2.5.out: -------------------------------------------------------------------------------- 1 | *x* 2 | -------------------------------------------------------------------------------- /test/pqf2cql/2.6.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/test/pqf2cql/2.6.err -------------------------------------------------------------------------------- /test/pqf2cql/2.6.out: -------------------------------------------------------------------------------- 1 | ERROR 2 | -------------------------------------------------------------------------------- /test/pqf2cqlsample: -------------------------------------------------------------------------------- 1 | # CQL queries for testing. 2 | # from http://www.loc.gov/z3950/agency/zing/cql/sample-queries.html 3 | # Simple Term 4 | 5 | # Index Relation Term 6 | @attr 1=date @attr 2=1 1980 7 | @attr 1=date @attr 2=2 1980 8 | @attr 1=date @attr 2=3 1980 9 | @attr 1=date @attr 2=4 1980 10 | @attr 1=date @attr 2=5 1980 11 | @attr 1=date @attr 2=6 1980 12 | @attr 1=date @attr 2=x 1980 13 | 14 | # Truncation 15 | x 16 | @attr 5=100 x 17 | @attr 5=1 x 18 | @attr 5=2 x 19 | @attr 5=3 x 20 | @attr 5=other x -------------------------------------------------------------------------------- /test/rdf-lookup/lookup-conf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /test/rdf-lookup/lookup.sh: -------------------------------------------------------------------------------- 1 | # Simple test script to invoke rdf-lookup 2 | # Can not be run as part of 'make check' as it 3 | # depends on external resources (id.loc.gov) 4 | 5 | # Should output some bf:Agent tags with rdf:about attrs 6 | # that point to id.loc.gov 7 | 8 | ../../util/yaz-record-conv lookup-conf.xml bf.xml > x.xml 9 | echo 10 | grep -C3 Agent x.xml 11 | -------------------------------------------------------------------------------- /test/test_cql2pqf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | srcdir=${srcdir:-.} 3 | oIFS="$IFS" 4 | IFS=' 5 | ' 6 | secno=0 7 | testno=0 8 | comment=0 9 | ecode=0 10 | test -f ${srcdir}/cql2pqfsample || exit 1 11 | test -d cql2pqf || mkdir cql2pqf 12 | while read f; do 13 | if echo $f | grep '^#' >/dev/null; then 14 | comment=1 15 | else 16 | if test "$comment" = "1"; then 17 | secno=`expr $secno + 1` 18 | testno=0 19 | fi 20 | comment=0 21 | testno=`expr $testno + 1` 22 | OUT1=${srcdir}/cql2pqf/$secno.$testno.out 23 | ERR1=${srcdir}/cql2pqf/$secno.$testno.err 24 | OUT2=cql2pqf/$secno.$testno.out.tmp 25 | ERR2=cql2pqf/$secno.$testno.err.tmp 26 | DIFF=cql2pqf/$secno.$testno.diff 27 | ../util/cql2pqf -v ${srcdir}/../etc/pqf.properties "$f" >$OUT2 2>$ERR2 28 | if test -f $OUT1 -a -f $ERR1; then 29 | if diff $OUT1 $OUT2 >$DIFF; then 30 | rm $DIFF 31 | rm $OUT2 32 | else 33 | echo "diff out $secno $testno $f" 34 | cat $DIFF 35 | ecode=1 36 | fi 37 | if diff $ERR1 $ERR2 >$DIFF; then 38 | rm $DIFF 39 | rm $ERR2 40 | else 41 | echo "diff err $secno $testno $f" 42 | cat $DIFF 43 | ecode=1 44 | fi 45 | else 46 | echo "making test $secno $testno $f" 47 | mv $OUT2 $OUT1 48 | mv $ERR2 $ERR1 49 | ecode=1 50 | fi 51 | fi 52 | done < cql2pqfsample 53 | IFS="$oIFS" 54 | exit $ecode 55 | -------------------------------------------------------------------------------- /test/test_cql2xcql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | srcdir=${srcdir:-.} 3 | oIFS="$IFS" 4 | IFS=' 5 | ' 6 | secno=0 7 | testno=0 8 | comment=0 9 | ecode=0 10 | test -f ${srcdir}/cql2xcqlsample || exit 1 11 | test -d cql || mkdir cql 12 | for f in `cat ${srcdir}/cql2xcqlsample`; do 13 | if echo $f | grep '^#' >/dev/null; then 14 | comment=1 15 | else 16 | if test "$comment" = "1"; then 17 | secno=`expr $secno + 1` 18 | testno=0 19 | fi 20 | comment=0 21 | testno=`expr $testno + 1` 22 | OUT1=${srcdir}/cql/$secno.$testno.out 23 | ERR1=${srcdir}/cql/$secno.$testno.err 24 | OUT2=cql/$secno.$testno.out.tmp 25 | ERR2=cql/$secno.$testno.err.tmp 26 | DIFF=cql/$secno.$testno.diff 27 | ../util/cql2xcql "$f" >$OUT2 2>$ERR2 28 | if test -f $OUT1 -a -f $ERR1; then 29 | if diff $OUT1 $OUT2 >$DIFF; then 30 | rm $DIFF 31 | rm $OUT2 32 | else 33 | echo "diff out $secno $testno $f" 34 | cat $DIFF 35 | ecode=1 36 | fi 37 | if diff $ERR1 $ERR2 >$DIFF; then 38 | rm $DIFF 39 | rm $ERR2 40 | else 41 | echo "diff err $secno $testno $f" 42 | cat $DIFF 43 | ecode=1 44 | fi 45 | else 46 | echo "making test $secno $testno $f" 47 | mv $OUT2 $OUT1 48 | mv $ERR2 $ERR1 49 | ecode=1 50 | fi 51 | fi 52 | done 53 | IFS="$oIFS" 54 | exit $ecode 55 | -------------------------------------------------------------------------------- /test/test_filepath.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | #if HAVE_CONFIG_H 7 | #include 8 | #endif 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #include 15 | #include 16 | 17 | void tst(void) 18 | { 19 | char fullpath[1024]; 20 | YAZ_CHECK(yaz_filepath_resolve("test_filepath", ".", 0, fullpath)); 21 | YAZ_CHECK(strcmp(fullpath, "./test_filepath") == 0); 22 | YAZ_CHECK(!yaz_filepath_resolve("test_filepath1", ".", 0, fullpath)); 23 | YAZ_CHECK(!yaz_filepath_resolve("test_filepath", "bogus", 0, fullpath)); 24 | YAZ_CHECK(yaz_filepath_resolve("test_filepath", "bogus:.", 0, fullpath)); 25 | } 26 | 27 | int main (int argc, char **argv) 28 | { 29 | YAZ_CHECK_INIT(argc, argv); 30 | tst(); 31 | YAZ_CHECK_TERM; 32 | } 33 | /* 34 | * Local variables: 35 | * c-basic-offset: 4 36 | * c-file-style: "Stroustrup" 37 | * indent-tabs-mode: nil 38 | * End: 39 | * vim: shiftwidth=4 tabstop=8 expandtab 40 | */ 41 | 42 | -------------------------------------------------------------------------------- /test/test_icu.0.input: -------------------------------------------------------------------------------- 1 | Børn 2 | Le Carré 3 | Le Carre 4 | Le Carré 5 | -------------------------------------------------------------------------------- /test/test_icu.0.output: -------------------------------------------------------------------------------- 1 | 1 1 'børn' 'Børn' 0+5 *Børn* 2 | 2 2 'le' 'Le' 0+3 *Le *Carré 3 | 3 2 'carré' 'Carré' 3+6 Le *Carré* 4 | 4 3 'le' 'Le' 0+3 *Le *Carre 5 | 5 3 'carre' 'Carre' 3+5 Le *Carre* 6 | 6 4 'le' 'Le' 0+3 *Le *Carré 7 | 7 4 'carré' 'Carré' 3+7 Le *Carré* 8 | -------------------------------------------------------------------------------- /test/test_icu.0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/test_icu.1.input: -------------------------------------------------------------------------------- 1 | Børn 2 | Le Carré 3 | Le Carre 4 | Le Carré 5 | -------------------------------------------------------------------------------- /test/test_icu.1.output: -------------------------------------------------------------------------------- 1 | 1 1 'børn' 'Børn' 0+5 *Børn* 2 | 2 2 'le' 'Le' 0+3 *Le *Carré 3 | 3 2 'carre' 'Carre' 3+6 Le *Carré* 4 | 4 3 'le' 'Le' 0+3 *Le *Carre 5 | 5 3 'carre' 'Carre' 3+5 Le *Carre* 6 | 6 4 'le' 'Le' 0+3 *Le *Carré 7 | 7 4 'carre' 'Carre' 3+7 Le *Carré* 8 | -------------------------------------------------------------------------------- /test/test_icu.1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/test_icu.2.input: -------------------------------------------------------------------------------- 1 | `a' 2 | ``a'' 3 | -------------------------------------------------------------------------------- /test/test_icu.2.output: -------------------------------------------------------------------------------- 1 | 1 1 '‘a' 2 | ' '' 0+4 *`a' 3 | * 4 | 2 2 '“a'' 5 | ' '' 0+6 *``a'' 6 | * 7 | -------------------------------------------------------------------------------- /test/test_icu.2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $back = \` ; 4 | $back $back > “ ; # generate right d.q.m. (double quotation mark) 5 | $back > ‘ ; 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/test_icu.3.input: -------------------------------------------------------------------------------- 1 | men running 2 | he runs 3 | -------------------------------------------------------------------------------- /test/test_icu.3.output: -------------------------------------------------------------------------------- 1 | 1 1 'men' '' 0+4 *men *running 2 | 2 1 'run' '' 4+7 men *running* 3 | 3 2 'he' '' 0+3 *he *runs 4 | 4 2 'run' '' 3+5 he *runs * 5 | -------------------------------------------------------------------------------- /test/test_icu.3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test/test_icu.4.input: -------------------------------------------------------------------------------- 1 | Andersen, H.C., -------------------------------------------------------------------------------- /test/test_icu.4.output: -------------------------------------------------------------------------------- 1 | 1 1 'Andersen, H.C' '' 0+15 *Andersen, H.C.,* 2 | -------------------------------------------------------------------------------- /test/test_icu.4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | [,. -]* } [$] > ; 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/test_icu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Tests a couple of yaz-icu conversions 3 | # 4 | # Reads tsticu-[0-9].input files 5 | # Writes tsticu-[0-9].output / output.tmp files 6 | # Config tsticu-[0-9].xml 7 | 8 | srcdir=${srcdir:-.} 9 | ecode=0 10 | 11 | ../util/yaz-icu >/dev/null 2>&1 12 | if test $? = "3"; then 13 | exit 0 14 | fi 15 | 16 | for f in ${srcdir}/test_icu.[0-9].input; do 17 | fb=`basename ${f} .input` 18 | CONFIG=${srcdir}/${fb}.xml 19 | NEW=${fb}.output.tmp 20 | OLD=${srcdir}/${fb}.output 21 | DIFF=`basename ${fb}`.diff 22 | ../util/yaz-icu -o -c $CONFIG <$f > $NEW 23 | if test $? != "0"; then 24 | echo "$f: yaz-icu returned error" 25 | ecode=1 26 | elif test -f $OLD; then 27 | if diff $OLD $NEW >$DIFF; then 28 | rm $DIFF 29 | rm $NEW 30 | else 31 | echo "$f: $NEW and $OLD differ" 32 | ecode=1 33 | fi 34 | else 35 | echo "$f: Making test result $OLD for the first time" 36 | mv $NEW $OLD 37 | ecode=1 38 | fi 39 | done 40 | exit $ecode 41 | 42 | # Local Variables: 43 | # mode:shell-script 44 | # sh-indentation: 2 45 | # sh-basic-offset: 4 46 | # End: 47 | -------------------------------------------------------------------------------- /test/test_record_conv.xsl: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /test/test_shared_ptr.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | /** 7 | * \file test_shared_ptr.c 8 | * \brief test shared pointer 9 | */ 10 | 11 | #if HAVE_CONFIG_H 12 | #include 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | YAZ_SHPTR_TYPE(WRBUF) 24 | 25 | static void test(void) 26 | { 27 | WRBUF w = wrbuf_alloc(); 28 | 29 | WRBUF_shptr_t t = 0; 30 | 31 | YAZ_SHPTR_INIT(t, w); 32 | YAZ_CHECK(t); 33 | 34 | YAZ_SHPTR_INC(t); 35 | YAZ_CHECK(t); 36 | 37 | YAZ_SHPTR_DEC(t, wrbuf_destroy); 38 | YAZ_CHECK(t); 39 | 40 | YAZ_SHPTR_DEC(t, wrbuf_destroy); 41 | YAZ_CHECK(!t); 42 | } 43 | 44 | int main (int argc, char **argv) 45 | { 46 | YAZ_CHECK_INIT(argc, argv); 47 | test(); 48 | YAZ_CHECK_TERM; 49 | } 50 | 51 | 52 | /* 53 | * Local variables: 54 | * c-basic-offset: 4 55 | * c-file-style: "Stroustrup" 56 | * indent-tabs-mode: nil 57 | * End: 58 | * vim: shiftwidth=4 tabstop=8 expandtab 59 | */ 60 | 61 | -------------------------------------------------------------------------------- /test/test_soap1.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | #if HAVE_CONFIG_H 6 | #include 7 | #endif 8 | 9 | #include 10 | #if YAZ_HAVE_XML2 11 | #include 12 | #endif 13 | #include 14 | 15 | void tst(void) 16 | { 17 | #if YAZ_HAVE_XML2 18 | xmlChar *buf_out; 19 | int len_out; 20 | xmlDocPtr doc; 21 | xmlNodePtr top; 22 | #if 0 23 | const char *val = "jordb" "\xe6" "r"; /* makes xmlDocDumpMemory hang .. */ 24 | #else 25 | const char *val = "jordbaer"; /* OK */ 26 | #endif 27 | doc = xmlNewDoc(BAD_CAST "1.0"); 28 | YAZ_CHECK(doc); 29 | 30 | top = xmlNewNode(0, BAD_CAST "top"); 31 | YAZ_CHECK(top); 32 | 33 | xmlNewTextChild(top, 0, BAD_CAST "sub", BAD_CAST val); 34 | xmlDocSetRootElement(doc, top); 35 | 36 | xmlDocDumpMemory(doc, &buf_out, &len_out); 37 | #if 0 38 | printf("%*s", len_out, buf_out); 39 | #endif 40 | 41 | 42 | /* YAZ_HAVE_XML2 */ 43 | #endif 44 | } 45 | 46 | int main(int argc, char **argv) 47 | { 48 | YAZ_CHECK_INIT(argc, argv); 49 | #if YAZ_HAVE_XML2 50 | LIBXML_TEST_VERSION; 51 | #endif 52 | tst(); 53 | YAZ_CHECK_TERM; 54 | } 55 | 56 | 57 | /* 58 | * Local variables: 59 | * c-basic-offset: 4 60 | * c-file-style: "Stroustrup" 61 | * indent-tabs-mode: nil 62 | * End: 63 | * vim: shiftwidth=4 tabstop=8 expandtab 64 | */ 65 | 66 | -------------------------------------------------------------------------------- /test/test_xmalloc.c: -------------------------------------------------------------------------------- 1 | /* This file is part of the YAZ toolkit. 2 | * Copyright (C) Index Data 3 | * See the file LICENSE for details. 4 | */ 5 | 6 | #if HAVE_CONFIG_H 7 | #include 8 | #endif 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | void tst(void) 16 | { 17 | char *p = 0; 18 | 19 | p = (char *) xmalloc(10); 20 | YAZ_CHECK(p); 21 | p = (char *) xrealloc(p, 20); 22 | YAZ_CHECK(p); 23 | xfree(p); 24 | 25 | p = xstrdup("hello"); 26 | YAZ_CHECK(p); 27 | if (!p) 28 | return; 29 | YAZ_CHECK(!strcmp(p, "hello")); 30 | xfree(p); 31 | 32 | p = xstrndup("hello", 2); 33 | YAZ_CHECK(p); 34 | if (!p) 35 | return; 36 | YAZ_CHECK(!strcmp(p, "he")); 37 | xfree(p); 38 | 39 | p = xstrndup("hello", 6); 40 | YAZ_CHECK(p); 41 | if (!p) 42 | return; 43 | YAZ_CHECK(!strcmp(p, "hello")); 44 | xfree(p); 45 | } 46 | 47 | int main (int argc, char **argv) 48 | { 49 | YAZ_CHECK_INIT(argc, argv); 50 | tst(); 51 | YAZ_CHECK_TERM; 52 | } 53 | /* 54 | * Local variables: 55 | * c-basic-offset: 4 56 | * c-file-style: "Stroustrup" 57 | * indent-tabs-mode: nil 58 | * End: 59 | * vim: shiftwidth=4 tabstop=8 expandtab 60 | */ 61 | 62 | -------------------------------------------------------------------------------- /test/test_xml_include.xml: -------------------------------------------------------------------------------- 1 | some 2 | -------------------------------------------------------------------------------- /test/tstodr.asn: -------------------------------------------------------------------------------- 1 | -- Small ASN.1 spec for tstodr test 2 | test_odrcodec 3 | {test_odrcodec} DEFINITIONS ::= 4 | BEGIN 5 | MySequence ::= SEQUENCE { 6 | first [1] IMPLICIT INTEGER, 7 | second [2] IMPLICIT OCTET STRING, 8 | third [3] IMPLICIT BOOLEAN, 9 | fourth [4] IMPLICIT NULL, 10 | fifth [5] IMPLICIT INTEGER { 11 | enum1(0), 12 | enum2(1) 13 | }, 14 | myoid [6] IMPLICIT OBJECT IDENTIFIER 15 | } 16 | END 17 | -------------------------------------------------------------------------------- /test/tstpqf2cql.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | srcdir=${srcdir:-.} 3 | oIFS="$IFS" 4 | IFS=' 5 | ' 6 | secno=0 7 | testno=0 8 | comment=0 9 | ecode=0 10 | test -f ${srcdir}/pqf2cqlsample || exit 1 11 | test -d pqf2cql || mkdir pqf2cql 12 | for f in `cat ${srcdir}/pqf2cqlsample`; do 13 | if echo $f | grep '^#' >/dev/null; then 14 | comment=1 15 | else 16 | if test "$comment" = "1"; then 17 | secno=`expr $secno + 1` 18 | testno=0 19 | fi 20 | comment=0 21 | testno=`expr $testno + 1` 22 | OUT1=${srcdir}/pqf2cql/$secno.$testno.out 23 | ERR1=${srcdir}/pqf2cql/$secno.$testno.err 24 | OUT2=pqf2cql/$secno.$testno.out.tmp 25 | ERR2=pqf2cql/$secno.$testno.err.tmp 26 | DIFF=pqf2cql/$secno.$testno.diff 27 | ../util/cql2pqf -r - "$f" >$OUT2 2>$ERR2 28 | if test -f $OUT1 -a -f $ERR1; then 29 | if diff $OUT1 $OUT2 >$DIFF; then 30 | rm $DIFF 31 | rm $OUT2 32 | else 33 | echo "diff out $secno $testno $f" 34 | cat $DIFF 35 | ecode=1 36 | fi 37 | if diff $ERR1 $ERR2 >$DIFF; then 38 | rm $DIFF 39 | rm $ERR2 40 | else 41 | echo "diff err $secno $testno $f" 42 | cat $DIFF 43 | ecode=1 44 | fi 45 | else 46 | echo "making test $secno $testno $f" 47 | mv $OUT2 $OUT1 48 | mv $ERR2 $ERR1 49 | ecode=1 50 | fi 51 | fi 52 | done 53 | IFS="$oIFS" 54 | exit $ecode 55 | -------------------------------------------------------------------------------- /util/.gitignore: -------------------------------------------------------------------------------- 1 | marcdump 2 | yaziconv 3 | marc8.c 4 | cclsh 5 | cql2pqf 6 | cql2xcql 7 | srwtst 8 | yaz-config 9 | yaz-iconv 10 | yaz-marcdump 11 | yaz-benchmark 12 | yaz-xmlquery 13 | yaz-illclient 14 | yaz-icu 15 | yaz-json-parse 16 | yaz-record-conv 17 | yaz-url 18 | -------------------------------------------------------------------------------- /util/bib1: -------------------------------------------------------------------------------- 1 | ti u=4 s=pw t=l,r 2 | term 1=1016 s=al,pw t=r 3 | dc.title 1=/my/title 4 | date 1=31 r=r,omiteq 5 | x 1=x r=o 6 | title dc.title 7 | comb term dc.title 8 | splitlist s=sl u=1016 u=31 9 | -------------------------------------------------------------------------------- /util/ill-params.txt: -------------------------------------------------------------------------------- 1 | # Example ill parameter file 2 | # 3 | # (any line starting with # is a comment) 4 | # 5 | # Lines are in form 6 | # key=value 7 | # key is a comma-separated list of fieldnames (no spaces!) 8 | # value is anything that follows the equal sign. 9 | # 10 | 11 | ill,protocol-version-num=2 12 | 13 | #ill,transaction-id,initial-requester-id,person-or-institution-symbol,institution=IKM 14 | # (seems not to be necessary) 15 | 16 | ill,requester-id,person-or-institution-symbol,institution=IKM 17 | ill,requester-idname-of-person-or-institution,name-of-institution=UNT Libraries 18 | 19 | ill,responder-id,person-or-institution-symbol,institution=OZZ 20 | ill,responder-idname-of-person-or-institution,name-of-institution=University of North Texas Health Science Center 21 | 22 | 23 | # service type 1 = loan 24 | ill,ill-service-type=1 25 | 26 | # The item to request 27 | ill,item-id,title=Unknown Title 28 | ill,item-id,verification-reference-source=myself 29 | 30 | # Where to deliver it 31 | ill,delivery-address,postal-address,name-of-person-or-institution,name-of-person=TEST DATA 32 | delivery-address,postal-address,name-of-person-or-institution,name-of-institution=INDEX DATA 33 | 34 | -------------------------------------------------------------------------------- /util/yaz-icu-example.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /win/.gitignore: -------------------------------------------------------------------------------- 1 | version.nsi 2 | dobj 3 | obj 4 | tmp 5 | *.log 6 | *~ 7 | -------------------------------------------------------------------------------- /win/version.nsi.in: -------------------------------------------------------------------------------- 1 | !define VERSION "@VERSION@" 2 | 3 | -------------------------------------------------------------------------------- /win/yaz.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/indexdata/yaz/4de6eb1c56838e8ff38a9d23f820c38fff87107c/win/yaz.rc -------------------------------------------------------------------------------- /yaz-icu.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: YAZ ICU 7 | Version: @VERSION@ 8 | Description: YAZ ICU library for building Z39.50 applications 9 | Requires: yaz libexslt icu-i18n 10 | Libs: -L${libdir} -lyaz_icu @PTHREAD_LIBS@ 11 | Cflags: @ICU_CPPFLAGS@ 12 | -------------------------------------------------------------------------------- /yaz-server.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: YAZ server 7 | Version: @VERSION@ 8 | Description: YAZ server library for building Z39.50 applications 9 | Requires: yaz libexslt 10 | Libs: -L${libdir} -lyaz_server @PTHREAD_LIBS@ 11 | -------------------------------------------------------------------------------- /yaz.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: YAZ 7 | Version: @VERSION@ 8 | Description: YAZ library for building Z39.50 applications 9 | Requires: libexslt 10 | Libs: -L${libdir} -lyaz 11 | Libs.private: @LIBS@ 12 | Cflags: -I${includedir} @YAZ_CONFIG_CFLAGS@ 13 | -------------------------------------------------------------------------------- /zoom/.gitignore: -------------------------------------------------------------------------------- 1 | zoomsh 2 | zoomtst[0-9] 3 | zoomtst1[0-1] 4 | zoom-benchmark 5 | zoom-ka 6 | zoom-bug-641 7 | -------------------------------------------------------------------------------- /zoom/Makefile.am: -------------------------------------------------------------------------------- 1 | ## This file is part of the YAZ toolkit. 2 | ## Copyright (C) Index Data 3 | 4 | AM_CPPFLAGS = -I$(top_srcdir)/src $(XML2_CFLAGS) 5 | 6 | bin_PROGRAMS = zoomsh 7 | noinst_PROGRAMS = zoomtst1 zoomtst2 zoomtst3 zoomtst4 zoomtst5 zoomtst6 zoomtst7 zoomtst8 zoomtst9 zoomtst10 zoomtst11 zoom-benchmark zoom-ka zoom-bug-641 8 | 9 | LDADD = ../src/libyaz.la $(READLINE_LIBS) 10 | 11 | zoomtst1_SOURCES = zoomtst1.c 12 | zoomtst2_SOURCES = zoomtst2.c 13 | zoomtst3_SOURCES = zoomtst3.c 14 | zoomtst4_SOURCES = zoomtst4.c 15 | zoomtst5_SOURCES = zoomtst5.c 16 | zoomtst6_SOURCES = zoomtst6.c 17 | zoomtst7_SOURCES = zoomtst7.c 18 | zoomtst8_SOURCES = zoomtst8.c 19 | zoomtst9_SOURCES = zoomtst9.c 20 | zoomtst10_SOURCES = zoomtst10.c 21 | zoomtst11_SOURCES = zoomtst11.c 22 | zoomsh_SOURCES = zoomsh.c 23 | zoom_benchmark_SOURCES = zoom-benchmark.c 24 | zoom_ka_SOURCES = zoom-ka.c 25 | zoom_bug_641_SOURCES = zoom-bug-641.c 26 | 27 | 28 | -------------------------------------------------------------------------------- /ztest/.gitignore: -------------------------------------------------------------------------------- 1 | yaz-ztest 2 | gfs-example 3 | -------------------------------------------------------------------------------- /ztest/BUILD: -------------------------------------------------------------------------------- 1 | # Bazel BUILD file for yaz-ztest 2 | # 3 | # bazel build //ztest:all 4 | 5 | load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") 6 | 7 | LIBS_EXT = [ "-pthread", "-lgnutls", "-lexslt", "-lxslt", "-lxml2" ] 8 | INCLUDES_EXT = [ "-I/usr/include/libxml2" ] 9 | 10 | cc_binary( 11 | name = "yaz-ztest", 12 | includes = [ "src" ], 13 | copts = [ "-pthread" ] + INCLUDES_EXT, 14 | linkopts = LIBS_EXT, 15 | local_defines = [ "HAVE_CONFIG_H" ], 16 | srcs = [ 17 | "dummy-opac.c", "read-grs.c", "read-marc.c", "ztest.c", "ztest.h", 18 | ], 19 | deps = [ 20 | "//src:yaz_server", 21 | ], 22 | ) 23 | 24 | -------------------------------------------------------------------------------- /ztest/Makefile.am: -------------------------------------------------------------------------------- 1 | ## This file is part of the YAZ toolkit. 2 | ## Copyright (C) Index Data 3 | 4 | bin_PROGRAMS=yaz-ztest 5 | noinst_PROGRAMS=gfs-example 6 | 7 | yaz_ztest_SOURCES=ztest.c read-grs.c read-marc.c dummy-opac.c ztest.h 8 | gfs_example_SOURCES=gfs-example.c 9 | 10 | EXTRA_DIST=dummy-words dummy-grs ztest.pem config1.xml 11 | 12 | LDADD=../src/libyaz_server.la ../src/libyaz.la 13 | 14 | AM_CPPFLAGS=-I$(top_srcdir)/src $(XML2_CFLAGS) 15 | 16 | clean-local: 17 | rm -f socket 18 | -------------------------------------------------------------------------------- /ztest/config1.xml: -------------------------------------------------------------------------------- 1 | 2 | tcp:@:9900 3 | unix:/var/tmp/socket 4 | 5 | server1.mydomain 6 | /var/www/s1 7 | config.cfg 8 | 9 | 10 | localhost 11 | /var/www/s2 12 | config.cfg 13 | ../etc/pqf.properties 14 | 15 | 16 | server2.mydomain 17 | 9900 18 | a 19 | 20 | 21 | 22 | 23 | /var/www/s3 24 | config.cfg 25 | 26 | 27 | 28 | --------------------------------------------------------------------------------