Lines 205-213
foreach my $item (@items) {
Link Here
|
205 |
$item->{imageurl} = defined $item->{itype} ? getitemtypeimagelocation('intranet', $itemtypes->{ $item->{itype} }{imageurl}) |
205 |
$item->{imageurl} = defined $item->{itype} ? getitemtypeimagelocation('intranet', $itemtypes->{ $item->{itype} }{imageurl}) |
206 |
: ''; |
206 |
: ''; |
207 |
|
207 |
|
208 |
foreach (qw(datelastseen onloan)) { |
|
|
209 |
$item->{$_} = output_pref({ dt => dt_from_string( $item->{$_} ), dateonly => 1 }); |
210 |
} |
211 |
$item->{datedue} = format_sqldatetime($item->{datedue}); |
208 |
$item->{datedue} = format_sqldatetime($item->{datedue}); |
212 |
# item damaged, lost, withdrawn loops |
209 |
# item damaged, lost, withdrawn loops |
213 |
$item->{itemlostloop} = GetAuthorisedValues($authvalcode_items_itemlost, $item->{itemlost}) if $authvalcode_items_itemlost; |
210 |
$item->{itemlostloop} = GetAuthorisedValues($authvalcode_items_itemlost, $item->{itemlost}) if $authvalcode_items_itemlost; |
Lines 236-242
foreach my $item (@items) {
Link Here
|
236 |
|
233 |
|
237 |
if ( defined $reservedate ) { |
234 |
if ( defined $reservedate ) { |
238 |
$item->{backgroundcolor} = 'reserved'; |
235 |
$item->{backgroundcolor} = 'reserved'; |
239 |
$item->{reservedate} = output_pref({ dt => dt_from_string($reservedate ), dateonly => 1 }); |
236 |
$item->{reservedate} = $reservedate; |
240 |
$item->{ReservedForBorrowernumber} = $reservedfor; |
237 |
$item->{ReservedForBorrowernumber} = $reservedfor; |
241 |
$item->{ReservedForSurname} = $ItemBorrowerReserveInfo->{'surname'}; |
238 |
$item->{ReservedForSurname} = $ItemBorrowerReserveInfo->{'surname'}; |
242 |
$item->{ReservedForFirstname} = $ItemBorrowerReserveInfo->{'firstname'}; |
239 |
$item->{ReservedForFirstname} = $ItemBorrowerReserveInfo->{'firstname'}; |
Lines 250-256
foreach my $item (@items) {
Link Here
|
250 |
# Check the transit status |
247 |
# Check the transit status |
251 |
my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber}); |
248 |
my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber}); |
252 |
if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) { |
249 |
if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) { |
253 |
$item->{transfertwhen} = output_pref({ dt => dt_from_string($transfertwhen ), dateonly => 1 }); |
250 |
$item->{transfertwhen} = $transfertwhen; |
254 |
$item->{transfertfrom} = $branches->{$transfertfrom}{branchname}; |
251 |
$item->{transfertfrom} = $branches->{$transfertfrom}{branchname}; |
255 |
$item->{transfertto} = $branches->{$transfertto}{branchname}; |
252 |
$item->{transfertto} = $branches->{$transfertto}{branchname}; |
256 |
$item->{nocancel} = 1; |
253 |
$item->{nocancel} = 1; |