Skip to content
Snippets Groups Projects
Commit 383d4c0a authored by Alex Arnaud's avatar Alex Arnaud
Browse files

dev #13872 orphee add missing file

parent 462b680d
Branches
Tags
2 merge requests!290Dev/13872 Orphee Allow Hold Available Items,!267Dev/13872 Orphee Allow Hold Available Items
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
* AFI-OPAC 2.0 is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* AFI-OPAC 2.0 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* 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
*/
class Class_WebService_SIGB_Orphee_Exemplaire extends Class_WebService_SIGB_Exemplaire {
CONST DISPO_LIBRE = 'En rayon';
protected $_allow_hold_available_items;
public function __construct($id, $allow_hold_available_items=null) {
parent::__construct($id);
$this->_allow_hold_available_items = $allow_hold_available_items;
}
public function isReservable() {
return (
parent::isReservable()
|| ( $this->isDisponible() && $this->_allow_hold_available_items )
);
}
public function isDisponible() {
return self::DISPO_LIBRE == $this->disponibilite;
}
}
\ No newline at end of file
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