Bug 7338 Links on Serial Collection page
Don't display link to the serial, when the collection page displays just
one subscription. Display it when several subscriptions. Alway display a
link for displaying biblio record other subscriptions.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch works nicely, but always shows link to 'any subscriptions'.
I did a follow-up so the link would only show if there was more
than 1 subscription for the record.
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 33587674fa)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
8f163b462a
commit
5ad6d9a72c
|
|
@ -71,7 +71,7 @@ $(document).ready(function() {
|
|||
|
||||
[% IF ( subscriptions ) %]
|
||||
<table>
|
||||
[% IF ( onesubscription ) %]
|
||||
[% IF ( subscriptions.size == 1 ) %]
|
||||
<caption> Subscription Summary</caption>
|
||||
[% ELSE %]
|
||||
<caption> Subscription Summaries</caption>
|
||||
|
|
@ -161,9 +161,8 @@ $(document).ready(function() {
|
|||
</tr>
|
||||
[% END %]
|
||||
[% IF ( subscr ) %]
|
||||
[% UNLESS ( onesubscription ) %]
|
||||
<tr ><td colspan="7"> <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
|
||||
</tr>[% END %]
|
||||
<tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
[% END %]
|
||||
|
|
@ -183,7 +182,7 @@ $(document).ready(function() {
|
|||
<div id="subscription-year-[% year.year %]">
|
||||
<table>
|
||||
<tr>
|
||||
[% UNLESS ( year.onesubscription ) %]
|
||||
[% IF ( subscriptions.size > 1 ) %]
|
||||
<th># Subs</th>
|
||||
[% END %]
|
||||
<th>Date published
|
||||
|
|
@ -205,7 +204,7 @@ $(document).ready(function() {
|
|||
</tr>
|
||||
[% FOREACH serial IN year.serials %]
|
||||
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
|
||||
[% UNLESS ( serial.onesubscription ) %]
|
||||
[% IF ( subscriptions.size > 1 ) %]
|
||||
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td>
|
||||
[% END %]
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -147,7 +147,6 @@ foreach (@$location) {
|
|||
|
||||
chop $subscriptionidlist;
|
||||
$template->param(
|
||||
onesubscription => (scalar(@$subscriptiondescs)==1),
|
||||
subscriptionidlist => $subscriptionidlist,
|
||||
biblionumber => $biblionumber,
|
||||
subscriptions => $subscriptiondescs,
|
||||
|
|
|
|||
Loading…
Reference in New Issue