/** * Reharvest Bib record from ILS and redirect to the record page. * * @access public * @return void */ function sopac_bib_record_reharvest($bnum = NULL) { error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', 1); require_once '/usr/local/lib/locum/locum-server.php'; $locum = new locum_server(); $actions = sopac_parse_uri(); if (!$bnum) { $actions = sopac_parse_uri(); $bnum = $actions[1]; } $reharvest = $locum->import_bibs($bnum, $bnum); $path = variable_get('sopac_url_prefix', 'cat/seek') . '/record/' . $bnum; drupal_goto($path); }