2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Brief Bib Display -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window PUBLIC "" ""[
14 <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <window id="cat_bib_brief_win"
23 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27 <script type="text/javascript">
28 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
30 <scripts id="openils_util_scripts"/>
32 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
37 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
38 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
39 JSAN.errorLevel = "die"; // none, warn, or die
40 JSAN.addRepository('/xul/server/');
41 JSAN.use('util.error'); g.error = new util.error();
42 g.error.sdump('D_TRACE','my_init() for cat_bib_brief.xul');
45 var docid = g.cgi.param('docid');
47 JSAN.use('util.network'); g.network = new util.network();
48 JSAN.use('util.date');
51 api.MODS_SLIM_RECORD_RETRIEVE.app,
52 api.MODS_SLIM_RECORD_RETRIEVE.method,
55 var mods = req.getResultObject();
57 if (mods.title()) document.getElementById('title').appendChild(
58 document.createTextNode(mods.title())
60 if (mods.author()) document.getElementById('author').appendChild(
61 document.createTextNode(mods.author())
63 if (mods.edition()) document.getElementById('edition').appendChild(
64 document.createTextNode(mods.edition())
66 if (mods.pubdate()) document.getElementById('pubdate').appendChild(
67 document.createTextNode(mods.pubdate())
69 if (mods.tcn()) document.getElementById('tcn').appendChild(
70 document.createTextNode(mods.tcn())
73 if (window.xulG && typeof window.xulG.set_tab_name == 'function') {
75 window.xulG.set_tab_name(mods.tcn());
77 g.error.sdump('D_ERROR','bib_brief.xul, set_tab: ' + E);
82 api.FM_BRE_RETRIEVE_VIA_ID.app,
83 api.FM_BRE_RETRIEVE_VIA_ID.method,
86 var meta = req.getResultObject()[0];
87 document.getElementById('creator').appendChild(
88 document.createTextNode(meta.creator())
90 document.getElementById('editor').appendChild(
91 document.createTextNode(meta.editor())
93 document.getElementById('edit_date').appendChild(
94 document.createTextNode(
95 util.date.formatted_date(meta.edit_date(),"%D")
107 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
108 "system administrator or software developer the following:\ncat/bib_brief.xul\n" + E + '\n';
109 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
118 <caption label="Record Details"/>
119 <label style="font-weight: bold;" value="Title:"/><description id="title" />
120 <label style="font-weight: bold;" value="Author:"/><description id="author" />
121 <label style="font-weight: bold;" value="Edition:"/><description id="edition" />
122 <label style="font-weight: bold;" value="Pub Date:"/><description id="pubdate" />
123 <label style="font-weight: bold;" value="TCN:"/><description id="tcn" /></hbox>
124 <label style="font-weight: bold;" value="Created By:"/><description id="creator" />
125 <label style="font-weight: bold;" value="Last Edited By:"/><description id="editor" />
126 <label style="font-weight: bold;" value="Last Edited On:"/><description id="edit_date" />