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

(-)a/cataloguing/value_builder/marc21_linking_section.pl (-3 / +2 lines)
Lines 226-232 sub plugin { Link Here
226
                      my $record = MARC::Record::new_from_usmarc( $results->[$i] );
226
                      my $record = MARC::Record::new_from_usmarc( $results->[$i] );
227
                  my $rechash = TransformMarcToKoha( $dbh, $record );
227
                  my $rechash = TransformMarcToKoha( $dbh, $record );
228
                    my $pos;
228
                    my $pos;
229
                       my $countitems = 1 if ( $rechash->{itemnumber} );
229
                       my $countitems = $rechash->{itembumber} ? 1 : 0;
230
                      while ( index( $rechash->{itemnumber}, '|', $pos ) > 0 ) {
230
                      while ( index( $rechash->{itemnumber}, '|', $pos ) > 0 ) {
231
                             $countitems += 1;
231
                             $countitems += 1;
232
                              $pos = index( $rechash->{itemnumber}, '|', $pos ) + 1;
232
                              $pos = index( $rechash->{itemnumber}, '|', $pos ) + 1;
Lines 406-409 sub plugin { Link Here
406
      output_html_with_http_headers $query, $cookie, $template->output;
406
      output_html_with_http_headers $query, $cookie, $template->output;
407
}
407
}
408
408
409
1;
409
1;
410
- 

Return to bug 6679