예제 #1
0
 function GetGoDeeperData()
 {
     require_once ROOT_DIR . '/Drivers/marmot_inc/GoDeeperData.php';
     $dataType = $_REQUEST['dataType'];
     $upc = $_REQUEST['upc'];
     $isbn = $_REQUEST['isbn'];
     $formattedData = GoDeeperData::getHtmlData($dataType, 'eContentRecord', $isbn, $upc);
     return $formattedData;
 }
예제 #2
0
 function launch()
 {
     global $interface;
     $id = $_REQUEST['id'];
     $eContentRecord = new EContentRecord();
     $eContentRecord->id = $id;
     $eContentRecord->find(true);
     $goDeeperOptions = GoDeeperData::getGoDeeperOptions($eContentRecord->getIsbn(), $eContentRecord->upc, true);
     $interface->assign('options', $goDeeperOptions['options']);
     if (isset($goDeeperOptions['defaultOption'])) {
         $defaultData = GoDeeperData::getHtmlData($goDeeperOptions['defaultOption'], 'eContentRecord', $eContentRecord->getIsbn(), $eContentRecord->upc);
         $interface->assign('defaultGoDeeperData', $defaultData);
     }
     $interface->assign('title', translate("Additional information about this title"));
     echo $interface->fetch('Record/goDeeper.tpl');
 }
예제 #3
0
 function launch()
 {
     global $interface;
     $goDeeperOptions = GoDeeperData::getGoDeeperOptions($this->isbn, $this->upc, true);
     $interface->assign('options', $goDeeperOptions['options']);
     if (isset($goDeeperOptions['defaultOption'])) {
         $defaultData = GoDeeperData::getHtmlData($goDeeperOptions['defaultOption'], 'Record', $this->isbn, $this->upc);
         $interface->assign('defaultGoDeeperData', $defaultData);
     }
     if (isset($_GET['lightbox'])) {
         $interface->assign('title', translate("Additional information about this title"));
         echo $interface->fetch('Record/goDeeper.tpl');
     } else {
         $interface->setPageTitle(translate('Go Deeper'));
         $interface->assign('subTemplate', 'goDeeper.tpl');
         $interface->setTemplate('view.tpl');
     }
 }
예제 #4
0
 function getGoDeeperData()
 {
     require_once ROOT_DIR . '/services/Record/Enrichment.php';
     $record = $this->loadSolrRecord($_GET['id']);
     $type = $_GET['type'];
     $isbn = isset($record['isbn']) ? ISBN::normalizeISBN($record['isbn'][0]) : null;
     $upc = isset($record['upc']) ? $record['upc'][0] : null;
     //Load go deeper data
     require_once ROOT_DIR . '/Drivers/marmot_inc/GoDeeperData.php';
     $goDeeperOptions = GoDeeperData::getHtmlData($type, 'vufind', $isbn, $upc);
     return $goDeeperOptions;
 }
예제 #5
0
 function getGoDeeperData()
 {
     require_once ROOT_DIR . '/Drivers/marmot_inc/GoDeeperData.php';
     $dataType = $_REQUEST['dataType'];
     require_once ROOT_DIR . '/RecordDrivers/GroupedWorkDriver.php';
     $id = $_REQUEST['id'];
     $recordDriver = new GroupedWorkDriver($id);
     $upc = $recordDriver->getCleanUPC();
     $isbn = $recordDriver->getCleanISBN();
     $formattedData = GoDeeperData::getHtmlData($dataType, 'GroupedWork', $isbn, $upc);
     $return = array('formattedData' => $formattedData);
     return json_encode($return);
 }