Bug 28083 - Add system preference that allows users to insert HTML in the <head> on all staff pages
Summary: Add system preference that allows users to insert HTML in the <head> on all s...
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Lucas Gass (lukeg)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-02 19:46 UTC by Lucas Gass (lukeg)
Modified: 2022-06-06 20:25 UTC (History)
3 users (show)

See Also:
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 (4.17 KB, patch)
2021-04-02 20:05 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 28083: Add IntranetHTMLHead system preference (4.22 KB, patch)
2021-04-04 20:19 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.