View | Details | Raw Unified | Return to bug 6195
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt (-2 / +5 lines)
Lines 164-171 function showlayer(numlayer){ Link Here
164
    </div>
164
    </div>
165
165
166
    [% FOREACH year IN years %]
166
    [% FOREACH year IN years %]
167
  [% IF ( year.first ) %]  
167
        [% IF loop.first %]
168
    <div class="yeardata tabsub" id="show[% year.year %]" style="display:block">[% ELSE %]<div class="yeardata tabsub" id="show[% year.year %]" style="display:none">[% END %]
168
           <div class="yeardata tabsub" id="show[% year.year %]" style="display:block">
169
        [% ELSE %]
170
           <div class="yeardata tabsub" id="show[% year.year %]" style="display:none">
171
        [% END %]
169
        <table class="subscriptionstclass">
172
        <table class="subscriptionstclass">
170
	    <thead>
173
	    <thead>
171
		<tr>
174
		<tr>
(-)a/opac/opac-serial-issues.pl (-4 / +10 lines)
Lines 54-59 if ( $selectview eq "full" ) { Link Here
54
    );
54
    );
55
    my $subscriptions = GetFullSubscriptionsFromBiblionumber($biblionumber);
55
    my $subscriptions = GetFullSubscriptionsFromBiblionumber($biblionumber);
56
    my $subscriptioninformation=PrepareSerialsData($subscriptions);
56
    my $subscriptioninformation=PrepareSerialsData($subscriptions);
57
    # PrepareSerialsData does some bogus stuff that the template could handle
58
    # But at least it sorts the array by the year field so we dont have to
59
    # find 'manage' if its there
60
    if ($subscriptioninformation->[0]->{year} eq 'manage') {
61
        shift @{$subscriptioninformation};
62
    }
63
57
    # now, check is there is an alert subscription for one of the subscriptions
64
    # now, check is there is an alert subscription for one of the subscriptions
58
    foreach (@$subscriptions) {
65
    foreach (@$subscriptions) {
59
        if (getalert($loggedinuser,'issue',$_->{subscriptionid})) {
66
        if (getalert($loggedinuser,'issue',$_->{subscriptionid})) {
Lines 61-69 if ( $selectview eq "full" ) { Link Here
61
        }
68
        }
62
    }
69
    }
63
70
64
    my $title   = $subscriptions->[0]{bibliotitle};
71
    my $title   = $subscriptions->[0]->{bibliotitle};
65
    my $yearmin = $subscriptions->[0]{year};
72
    my $yearmin = $subscriptions->[0]->{year};
66
    my $yearmax = $subscriptions->[ scalar(@$subscriptions) - 1 ]{year};
73
    my $yearmax = $subscriptions->[ -1 ]->{year};
67
74
68
75
69
    # replace CR by <br> in librarian note
76
    # replace CR by <br> in librarian note
70
- 

Return to bug 6195