<script type="text/javascript" src="/xul/server/main/JSAN.js"/>
<script>
<![CDATA[
+
+ var docid;
+
function my_init() {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
g.error.sdump('D_TRACE','my_init() for cat_bib_brief.xul');
g.cgi = new CGI();
- var docid = g.cgi.param('docid');
+ docid = g.cgi.param('docid');
JSAN.use('util.network'); g.network = new util.network();
JSAN.use('util.date');
}
}
+ function view_marc() {
+ JSAN.use('util.window'); var win = new util.window();
+ win.open( urls.XUL_MARC_VIEW + '?noprint=1&docid=' + docid, 'marc_view', 'chrome,resizable,modal,width=400,height=400');
+ }
+
]]>
</script>
<caption label="Record Summary" id="caption"/>
<html:table width="90%">
<html:tr valign="top">
- <html:td colspan="4">
+ <html:td colspan="3">
<html:span style="font-weight: bold;">Title: </html:span><html:span id="title" />
</html:td>
+ <html:td>
+ (<html:a href="javascript:view_marc();" style="text-decoration: underline; color: blue;">View MARC</html:a>)
+ </html:td>
</html:tr>
<html:tr valign="top">
<html:td colspan="2">
[ docid ],
function(req) {
marc_html = req.getResultObject();
- document.getElementById('marc_frame').setAttribute('src',
- 'data:text/html,' + marc_html);
+ if (g.cgi.param('noprint')||typeof xulG == 'undefined') marc_html = marc_html.replace(/<button.+?button>/, '');
+ document.getElementById('marc_frame').setAttribute('src', 'data:text/html,' + marc_html);
}
);