Lines 63-68
use Koha::Items;
Link Here
|
63 |
use Koha::ItemTypes; |
63 |
use Koha::ItemTypes; |
64 |
use Koha::Patrons; |
64 |
use Koha::Patrons; |
65 |
use Koha::RecordProcessor; |
65 |
use Koha::RecordProcessor; |
|
|
66 |
use Koha::DateUtils; |
66 |
|
67 |
|
67 |
my $query = CGI->new(); |
68 |
my $query = CGI->new(); |
68 |
|
69 |
|
Lines 290-295
foreach my $field (@fields) {
Link Here
|
290 |
my $sf_def = $tagslib->{ $field->tag() }->{ $subf[$i][0] }; |
291 |
my $sf_def = $tagslib->{ $field->tag() }->{ $subf[$i][0] }; |
291 |
next if ( ($sf_def->{tab}||0) != 10 ); |
292 |
next if ( ($sf_def->{tab}||0) != 10 ); |
292 |
next if ( ($sf_def->{hidden}||0) > 0 ); |
293 |
next if ( ($sf_def->{hidden}||0) > 0 ); |
|
|
294 |
|
293 |
push @item_subfield_codes, $subf[$i][0]; |
295 |
push @item_subfield_codes, $subf[$i][0]; |
294 |
$witness{ $subf[$i][0] } = $sf_def->{lib}; |
296 |
$witness{ $subf[$i][0] } = $sf_def->{lib}; |
295 |
|
297 |
|
Lines 310-315
foreach my $field (@fields) {
Link Here
|
310 |
$item->{ $subf[$i][0] } .= GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], |
312 |
$item->{ $subf[$i][0] } .= GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], |
311 |
$subf[$i][1], '', $tagslib, '', 'opac' ); |
313 |
$subf[$i][1], '', $tagslib, '', 'opac' ); |
312 |
} |
314 |
} |
|
|
315 |
|
316 |
if ( $subf[$i][0] eq 'd' || $subf[$i][0] eq 'q' || $subf[$i][0] eq 'r' || $subf[$i][0] eq 's' || $subf[$i][0] eq 'w' ){ |
317 |
# date accessioned || on loan || date last seen || date last borrowed || replacement price date |
318 |
$item->{$subf[$i][0]} = output_pref({ dt => dt_from_string( $item->{$subf[$i][0]} ), dateonly => 1 });; |
319 |
} |
313 |
} |
320 |
} |
314 |
push @item_loop, $item if $item; |
321 |
push @item_loop, $item if $item; |
315 |
} |
322 |
} |
316 |
- |
|
|