From: Ben Shum Date: Tue, 28 May 2013 15:31:23 +0000 (-0400) Subject: TPAC - Add config option to turn on/off public copy notes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ba199a460b29922bb64e6fc6b7a62f3e39557e06;p=working%2FEvergreen.git TPAC - Add config option to turn on/off public copy notes Note, public copy notes continues to be shipped "on" by default. This option is intended to allow for quick enabling/disabling of all public copy notes in the catalog. Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2 index c8e87ef95f..34e4b972f6 100644 --- a/Open-ILS/src/templates/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/opac/parts/config.tt2 @@ -149,4 +149,9 @@ search.basic_config = { # Set to 1 or 'true' to enable ctx.google_books_preview = 0; +############################################################################## +# Show Public Copy Notes +# Set to 1 or 'true' to enable +ctx.public_copy_notes = 1; + %] diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index e82ba2b6a5..e43283a690 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -34,7 +34,11 @@ END; [%- ELSE -%] [% l("Location") %] [%- END %] + [%- IF ctx.public_copy_notes -%] [% l("Call Number / Copy Notes") %] + [%- ELSE -%] + [% l("Call Number") %] + [%- END %] [%- IF has_parts == 'true' %] [% l("Part") %] [%- END %] @@ -158,11 +162,13 @@ END; END %] + [%- IF ctx.public_copy_notes -%] [% IF copy_info.notes; %] [% FOREACH note IN copy_info.notes; %]  [% note.title | html %]: [% note.value | html %] [% END %] [% END %] + [% END %] [%- END %]