LP#1801999: Add an alert message for the public catalog. user/jwoolford/alert-message
authorJessica Woolford <jwoolford@biblio.org>
Tue, 6 Nov 2018 19:09:57 +0000 (14:09 -0500)
committerJessica Woolford <jwoolford@biblio.org>
Tue, 6 Nov 2018 22:33:14 +0000 (17:33 -0500)
This is an additional message to the maintenance message. Example use case: ILL delivery service temporarily unavailable.

Includes release notes.

Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/config.tt2
Open-ILS/src/templates/opac/parts/topnav.tt2
docs/RELEASE_NOTES_NEXT/OPAC/additional-alert-message.adoc [new file with mode: 0644]

index 31bd817..1eea76c 100644 (file)
@@ -2540,6 +2540,13 @@ a.preflib_change {
     text-align: center;
 }
 
+#alert_message {
+    padding: 5px;
+    width: 100%;
+    background-color: [% css_colors.text_attention %];
+    text-align: center;
+}
+
 #search-box > span {
     margin: 0 1em;
 }
index ac85bdf..6f09cdb 100644 (file)
@@ -194,6 +194,10 @@ ctx.google_books_preview = 0;
 # Set a maintenance message to display in the catalogue
 #
 # ctx.maintenance_message = "The system will not be available February 29, 2104.";
+#
+# Set an alert message to display in the catalogue
+#
+# ctx.alert_message = "This is an important message that all users should see.";
 
 ##############################################################################
 # Depth Button/Checkbox
index f8dd9ed..03e039c 100644 (file)
@@ -1,6 +1,9 @@
 [%- IF ctx.maintenance_message -%]
 <div id="maintenance_message">[% ctx.maintenance_message %]</div>
 [%- END -%]
+[%- IF ctx.alert_message -%]
+<div id="alert_message">[% ctx.alert_message %]</div>
+[%- END -%]
 [% IF !ctx.is_staff %]
 <div id="header-wrap">
 <div id="header">
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/additional-alert-message.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/additional-alert-message.adoc
new file mode 100644 (file)
index 0000000..8d9fbe2
--- /dev/null
@@ -0,0 +1,4 @@
+Additional Alert Message for Public Catalog
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+An additional alert message that can be displayed in the public catalog, in addition to the maintenance message. Example use case: To let patrons know that the ILL delivery service will be unavailable for a period of time. To enable the message, remove the comment from ctx.alert_message in config.tt2 and edit the message as needed.
+