Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * With the new 11.5 update, we will pass details about the patron and what format should be used when
- * posting it to the LMS. If provided, we will utilize all of the configurable options within the config
- * object provided with the API request.
- */
- if (isset($this->_config->lms_uses115) && isset($this->_config->patron_property_id) && isset($_GET['mychoice_card_number'])) {
- if ($this->_config->lms_uses115 == 1) {
- $mychoice_card_number = Users_Model::buildPatron115($this->_config->patron_property_id, $_GET['mychoice_card_number']);
- } else {
- $mychoice_card_number = ($this->_config->patron_property_id == $this->propertyId) ? $_GET['mychoice_card_number'] : null;
- }
- }
- // To remain backwards compatiable, we will do the old condition on the GET parameter if it's provided.
- else {
- $mychoice_card_number = (isset($_GET['mychoice_card_number'])) ? $_GET['mychoice_card_number'] : null;
- }
- // use custom link provided by request from client
- if (!empty($this->_config->lms_book)) {
- $lansaUrl = str_replace('$account_number', $mychoice_card_number, $this->lansa_url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement