Skip to content
Snippets Groups Projects
Commit 9afb4627 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #15713 fix booking code for "plaine centrale" 06ENFRG to 06ENFFRG

parent e2fd7a4d
Branches
Tags
2 merge requests!393Master,!392Hotline 6.51
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_WebService_SIGB_Dynix_TitleInfoResponseReader extends Class_WebService_SIGB_AbstractXMLNoticeReader {
......@@ -125,7 +125,7 @@ class Class_WebService_SIGB_Dynix_TitleInfoResponseReader extends Class_WebServi
'Z1ERREURS1',
'Z1ERREURS2',
'Z2ERREURS',
'01AREVUES',
'01AREVUES',
'01AREVURES',
'01JREVUES',
'02AREVUES',
......@@ -167,23 +167,23 @@ class Class_WebService_SIGB_Dynix_TitleInfoResponseReader extends Class_WebServi
'11JREVUES',
'12REV',
// rel #14499
'03ANIM',
'04ANIM',
'06CRANIM',
'06CRREVUES',
'06DOCANIM',
'06DOCREV',
'06ENFANIM',
'06ENFRJ',
'06ENFREVUE',
'06KIOANIM',
'06KIOREV',
'06MEZABBAY',
'06MEZANIM',
'06MEZREVUE',
'06PRODOC',
'06RESCONS',
'06RESREV',
'03ANIM',
'04ANIM',
'06CRANIM',
'06CRREVUES',
'06DOCANIM',
'06DOCREV',
'06ENFANIM',
'06ENFFRJ',
'06ENFREVUE',
'06KIOANIM',
'06KIOREV',
'06MEZABBAY',
'06MEZANIM',
'06MEZREVUE',
'06PRODOC',
'06RESCONS',
'06RESREV',
'07ANIM'];
protected $_unvisible_code_dispo = [
......@@ -204,7 +204,7 @@ class Class_WebService_SIGB_Dynix_TitleInfoResponseReader extends Class_WebServi
$this->_current_exemplaire = (new Class_WebService_SIGB_Exemplaire($content))
->setCodeBarre($content)
->setReservable($this->_is_reservable);
$this->_notice->addExemplaire($this->_current_exemplaire);
}
......@@ -217,14 +217,14 @@ class Class_WebService_SIGB_Dynix_TitleInfoResponseReader extends Class_WebServi
public function endCurrentLocationID($data) {
if (isset($this->_code_disponibilite[$data]))
$this->_current_exemplaire->setDisponibilite($this->_code_disponibilite[$data]);
$this->_current_exemplaire->setVisibleOpac(!in_array($data,$this->_unvisible_code_dispo));
$this->_current_location_id = $data;
}
public function endHomeLocationId($data) {
if (!array_key_exists($this->_current_location_id, $this->_code_disponibilite)
if (!array_key_exists($this->_current_location_id, $this->_code_disponibilite)
&& $this->_current_location_id == $data) {
$this->_current_exemplaire->setDisponibiliteLibre();
$this->_current_exemplaire->setReservable(true);
......
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