From 8a70eee6a41d8408d76cf3ef0a789f8722286ea6 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Nazlı Çetin Signed-off-by: Jonathan Druart --- 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.20.1