Lines 345-352
sub get_label_summary {
Link Here
|
345 |
$record->{'title'} =~ s/\W*$//; # strip off ugly trailing chars |
345 |
$record->{'title'} =~ s/\W*$//; # strip off ugly trailing chars |
346 |
# FIXME contructing staff interface URLs should be done *much* higher up the stack - for the most part, C4 module code |
346 |
# FIXME contructing staff interface URLs should be done *much* higher up the stack - for the most part, C4 module code |
347 |
# should not know that it's part of a web app |
347 |
# should not know that it's part of a web app |
348 |
$record->{'title'} = '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' . $record->{'biblionumber'} . '"> ' . $record->{'title'} . '</a>'; |
348 |
$label_summary->{'_summary'} = { title => $record->{title}, author => $record->{author}, biblionumber => $record->{biblionumber} }; |
349 |
$label_summary->{'_summary'} = $record->{'title'} . " | " . ($record->{'author'} ? $record->{'author'} : 'N/A'); |
|
|
350 |
$label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'}; |
349 |
$label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'}; |
351 |
$label_summary->{'_barcode'} = $record->{'barcode'}; |
350 |
$label_summary->{'_barcode'} = $record->{'barcode'}; |
352 |
$label_summary->{'_item_number'} = $item->{'item_number'}; |
351 |
$label_summary->{'_item_number'} = $item->{'item_number'}; |