From: senator Date: Tue, 14 Sep 2010 21:44:39 +0000 (+0000) Subject: OPAC display of fully compressed serials holding. Mostly miker's work except X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3c6ca7d853e34bde5672ac968547f38c56e117a;p=evergreen%2Fbjwebb.git OPAC display of fully compressed serials holding. Mostly miker's work except the OU setting part git-svn-id: svn://svn.open-ils.org/ILS/trunk@17661 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index f727f5a49..98d424565 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0396'); -- senator +INSERT INTO config.upgrade_log (version) VALUES ('0397'); -- senator CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 5aeb7f7fc..03707b5e5 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2038,7 +2038,13 @@ INSERT into config.org_unit_setting_type ( 'circ.password_reset_request_throttle', oils_i18n_gettext('circ.password_reset_request_throttle', 'Circulation: Maximum concurrently active self-serve password reset requests', 'coust', 'label'), oils_i18n_gettext('circ.password_reset_request_throttle', 'Prevent the creation of new self-serve password reset requests until the number of active requests drops back below this number.', 'coust', 'description'), - 'string') + 'string'), + +( 'opac.fully_compressed_serial_holdings', + 'OPAC: Use fully compressed serial holdings', + 'Show fully compressed serial holdings for all libraries at and below + the current context unit', + 'bool') ; UPDATE config.org_unit_setting_type diff --git a/Open-ILS/src/sql/Pg/upgrade/0397.data.coust.opac_fully_compresssed.sql b/Open-ILS/src/sql/Pg/upgrade/0397.data.coust.opac_fully_compresssed.sql new file mode 100644 index 000000000..24ce1b49e --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0397.data.coust.opac_fully_compresssed.sql @@ -0,0 +1,14 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0397'); + +INSERT INTO config.org_unit_setting_type (name, label, description, datatype) + VALUES ( + 'opac.fully_compressed_serial_holdings', + 'OPAC: Use fully compressed serial holdings', + 'Show fully compressed serial holdings for all libraries at and below + the current context unit', + 'bool' + ); + +COMMIT; diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index dc5cac361..fe18c0d06 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -155,7 +155,11 @@ function rdetailDraw() { } - if (rdetailDisplaySerialHoldings) { + if (rdetailDisplaySerialHoldings && ( + isXUL() || !fetchOrgSettingDefault( + getLocation(), "opac.fully_compressed_serial_holdings") + ) + ) { var req = new Request(FETCH_MFHD_SUMMARY, getRid()); req.callback(_holdingsDraw); req.send(); diff --git a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml index b3f8300b8..69a876c3a 100644 --- a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml @@ -131,6 +131,35 @@ ]]> + + Issues Held: ${holdingsStatement} + + +