[Bug 29162] New: Change template structure on OPAC library page so that a single library can easily be hidden
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Bug ID: 29162 Summary: Change template structure on OPAC library page so that a single library can easily be hidden Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org At the moment the structur of the OPAC libraries page doesn't allow to change the information of one library easily or to hide one library using an id or similar as there is no "wrapping" HTML element for each entry. It would be nice if a div or span could be added around each library element + hr. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 125713 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125713&action=edit Bug 29162: Change template structure on OPAC library page so that a single library can easily be hidden This patch adds markup to the OPAC library page so that CSS or JS can more easily target elements of the page: - Each library is wrapped in a div, e.g. <div id="section_CPL"> - Classes are added to the paragraphs containing phone, fax, URL, and library description. - An ID has been added to the menu of libraries in the sidebar so that they can be targetted individually. To test, apply the patch and go to Administration -> System prefernces. - Add some testing CSS to the OPACUserCSS system preference, if necessary replacing "CPL" with a branchcode in your system: div#section_CPL, li#menu_CPL { font-size: 80%; } - In the OPAC, view the "Libraries" page. - In the view of all libraries you should see your CSS reflected in the section for that library. - In the individual library view you should see the menu item for that library affected by your custom CSS. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #125713|0 |1 is obsolete| | --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 125760 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125760&action=edit Bug 29162: Change template structure on OPAC library page so that a single library can easily be hidden This patch adds markup to the OPAC library page so that CSS or JS can more easily target elements of the page: - Each library is wrapped in a div, e.g. <div id="section_CPL"> - Classes are added to the paragraphs containing phone, fax, URL, and library description. - An ID has been added to the menu of libraries in the sidebar so that they can be targetted individually. To test, apply the patch and go to Administration -> System prefernces. - Add some testing CSS to the OPACUserCSS system preference, if necessary replacing "CPL" with a branchcode in your system: div#section_CPL, li#menu_CPL { font-size: 80%; } - In the OPAC, view the "Libraries" page. - In the view of all libraries you should see your CSS reflected in the section for that library. - In the individual library view you should see the menu item for that library affected by your custom CSS. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #125760|0 |1 is obsolete| | --- Comment #3 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 125884 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125884&action=edit Bug 29162: Change template structure on OPAC library page so that a single library can easily be hidden This patch adds markup to the OPAC library page so that CSS or JS can more easily target elements of the page: - Each library is wrapped in a div, e.g. <div id="section_CPL"> - Classes are added to the paragraphs containing phone, fax, URL, and library description. - An ID has been added to the menu of libraries in the sidebar so that they can be targetted individually. To test, apply the patch and go to Administration -> System prefernces. - Add some testing CSS to the OPACUserCSS system preference, if necessary replacing "CPL" with a branchcode in your system: div#section_CPL, li#menu_CPL { font-size: 80%; } - In the OPAC, view the "Libraries" page. - In the view of all libraries you should see your CSS reflected in the section for that library. - In the individual library view you should see the menu item for that library affected by your custom CSS. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |m.de.rooy@rijksmuseum.nl |y.org | CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Now I didn't even get a chance to help this along! Thx everyone! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This patch adds markup to release notes| |the OPAC library page so | |that CSS or JS can more | |easily target elements of | |the page: | |- Each library | |section is wrapped in a div | |with a unique id | |- Classes | |are added to the paragraphs | |containing phone, fax, URL, | |and library description. | |- | |An ID has been added to the | |menu of libraries in the | |sidebar so that they can be | |targetted individually. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |21.11.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 --- Comment #5 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Pushed to master for 21.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29162 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |RESOLVED Resolution|--- |FIXED CC| |kyle@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org