Summary: | OpacLibraryInfo doesn't respect news expiration date | ||
---|---|---|---|
Product: | Koha | Reporter: | David Roberts <david.roberts> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | Failed QA --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | chris.rowlands6, phil |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 38982: OpacLibraryInfo should respect news expiration date
Bug 38982: OpacLibraryInfo should respect news expiration date |
Description
David Roberts
2025-01-28 09:16:09 UTC
Created attachment 177549 [details] [review] 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 Created attachment 177948 [details] [review] 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 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. |