From b2f85706027cc6d71b451815fe2157b720a8b085 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 13 Mar 2020 20:52:24 +0000 Subject: [PATCH] Bug 24877: Add link from vendor to linked subscriptions Koha shows the number of subscriptions linked to a vendor, but there is no way to look them up. This adds a link to the subscription search with the vendor name, so there is an easy way to find the subscriptions. To test: - Be superlibrarian or have serials permission - Make sure you have one or more subscriptions linked to vendors - Go to the vendor's detail page in acquisitions - Verify the number of subscriptions is now a link - Verify the search results are correct when clicking on it - Remove permissions (no serials, not superlibrarian) - Verify now the number shows, but is not linked --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index 88dede5a0c..3cea6c7a10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -334,7 +334,13 @@

Subscription details

-

Number of subscriptions: [% subscriptioncount | html %]

+

Number of subscriptions: + [% IF ( CAN_user_serials ) %] + [% subscriptioncount | html %] + [% ELSE %] + [% subscriptioncount | html %] + [% END %] +

-- 2.11.0