Lines 306-312
sub get_label_summary {
Link Here
|
306 |
my %params = @_; |
306 |
my %params = @_; |
307 |
my $label_number = 0; |
307 |
my $label_number = 0; |
308 |
my @label_summaries = (); |
308 |
my @label_summaries = (); |
309 |
my $query = " SELECT b.title, b.author, bi.itemtype, i.barcode, i.biblionumber |
309 |
my $query = " SELECT b.title, b.author, bi.itemtype, i.barcode, i.biblionumber, i.itype |
310 |
FROM creator_batches AS c LEFT JOIN items AS i ON (c.item_number=i.itemnumber) |
310 |
FROM creator_batches AS c LEFT JOIN items AS i ON (c.item_number=i.itemnumber) |
311 |
LEFT JOIN biblioitems AS bi ON (i.biblioitemnumber=bi.biblioitemnumber) |
311 |
LEFT JOIN biblioitems AS bi ON (i.biblioitemnumber=bi.biblioitemnumber) |
312 |
LEFT JOIN biblio AS b ON (bi.biblionumber=b.biblionumber) |
312 |
LEFT JOIN biblio AS b ON (bi.biblionumber=b.biblionumber) |
Lines 329-335
sub get_label_summary {
Link Here
|
329 |
# should not know that it's part of a web app |
329 |
# should not know that it's part of a web app |
330 |
$record->{'title'} = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' . $record->{'biblionumber'} . '"> ' . $record->{'title'} . '</a>'; |
330 |
$record->{'title'} = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' . $record->{'biblionumber'} . '"> ' . $record->{'title'} . '</a>'; |
331 |
$label_summary->{'_summary'} = $record->{'title'} . " | " . ($record->{'author'} ? $record->{'author'} : 'N/A'); |
331 |
$label_summary->{'_summary'} = $record->{'title'} . " | " . ($record->{'author'} ? $record->{'author'} : 'N/A'); |
332 |
$label_summary->{'_item_type'} = $record->{'itemtype'}; |
332 |
$label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'}; |
333 |
$label_summary->{'_barcode'} = $record->{'barcode'}; |
333 |
$label_summary->{'_barcode'} = $record->{'barcode'}; |
334 |
$label_summary->{'_item_number'} = $item->{'item_number'}; |
334 |
$label_summary->{'_item_number'} = $item->{'item_number'}; |
335 |
$label_summary->{'_label_id'} = $item->{'label_id'}; |
335 |
$label_summary->{'_label_id'} = $item->{'label_id'}; |
336 |
- |
|
|