Bug 34563

Summary: Move IntranetCirculationHomeHTML to HTML customizations
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: ToolsAssignee: Owen Leonard <oleonard>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: anneli.osterman, jheltibridle, lucas, philippe.blouin, r.delahunty
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6419
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34561
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
Bug 34563: Move IntranetCirculationHomeHTML to HTML customizations
Bug 34563: (follow-up) Change name of customization

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