Description
Caroline Cyr La Rose
2023-08-17 10:41:08 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! +1 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 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> 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 Created attachment 184455 [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> Created attachment 184456 [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 |