Bug 9873 - Quiet errors in the log from XSLT.pm
If XSLTResultsDisplay is enabled and items in your search results lack a shelving location or a ccode errors will appear in the log complaining of "uninitialized value in hash element." This patch adds a check on these values to quiet the errors. To test, find or create a record with items which have no shelving location and/or no collection code. Perform a search the results for which will include your record. Check for errors in the log. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Cleans up logs for result list quite a bit. Passes all tests and QA script. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
33d55a9189
commit
bf4337fa38
1 changed files with 2 additions and 2 deletions
|
@ -279,8 +279,8 @@ sub buildKohaItemsNamespace {
|
|||
$status = "available";
|
||||
}
|
||||
my $homebranch = $item->{homebranch}? xml_escape($branches->{$item->{homebranch}}->{'branchname'}):'';
|
||||
$location = xml_escape($shelflocations->{$item->{location}});
|
||||
$ccode = xml_escape($ccodes->{$item->{ccode}});
|
||||
$location = $item->{location}? xml_escape($shelflocations->{$item->{location}}):'';
|
||||
$ccode = $item->{ccode}? xml_escape($ccodes->{$item->{ccode}}):'';
|
||||
my $itemcallnumber = xml_escape($item->{itemcallnumber});
|
||||
$xml.= "<item><homebranch>$homebranch</homebranch>".
|
||||
"<location>$location</location>".
|
||||
|
|
Loading…
Reference in a new issue