[Bug 44229] New: Use LinkPref template plugin where possible
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44229 Bug ID: 44229 Summary: Use LinkPref template plugin where possible Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Templates Assignee: oleonard@myacpl.org Reporter: oleonard@myacpl.org QA Contact: testopia@bugs.koha-community.org Depends on: 41674 Target Milestone: --- The patch will update these templates: - admin/audio_alerts.tt - admin/categories.tt - admin/credit_types.tt - admin/float_limits.tt - admin/itemtypes.tt - admin/patron-attr-types.tt - admin/smart-rules.tt - admin/transport-cost-matrix.tt - circ/curbside_pickups.tt - circ/waitingreserves.tt - members/recallshistory.tt - recalls/recalls_old_queue.tt - recalls/recalls_overdue.tt - recalls/recalls_queue.tt - recalls/recalls_to_pull.tt - recalls/recalls_waiting.tt - recalls/request.tt - serials/subscription-add.tt Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41674 [Bug 41674] Add template plugin for linking to system preferences based on user permission -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44229 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |Athens County Public list of Sponsors| |Libraries Status|NEW |Needs Signoff Patch complexity|--- |Small patch Sponsorship status|--- |Sponsored -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44229 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 212404 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212404&action=edit Bug 44229: Use LinkPref template plugin where possible This patch implements the new LinkPref template plugin in several templates in order to display system preferences differently based on the user's permissions. To test I recommend having the stafff interface open in two browser windows (two different browsers or one browser with a private/incognito window). Log in to one as a superlibrarian and another as a user with all permissions *except* "Manage system preferences" (manage_sysprefs). Check the following pages as each of the two users. The superlibrarian should see links to system preferences. The other user should see plain text. - Administration -> Audio alerts - With AudioAlerts disabled. -> Patron categories -> New patron category: Links associated with these fields: - Block expired patron OPAC actions: BlockExpiredPatronOpacActions - Checkout charge limit: noissuescharge - Guarantees checkout charge limit: NoIssuesChargeGuarantees - Guarantors with guarantees checkout charge limit: NoIssuesChargeGuarantorsWithGuarantees - Self-renewal availability period: NotifyBorrowerDeparture -> Credit types -> New credit type: - AutoCreditNumber link under 'Enable credit number' field. -> Library float limits - With UseLibraryFloatLimits disabled -> Item types -> New item type: - With both noItemTypeImages and OpacNoItemTypeImages disabled - Item type image preference links on the "Image" line. -> Patron attribute types - With ExtendedPatronAttributes disabled. -> Circulation and fine rules - CircControl and HomeOrHoldingBranch links in the instructions at the top of the page. -> Transport cost matrix - UseTransportCostMatrix link in the instructions at the top - Circulation -> Curbside pickups - With CurbsidePickup disabled. -> Holds awaiting pickup - Holds waiting past their expiration date tab - Link to TransferWhenCancelAllWaitingHolds in the hint at the top of the table.* * This link will not appear if you have no holds waiting past their expiration date. - Patrons - With UseRecalls disabled, navigate directly to... - /cgi-bin/koha/members/recallshistory.pl?borrowernumber=X - /cgi-bin/koha/recalls/recalls_queue.pl - /cgi-bin/koha/recalls/recalls_old_queue.pl - /cgi-bin/koha/recalls/recalls_overdue.pl - /cgi-bin/koha/recalls/recalls_waiting.pl - /cgi-bin/koha/recalls/recalls_to_pull.pl - /cgi-bin/koha/recalls/request.pl - Link to UseRecalls in the "Recalls have not been enabled" message - Serials -> New subscription: - Link to StaffSerialIssueDisplayCount under the "Number of issues to display to staff" field. - Link to OPACSerialIssueDisplayCount under "Number of issues to display to the public" 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=44229 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=44229 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212404|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44229 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 212452 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212452&action=edit Bug 44229: Use LinkPref template plugin where possible This patch implements the new LinkPref template plugin in several templates in order to display system preferences differently based on the user's permissions. To test I recommend having the stafff interface open in two browser windows (two different browsers or one browser with a private/incognito window). Log in to one as a superlibrarian and another as a user with all permissions *except* "Manage system preferences" (manage_sysprefs). Check the following pages as each of the two users. The superlibrarian should see links to system preferences. The other user should see plain text. - Administration -> Audio alerts - With AudioAlerts disabled. -> Patron categories -> New patron category: Links associated with these fields: - Block expired patron OPAC actions: BlockExpiredPatronOpacActions - Checkout charge limit: noissuescharge - Guarantees checkout charge limit: NoIssuesChargeGuarantees - Guarantors with guarantees checkout charge limit: NoIssuesChargeGuarantorsWithGuarantees - Self-renewal availability period: NotifyBorrowerDeparture -> Credit types -> New credit type: - AutoCreditNumber link under 'Enable credit number' field. -> Library float limits - With UseLibraryFloatLimits disabled -> Item types -> New item type: - With both noItemTypeImages and OpacNoItemTypeImages disabled - Item type image preference links on the "Image" line. -> Patron attribute types - With ExtendedPatronAttributes disabled. -> Circulation and fine rules - CircControl and HomeOrHoldingBranch links in the instructions at the top of the page. -> Transport cost matrix - UseTransportCostMatrix link in the instructions at the top - Circulation -> Curbside pickups - With CurbsidePickup disabled. -> Holds awaiting pickup - Holds waiting past their expiration date tab - Link to TransferWhenCancelAllWaitingHolds in the hint at the top of the table.* * This link will not appear if you have no holds waiting past their expiration date. - Patrons - With UseRecalls disabled, navigate directly to... - /cgi-bin/koha/members/recallshistory.pl?borrowernumber=X - /cgi-bin/koha/recalls/recalls_queue.pl - /cgi-bin/koha/recalls/recalls_old_queue.pl - /cgi-bin/koha/recalls/recalls_overdue.pl - /cgi-bin/koha/recalls/recalls_waiting.pl - /cgi-bin/koha/recalls/recalls_to_pull.pl - /cgi-bin/koha/recalls/request.pl - Link to UseRecalls in the "Recalls have not been enabled" message - Serials -> New subscription: - Link to StaffSerialIssueDisplayCount under the "Number of issues to display to staff" field. - Link to OPACSerialIssueDisplayCount under "Number of issues to display to the public" Sponsored-by: Athens County Public Libraries 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=44229 --- Comment #3 from David Nind <david@davidnind.com> --- Created attachment 212453 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212453&action=edit Bug 44229: (follow-up) Recalls request page Update the recalls request page when the UseRecalls is set to "are disabled" - the link to the system preference was still active. Test plan: 1. With the UseRecalls system preference set to "are disabled" (the default), directly access /cgi-bin/koha/recalls/request.pl ==> Blue information alert message: Recalls have not been enabled. Enable the UseRecalls system preference to use recalls. 2. With the UseRecalls system preference set to "can be placed through the OPAC only", directly access /cgi-bin/koha/recalls/request.pl ==> Yellow information alert message: Due to the UseRecalls system preference, recalls cannot be placed through the staff interface. 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=44229 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #4 from David Nind <david@davidnind.com> --- I added a follow-up for the recalls request page - one occurrence was still linked (when UseRecalls was set to "are disabled"). Testing notes (using KTD): 1. I used Henry Acevedo (Midway) as the staff patron without the "Manage system preferences (manage_sysprefs)" permission. 2. Curbside pickups: with CurbsidePickup disabled (the default) go directly to: - /cgi-bin/koha/circ/curbside_pickups.pl 3. Holds awaiting pickup: - Place and fill a hold (I placed a hold on Programming Perl (262) for Mary Burton, and checked out 39999000011418 so that a hold was waiting) - In the holds section for the record, change the expiration date to before today - Change the library for Henry to Centerville - Go to Circulation > Holds and bookings > Holds awaiting pickup - Click the "Holds waiting past their expiration date" tab 4. Recalls - follow-up patch added to fix when UseRecalls was set to "are disabled": - Access /cgi-bin/koha/recalls/request.pl - Set UseRecalls to "are disabled", link was still active for the message: ==> Recalls have not been enabled. Enable the UseRecalls system preference to use recalls. - Set UseRecalls to "can be placed through the OPAC only", message is: ==> Due to the UseRecalls system preference, recalls cannot be placed through the staff interface. - Set UseRecalls to "can be placed through both the OPAC and staff interface", message is: ==> No recalls have been made. - Set UseRecalls to "can be placed through the staff interface only", message is: ==> No recalls have been made. (Note Same results if you use an actual record, for example: /cgi-bin/koha/recalls/request.pl?biblionumber=262 ) -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org