示例#1
0
    if (count($_SESSION['marcexport']) < 1) {
        utility::jsAlert(__('There is no data to export!'));
    }
    // concat all ID together
    $item_ids = '';
    foreach ($_SESSION['marcexport'] as $id) {
        $item_ids .= '\'' . $id . '\',';
    }
    // strip the last comma
    $item_ids = substr_replace($item_ids, '', -1);
    // unset the session
    unset($_SESSION['marcexport']);
    header('Content-type: application/marc');
    header('Content-disposition: attachment; filename=slims-marc-export.mrc');
    $biblio = new Biblio($dbs, null);
    echo $biblio->marc_export($item_ids);
    // utility::jsAlert('Done..');
    exit;
}
?>

<fieldset class="menuBox">
<div class="menuBoxInner printIcon">
  <div class="per_title">
	  <h2><?php 
echo __('Export Catalog to Marc Format ');
?>
</h2>
  </div>
  <div class="sub_section">
	  <div class="btn-group">