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

(-)a/C4/Serials.pm (-3 / +7 lines)
Lines 353-365 sub GetFullSubscription { Link Here
353
353
354
=head2 PrepareSerialsData
354
=head2 PrepareSerialsData
355
355
356
   $array_ref = PrepareSerialsData($serialinfomation)
356
   $array_ref = PrepareSerialsData($serialinfomation, $add_itemnumbers)
357
   where serialinformation is a hashref array
357
   where serialinformation is a hashref array and add_itemnumbers is a boolean
358
358
359
=cut
359
=cut
360
360
361
sub PrepareSerialsData {
361
sub PrepareSerialsData {
362
    my ($lines) = @_;
362
    my ($lines, $add_itemnumbers) = @_;
363
363
364
    return unless ($lines);
364
    return unless ($lines);
365
365
Lines 375-380 sub PrepareSerialsData { Link Here
375
        if ( grep { $_ == $subs->{status} } ( EXPECTED, LATE, MISSING_STATUSES, CLAIMED ) ) {
375
        if ( grep { $_ == $subs->{status} } ( EXPECTED, LATE, MISSING_STATUSES, CLAIMED ) ) {
376
            $subs->{"checked"} = 1;
376
            $subs->{"checked"} = 1;
377
        }
377
        }
378
        if( $add_itemnumbers ) {
379
            my $serialitem = Koha::Serial::Items->find({serialid => $subs->{'serialid'}});
380
            $subs->{"itemnumber"} = $serialitem->itemnumber if $serialitem;
381
        }
378
382
379
        if ( $subs->{'year'} && $subs->{'year'} ne "" ) {
383
        if ( $subs->{'year'} && $subs->{'year'} ne "" ) {
380
            $year = $subs->{'year'};
384
            $year = $subs->{'year'};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (+4 lines)
Lines 225-230 Link Here
225
                                                    <th>Number</th>
225
                                                    <th>Number</th>
226
                                                    <th>Status</th>
226
                                                    <th>Status</th>
227
                                                    <th>Notes</th>
227
                                                    <th>Notes</th>
228
                                                    <th>Linked item</th>
228
                                                    <th>Library</th>
229
                                                    <th>Library</th>
229
                                                    [% IF ( routing ) %]
230
                                                    [% IF ( routing ) %]
230
                                                        <th>Routing</th>
231
                                                        <th>Routing</th>
Lines 308-313 Link Here
308
                                                        <td>
309
                                                        <td>
309
                                                            [% serial.notes | html %]
310
                                                            [% serial.notes | html %]
310
                                                        </td>
311
                                                        </td>
312
                                                        <td>
313
                                                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% serial.itemnumber | uri %]">[% serial.itemnumber | html %]</a>
314
                                                        </td>
311
                                                        <td>
315
                                                        <td>
312
                                                            [% Branches.GetName( serial.branchcode ) | html %]
316
                                                            [% Branches.GetName( serial.branchcode ) | html %]
313
                                                        </td>
317
                                                        </td>
(-)a/serials/serials-collection.pl (-3 / +2 lines)
Lines 165-171 if (@subscriptionid){ Link Here
165
  output_and_exit( $query, $cookie, $template, 'unknown_subscription') unless @subscriptioninformation;
165
  output_and_exit( $query, $cookie, $template, 'unknown_subscription') unless @subscriptioninformation;
166
166
167
  $template->param(closed => $closed);
167
  $template->param(closed => $closed);
168
  $subscriptions=PrepareSerialsData(\@subscriptioninformation);
168
  $subscriptions=PrepareSerialsData(\@subscriptioninformation, 1);
169
  $subscriptioncount = CountSubscriptionFromBiblionumber($subscriptiondescs->[0]{'biblionumber'});
169
  $subscriptioncount = CountSubscriptionFromBiblionumber($subscriptiondescs->[0]{'biblionumber'});
170
} else {
170
} else {
171
  $subscriptiondescs = GetSubscriptionsFromBiblionumber($biblionumber);
171
  $subscriptiondescs = GetSubscriptionsFromBiblionumber($biblionumber);
Lines 176-182 if (@subscriptionid){ Link Here
176
    $s->{numberpattern} = $numberpattern;
176
    $s->{numberpattern} = $numberpattern;
177
  }
177
  }
178
  my $subscriptioninformation = GetFullSubscriptionsFromBiblionumber($biblionumber);
178
  my $subscriptioninformation = GetFullSubscriptionsFromBiblionumber($biblionumber);
179
  $subscriptions=PrepareSerialsData($subscriptioninformation);
179
  $subscriptions=PrepareSerialsData($subscriptioninformation, 1);
180
}
180
}
181
181
182
my $title = $subscriptiondescs->[0]{bibliotitle};
182
my $title = $subscriptiondescs->[0]{bibliotitle};
183
- 

Return to bug 38061