From: miker Date: Sun, 28 Sep 2008 20:55:36 +0000 (+0000) Subject: syncing Z-config with head X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=577b5329a9a41e7115c975d0268d07ff1df8fe03;p=Evergreen.git syncing Z-config with head git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10720 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 3c50aa5044..2503608066 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -417,8 +417,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - - + + + + @@ -436,6 +438,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Z3950.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Z3950.pm index 8e84488ab0..07fc89aaa2 100755 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Z3950.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Z3950.pm @@ -99,6 +99,8 @@ sub query_services { host => $s->host, port => $s->port, db => $s->db, + record_format => $s->record_format, + transmission_format => $s->transmission_format, auth => $s->auth, }; @@ -109,6 +111,7 @@ sub query_services { code => $a->code, format => $a->format, source => $a->source, + truncation => $a->truncation, }; } } diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 4f7676de12..264aa1b6fd 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -459,12 +459,13 @@ INSERT INTO config.z3950_source (name,label,host,port,db,auth) VALUES ('loc','Li INSERT INTO config.z3950_source (name,label,host,port,db) VALUES ('oclc','OCLC','zcat.oclc.org',210,'OLUCWorldCat'); CREATE TABLE config.z3950_attr ( - id SERIAL PRIMARY KEY, - source TEXT NOT NULL REFERENCES config.z3950_source (name), - name TEXT NOT NULL, - label TEXT NOT NULL, - code INT NOT NULL, - format INT NOT NULL, + id SERIAL PRIMARY KEY, + source TEXT NOT NULL REFERENCES config.z3950_source (name), + name TEXT NOT NULL, + label TEXT NOT NULL, + code INT NOT NULL, + format INT NOT NULL, + truncation INT NOT NULL DEFAULT 0, CONSTRAINT z_code_format_once_per_source UNIQUE (code,format,source) ); diff --git a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql index 158e16170b..ca63fd69db 100644 --- a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql +++ b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql @@ -345,7 +345,7 @@ BEGIN END IF; IF param_between IS NOT NULL AND array_upper(param_between, 1) > 1 THEN - where_clause = where_clause || $$ AND mrd.date1 BETWEEN $$ || array_to_string(param_bib_level, $$' AND '$$) || ' '; + where_clause = where_clause || $$ AND mrd.date1 BETWEEN '$$ || array_to_string(param_between, $$' AND '$$) || $$' $$; END IF; core_rel_query := select_clause || from_clause || where_clause ||