Advertisement
smaction

Universe

Feb 1st, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1.  /**
  2.          * With the new 11.5 update, we will pass details about the patron and what format should be used when
  3.          * posting it to the LMS.  If provided, we will utilize all of the configurable options within the config
  4.          * object provided with the API request.
  5.          */
  6.         if (isset($this->_config->lms_uses115) && isset($this->_config->patron_property_id) && isset($_GET['mychoice_card_number'])) {
  7.             if ($this->_config->lms_uses115 == 1) {
  8.                 $mychoice_card_number = Users_Model::buildPatron115($this->_config->patron_property_id, $_GET['mychoice_card_number']);
  9.             } else {
  10.                 $mychoice_card_number = ($this->_config->patron_property_id == $this->propertyId) ? $_GET['mychoice_card_number'] : null;
  11.             }
  12.         }
  13.  
  14.         // To remain backwards compatiable, we will do the old condition on the GET parameter if it's provided.
  15.         else {
  16.             $mychoice_card_number = (isset($_GET['mychoice_card_number'])) ? $_GET['mychoice_card_number'] : null;
  17.         }
  18.  
  19.         // use custom link provided by request from client
  20.         if (!empty($this->_config->lms_book)) {
  21.             $lansaUrl = str_replace('$account_number', $mychoice_card_number, $this->lansa_url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement