[Bug 38982] New: OpacLibraryInfo doesn't respect news expiration date
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Bug ID: 38982 Summary: OpacLibraryInfo doesn't respect news expiration date Change sponsored?: --- Product: Koha Version: 23.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: david.roberts@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org If you create an OpacLibraryInfo HTML customisation for a particular library and give it an expiration date in the past, it will continue to display in the OPAC. To reproduce: 1) Go to Tools > HTML customisations 2) Create a new entry, specify a library, and give it an expiration date of yesterday (or earlier) 3) Then go to the OPAC and look at the Libraries page (cgi-bin/koha/opac-library.pl?branchcode=XXXXX). The news item will still be visible. 4) Also, if you do a catalogue search for an item in that library, look at the holdings in the search result, and in the Current and Home Library columns, an (I) information alert will show which when clicked will still show the expired news item. Once the expiry date has been reached, this news item should not display in the OPAC at all. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Chris Rowlands <chris.rowlands6@nhs.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris.rowlands6@nhs.net -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Version|23.11 |Main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 177549 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=177549&action=edit Bug 38982: OpacLibraryInfo should respect news expiration date This patch updates the library detail view in the OPAC so that the OpacLibraryInfo HTML customization respects the content block's expiration date. The patch also changes the "library_info" BLOCK to "library_details" to avoid confusion. To test, apply the patch and enable the OPACShowLibraries system preference if necessary. - Create an OpacLibraryInfo HTML customization if necessary: - In the staff client, go to Tools -> HTML customizations - Create a new entry in the display location "OpacLibraryInfo" - Create the entry with a publication date but no expiration date. - In the OPAC, go to the "Libraries" page. - View the details of a library you created OpacLibraryInfo for. - Confirm that the content appears. - Return to the staff interface and edit the entry, adding an expiration date in the past. - In the OPAC, confirm that the content no longer appears. Sponsored-by: Athens County Public Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #177549|0 |1 is obsolete| | --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 177948 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=177948&action=edit Bug 38982: OpacLibraryInfo should respect news expiration date This patch updates the library detail view in the OPAC so that the OpacLibraryInfo HTML customization respects the content block's expiration date. The patch also changes the "library_info" BLOCK to "library_details" to avoid confusion. To test, apply the patch and enable the OPACShowLibraries system preference if necessary. - Create an OpacLibraryInfo HTML customization if necessary: - In the staff client, go to Tools -> HTML customizations - Create a new entry in the display location "OpacLibraryInfo" - Create the entry with a publication date but no expiration date. - In the OPAC, go to the "Libraries" page. - View the details of a library you created OpacLibraryInfo for. - Confirm that the content appears. - Return to the staff interface and edit the entry, adding an expiration date in the past. - In the OPAC, confirm that the content no longer appears. Sponsored-by: Athens County Public Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38982 Phil Ringnalda <phil@chetcolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phil@chetcolibrary.org Status|Needs Signoff |Failed QA --- Comment #3 from Phil Ringnalda <phil@chetcolibrary.org> --- That nicely fixes the Libraries link, but leaves the info popup from the library name in the holdings table (a lovely feature I didn't know existed) still showing. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org