Bug 34563 - Move IntranetCirculationHomeHTML to HTML customizations
Summary: Move IntranetCirculationHomeHTML to HTML customizations
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-17 10:41 UTC by Caroline Cyr La Rose
Modified: 2025-06-10 23:05 UTC (History)
5 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 34563: Move IntranetCirculationHomeHTML to HTML customizations (10.26 KB, patch)
2025-06-10 14:21 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 34563: Move IntranetCirculationHomeHTML to HTML customizations (10.31 KB, patch)
2025-06-10 16:21 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 34563: (follow-up) Change name of customization (6.95 KB, patch)
2025-06-10 23:05 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2023-08-17 10:41:08 UTC
Bug 6419 adds some HTML customizations to the staff interface. IntranetCirculationHomeHTML is still a system preference. It would be nice to move it to HTML customizations with the others.
Comment 1 Juliet Heltibridle 2025-03-27 14:36:11 UTC
It has been great being able to customize the cataloging and patron module home pages using HTML customization. Moving from a system preference to the customizations would benefit libraries in consortiums, because it is customizable per library branch. I'd love to see work done on this!
Comment 2 Anneli Österman 2025-06-10 12:31:51 UTC
+1
Comment 3 Owen Leonard 2025-06-10 14:21:51 UTC
Created attachment 183134 [details] [review]
Bug 34563: Move IntranetCirculationHomeHTML to HTML customizations

This patch moves the IntranetCirculationHomeHTML system preference into
HTML customizations, making it possible to have language- and
library-specific content.

To test you should have some content in the IntranetCirculationHomeHTML
system preference before applying the patch. Apply the patch and run the
database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from IntranetCirculationHomeHTML is now stored there.
- The HTML customization entry form should offer
  IntranetCirculationHomeHTML as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the IntranetCirculationHomeHTML HTML customization and add unique
  content to the "fr-FR" tab.

- Go to the circulation home page. You should see the
  content you added to the IntranetCirculationHomeHTML HTML
  customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "IntranetCirculationHomeHTML." It should return no results.

Sponsored-by: Athens County Public Libraries
Comment 4 Lucas Gass (lukeg) 2025-06-10 16:21:52 UTC
Created attachment 183142 [details] [review]
Bug 34563: Move IntranetCirculationHomeHTML to HTML customizations

This patch moves the IntranetCirculationHomeHTML system preference into
HTML customizations, making it possible to have language- and
library-specific content.

To test you should have some content in the IntranetCirculationHomeHTML
system preference before applying the patch. Apply the patch and run the
database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from IntranetCirculationHomeHTML is now stored there.
- The HTML customization entry form should offer
  IntranetCirculationHomeHTML as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Edit the IntranetCirculationHomeHTML HTML customization and add unique
  content to the "fr-FR" tab.

- Go to the circulation home page. You should see the
  content you added to the IntranetCirculationHomeHTML HTML
  customization.
- Switch to your updated translation and confirm that the content you
  added for your translation shows up correctly.
- Go to Administration -> System preferences and search for
  "IntranetCirculationHomeHTML." It should return no results.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 5 Owen Leonard 2025-06-10 23:05:17 UTC
Created attachment 183150 [details] [review]
Bug 34563: (follow-up) Change name of customization

Based on feedback on Bug 34561, this patch renames the HTML
customization from IntranetCirculationHomeHTML to
StaffCirculationHomeHTML.

It also removes the "page-section" class from the display of the custom
content.

Sponsored-by: Athens County Public Libraries