Lines 172-177
sub get_xslt_sysprefs {
Link Here
|
172 |
TrackClicks opacthemes IdRef OpacSuppression |
172 |
TrackClicks opacthemes IdRef OpacSuppression |
173 |
OPACResultsLibrary OPACShowOpenURL |
173 |
OPACResultsLibrary OPACShowOpenURL |
174 |
OpenURLResolverURL OpenURLImageLocation |
174 |
OpenURLResolverURL OpenURLImageLocation |
|
|
175 |
resultsMaxItems resultsMaxItemsUnavailable |
175 |
OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts / ) |
176 |
OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts / ) |
176 |
{ |
177 |
{ |
177 |
my $sp = C4::Context->preference( $syspref ); |
178 |
my $sp = C4::Context->preference( $syspref ); |
Lines 334-358
sub buildKohaItemsNamespace {
Link Here
|
334 |
my $substatus = ''; |
335 |
my $substatus = ''; |
335 |
|
336 |
|
336 |
if ($item->has_pending_hold) { |
337 |
if ($item->has_pending_hold) { |
337 |
$status = 'Pending hold'; |
338 |
$status = 'other'; |
|
|
339 |
$substatus = 'Pending hold'; |
338 |
} |
340 |
} |
339 |
elsif ( $item->holds->waiting->count ) { |
341 |
elsif ( $item->holds->waiting->count ) { |
340 |
$status = 'Waiting'; |
342 |
$status = 'other'; |
|
|
343 |
$substatus = 'Waiting'; |
341 |
} |
344 |
} |
342 |
elsif ($item->get_transfer) { |
345 |
elsif ($item->get_transfer) { |
343 |
$status = 'In transit'; |
346 |
$status = 'other'; |
|
|
347 |
$substatus = 'In transit'; |
344 |
} |
348 |
} |
345 |
elsif ($item->damaged) { |
349 |
elsif ($item->damaged) { |
346 |
$status = "Damaged"; |
350 |
$status = 'other'; |
|
|
351 |
$substatus = "Damaged"; |
347 |
} |
352 |
} |
348 |
elsif ($item->itemlost) { |
353 |
elsif ($item->itemlost) { |
349 |
$status = "Lost"; |
354 |
$status = 'other'; |
|
|
355 |
$substatus = "Lost"; |
350 |
} |
356 |
} |
351 |
elsif ( $item->withdrawn) { |
357 |
elsif ( $item->withdrawn) { |
352 |
$status = "Withdrawn"; |
358 |
$status = 'other'; |
|
|
359 |
$substatus = "Withdrawn"; |
353 |
} |
360 |
} |
354 |
elsif ($item->onloan) { |
361 |
elsif ($item->onloan) { |
355 |
$status = "Checked out"; |
362 |
$status = 'other'; |
|
|
363 |
$substatus = "Checked out"; |
356 |
} |
364 |
} |
357 |
elsif ( $item->notforloan ) { |
365 |
elsif ( $item->notforloan ) { |
358 |
$status = $item->notforloan =~ /^($ref_status)$/ |
366 |
$status = $item->notforloan =~ /^($ref_status)$/ |
Lines 374-379
sub buildKohaItemsNamespace {
Link Here
|
374 |
} |
382 |
} |
375 |
my $homebranch = xml_escape($branches{$item->homebranch}); |
383 |
my $homebranch = xml_escape($branches{$item->homebranch}); |
376 |
my $holdingbranch = xml_escape($branches{$item->holdingbranch}); |
384 |
my $holdingbranch = xml_escape($branches{$item->holdingbranch}); |
|
|
385 |
my $resultbranch = C4::Context->preference('OPACResultsLibrary') eq 'homebranch' ? $homebranch : $holdingbranch; |
377 |
my $location = xml_escape($item->location && exists $shelflocations->{$item->location} ? $shelflocations->{$item->location} : $item->location); |
386 |
my $location = xml_escape($item->location && exists $shelflocations->{$item->location} ? $shelflocations->{$item->location} : $item->location); |
378 |
my $ccode = xml_escape($item->ccode && exists $ccodes->{$item->ccode} ? $ccodes->{$item->ccode} : $item->ccode); |
387 |
my $ccode = xml_escape($item->ccode && exists $ccodes->{$item->ccode} ? $ccodes->{$item->ccode} : $item->ccode); |
379 |
my $itemcallnumber = xml_escape($item->itemcallnumber); |
388 |
my $itemcallnumber = xml_escape($item->itemcallnumber); |
Lines 382-387
sub buildKohaItemsNamespace {
Link Here
|
382 |
"<item>" |
391 |
"<item>" |
383 |
. "<homebranch>$homebranch</homebranch>" |
392 |
. "<homebranch>$homebranch</homebranch>" |
384 |
. "<holdingbranch>$holdingbranch</holdingbranch>" |
393 |
. "<holdingbranch>$holdingbranch</holdingbranch>" |
|
|
394 |
. "<resultbranch>$resultbranch</resultbranch>" |
385 |
. "<location>$location</location>" |
395 |
. "<location>$location</location>" |
386 |
. "<ccode>$ccode</ccode>" |
396 |
. "<ccode>$ccode</ccode>" |
387 |
. "<status>".( $status // q{} )."</status>" |
397 |
. "<status>".( $status // q{} )."</status>" |
388 |
- |
|
|