From 718c08a3f2bb6573ddd10a2620a5c20ff8f2d068 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Fri, 6 Dec 2013 10:31:21 -0500 Subject: [PATCH] Notice message functionality Similar to maintenance message, but less jarringly visible. Also not shown in the staff client. Signed-off-by: Thomas Berezansky --- Open-ILS/src/templates/opac/css/style.css.tt2 | 8 ++++++++ Open-ILS/src/templates/opac/parts/config.tt2 | 6 ++++++ Open-ILS/src/templates/opac/parts/topnav.tt2 | 3 +++ 3 files changed, 17 insertions(+) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index a40d3768f0..1f5fa88301 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1572,6 +1572,14 @@ a.preflib_change { text-align: center; } +#notice_message { + padding: 5px; + width: 100%; + background-color: [% css_colors.background_invert %]; + color: [% css_colors.text_invert %]; + text-align: center; +} + #search-box > span { margin: 0 1em; } diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2 index bd4f77cd25..74e070c1f1 100644 --- a/Open-ILS/src/templates/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/opac/parts/config.tt2 @@ -162,4 +162,10 @@ ctx.google_books_preview = 0; # # ctx.maintenance_message = "The system will not be available February 29, 2104."; +############################################################################## + +# Set a notice message to display in the catalogue +# +# ctx.notice_message = "Our catalog is now more mobile-friendly!"; + %] diff --git a/Open-ILS/src/templates/opac/parts/topnav.tt2 b/Open-ILS/src/templates/opac/parts/topnav.tt2 index e9cacdd10a..7c94686ce1 100644 --- a/Open-ILS/src/templates/opac/parts/topnav.tt2 +++ b/Open-ILS/src/templates/opac/parts/topnav.tt2 @@ -2,6 +2,9 @@
[% ctx.maintenance_message %]
[%- END -%] [% IF !ctx.is_staff %] +[%- IF ctx.notice_message -%] +
[% ctx.notice_message %]
+[%- END -%]