Skip to content
Snippets Groups Projects
Commit a0204aef authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #33948 : fix RT

parent fe480fd8
6 merge requests!1553Master,!1502Master,!1501Stable,!1324Master,!1323Hotline master,!1320Hotline#33948 statut errone de la disponibilite des documents
...@@ -70,11 +70,13 @@ class Class_WebService_SIGB_Koha_GetRecordsResponseReader { ...@@ -70,11 +70,13 @@ class Class_WebService_SIGB_Koha_GetRecordsResponseReader {
if (false === ($doc = $this->_getReader()->read($xml))) if (false === ($doc = $this->_getReader()->read($xml)))
return $this->_record; return $this->_record;
if (!$record = $doc->record) if (!$this->_hasChild('record', $doc))
return $this->_record; return $this->_record;
if ($id = $record->biblioitemnumber) $record = $doc->record;
$this->_record->setId((string)$id);
if ($this->_hasChild('biblioitemnumber', $record))
$this->_record->setId((string)$record->biblioitemnumber);
foreach($record->reserves->reserve as $xml_hold) foreach($record->reserves->reserve as $xml_hold)
$this->_handleHold($xml_hold); $this->_handleHold($xml_hold);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment