From 7a866a9241ae2dee5d2b8be618e4c457f84a3c0d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 29 Sep 2023 17:33:38 +0000 Subject: [PATCH] Bug 34964: Add descriptions for different HTML customization regions This patch adds dynamically-shown hints on the HTML customization form when the user selects a display location. The hint describes where the content will be found. Much of the descriptive text in this patch is adapted from the original options' system preference descriptions. To test, apply the patch and go to Tools -> HTML customizations -> New entry. - The page loads with the first display location preselected, so you should see a hint for the "ArticleRequestsDisclaimerText" option. - Test the process of selecting each different display location option, confirming each time that the correct description is shown. Signed-off-by: Barbara Johnson Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../en/includes/html-customization-help.inc | 67 +++++++++++++++++++ .../en/modules/tools/additional-contents.tt | 17 ++++- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc new file mode 100644 index 0000000000..697e07ed85 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc @@ -0,0 +1,67 @@ +
+ This content will be shown to an OPAC user before they can place an article request. +
+ +
+ Include this content on the form shown in the OPAC when the user submits a catalog concern report. +
+ +
+ Prefill the OPAC catalog concern form with this content as a template for the user's submission. +
+ +
+ Include this content in the cookie consent footer which is displayed in the OPAC when the CookieConsent system preference is enabled. +
+ +
+ Include this content in the popup message which is displayed in the OPAC when the CookieConsent system preference is enabled and the user clicks the "Your cookies" menu item in the header. +
+ +
+ Include this content in the footer of all pages in the OPAC. +
+ +
+ Replace the search box at the top of OPAC pages with this content. +
+ +
+ Include this content in the header of all pages in the OPAC. +
+ +
+ Include this content on the library information page in the OPAC. +
+ +
+ Show this content on the OPAC login form when a patron is not logged in. +
+ +
+ Show this content in its own column on the main page of the OPAC. +
+ +
+ Add additional elements to the "More Searches" bar on the OPAC, with this content (leave blank to disable). +
+ +
+ Note to display on the patron summary page. This note only appears if the patron is logged in. +
+ +
+ Show this content on the left hand column of the main page and patron account on the OPAC (generally navigation links). +
+ +
+ Show this content on the left hand column of the main page and patron account on the OPAC, after OpacNav, and before patron account links if available. +
+ +
+ Show this content in the right hand column of the main page under the main login form. +
+ +
+ Show this content at the top of the purchase suggestion form in the OPAC. +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index f9cfb6768d..74a0f2b792 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -71,6 +71,9 @@ label[for^="content_"] { font-weight: 700; } + .customization_note { + display: none; + } @@ -233,6 +236,7 @@ + [% INCLUDE 'html-customization-help.inc' %]
  • @@ -436,7 +440,7 @@ [% END %]