Skip to content
Snippets Groups Projects

Hotline master

Merged Patrick Barroca requested to merge hotline-master into master
Compare and
+ 148
125
Preferences
Compare changes
Files
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; 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_VSmart_BorrowerReader {
@@ -27,7 +27,7 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
protected $_sigb_service;
protected $_xml_parser;
protected $_current_exemplaire_operation;
/**
*
@@ -110,11 +110,17 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
}
public function endReservation() {
$this->_current_exemplaire_operation = null;
}
/**
* @param string $data
*/
public function endLoan($data) {
$this->_emprunteur->empruntsAdd($this->_current_exemplaire_operation);
$this->_current_exemplaire_operation = null;
}
@@ -130,7 +136,8 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
* @param string $data
*/
public function endTitle($data) {
$this->_current_exemplaire_operation->getExemplaire()->setTitre($data);
if ($this->_current_exemplaire_operation)
$this->_current_exemplaire_operation->getExemplaire()->setTitre($data);
}
@@ -138,7 +145,8 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
* @param string $data
*/
public function endDueDate($data) {
$this->_current_exemplaire_operation->setDateRetour($data);
if ($this->_current_exemplaire_operation)
$this->_current_exemplaire_operation->setDateRetour($data);
}
@@ -146,10 +154,11 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
* @param string $data
*/
public function endItemBarcode($data) {
$this->_current_exemplaire_operation->setId($data)
->getExemplaire()
->setId($data)
->setCodeBarre($data);
if ($this->_current_exemplaire_operation)
$this->_current_exemplaire_operation->setId($data)
->getExemplaire()
->setId($data)
->setCodeBarre($data);
}
@@ -157,7 +166,8 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
* @param string $data
*/
public function endPlaceInQueue($data) {
$this->_current_exemplaire_operation->setRang($data);
if ($this->_current_exemplaire_operation)
$this->_current_exemplaire_operation->setRang($data);
}
@@ -165,7 +175,8 @@ class Class_WebService_SIGB_VSmart_BorrowerReader {
* @param string $data
*/
public function endReservationNumber($data) {
$this->_current_exemplaire_operation->setId($data);
if ($this->_current_exemplaire_operation)
$this->_current_exemplaire_operation->setId($data);
}