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.