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 Signed-off-by: Nazlı Çetin <nazli@devinim.com.tr> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
3cdd94065c
commit
187e80d0a8
1 changed files with 7 additions and 1 deletions
|
@ -334,7 +334,13 @@
|
||||||
|
|
||||||
<div class="subscription-details">
|
<div class="subscription-details">
|
||||||
<h2>Subscription details</h2>
|
<h2>Subscription details</h2>
|
||||||
<p><strong>Number of subscriptions: </strong>[% subscriptioncount | html %]</p>
|
<p><strong>Number of subscriptions: </strong>
|
||||||
|
[% IF ( CAN_user_serials ) %]
|
||||||
|
<a href="/cgi-bin/koha/serials/serials-search.pl?bookseller_filter=[% name | uri %]&searched=1">[% subscriptioncount | html %]</a>
|
||||||
|
[% ELSE %]
|
||||||
|
[% subscriptioncount | html %]
|
||||||
|
[% END %]
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue