Bug 28083

Summary: Add system preference that allows users to insert HTML in the <head> on all staff pages
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: Staff interfaceAssignee: Lucas Gass (lukeg) <lucas>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, gmcharlt, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 28083: Add IntranetHTMLHead system preference
Bug 28083: Add IntranetHTMLHead system preference

Description Lucas Gass (lukeg) 2021-04-02 19:46:08 UTC
Like Bug 28080 but for the staff client.

It would be nice if there was a system preference to allow librarians to insert HTML into the document <head> on the staff cleint. Currently there is no way to add custom scripts or meta content, links to Google fonts, etc.
Comment 1 Lucas Gass (lukeg) 2021-04-02 20:05:03 UTC
Created attachment 119145 [details] [review]
Bug 28083: Add IntranetHTMLHead system preference

To tes:
-Apply patch
-Look for the syspref IntranetHTMLHead
-If you insert HTML it should be present inside the <head> on all pages in the staff interface
-An easy way to test is to add something like this: <style>body{ background: red !important } </style>
-All staff interface pages should then have a red background
Comment 2 David Nind 2021-04-04 20:19:02 UTC
Created attachment 119170 [details] [review]
Bug 28083: Add IntranetHTMLHead system preference

To tes:
-Apply patch
-Look for the syspref IntranetHTMLHead
-If you insert HTML it should be present inside the <head> on all pages in the staff interface
-An easy way to test is to add something like this: <style>body{ background: red !important } </style>
-All staff interface pages should then have a red background

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2021-04-04 20:20:58 UTC
One minor suggestion, could we rename StaffInterfaceHTMLHead to be consistent with our Terminology list?

Also noting that the preference names are already a mix of Intranet.. and StaffClient..
Comment 4 Marcel de Rooy 2021-07-09 07:45:19 UTC
Comment3 has not been addressed or answered three months later. Changing status to reflect need for feedback
Comment 5 Lucas Gass (lukeg) 2021-07-13 14:35:55 UTC
Like we discussed in Bug 28080, these patches are probably unnecessary as there are plenty of workarounds to get things into the HTML head.

Marking this one as invalid as well.