rec = self._find_cached_record(results, rec_id)
if rec:
r.ctx.acq.record = rec
- #r.ctx.acq.record_html = oilsweb.lib.bib.marc_to_html(rec['marcxml'])
+ r.ctx.acq.record_html = oilsweb.lib.bib.marc_to_html(rec['marcxml'])
return r.render('acq/rdetails.html')
return 'exception -> no record'
def marc_to_html(marcxml):
# create a path building utility function ....
- xslFile = os.path.join(os.getcwd(), pylons.config['oils_xsl_prefix'], pylons.config['oils_xsl_marc2html'])
+ xslFile = os.path.join(pylons.config['oils_xsl_prefix'], pylons.config['oils_xsl_marc2html'])
html = oilsweb.lib.util.apply_xsl(marcxml, xslFile)
- # XXX encoding problems need resolving...
return html
def scrub_isbn(isbn):
.oils-base-sub-navigate-block { text-align: center; padding: 3px; margin-bottom: 10px;}
.oils-base-sub-navigate-block span { padding: 3px; }
-
+.label { margin: 1px; }
.oils-acq-record_list-records-author-row td { padding-left: 30px; }
.oils-acq-record_list-records-phys_desc-row td { padding-left: 30px; }
.oils-acq-record_list-records-phys_desc-row {}
-#oils-acq-rdetail-marc-block { margin-top: 10px; padding: 10px; }
+
+#oils-acq-rdetail-marc-block { margin-top: 0px; padding: 6px; }
+#oils-acq-rdetail-summary-block { margin-top: 0px; padding: 6px; }
#oils-acq-picklist-table { width: 100%; }
.oils-base-sub-navigate-block a { color: #000000; }
.oils-base-sub-navigate-block span:hover { background: #6BA160; }
+.label { font-weight: bold; }
#oils-acq-pl_builder-picklist-submit { text-align: right; }
-#oils-acq-rdetail-marc-block { border-top: 1px solid #808080; }
+#oils-acq-rdetail-marc-block { border: 1px solid #6BA160; }
+#oils-acq-rdetail-summary-block { border: 1px solid #6BA160; }
}
</style>
-
- <link href='/css/opac_marc.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
- <div><button onclick='window.print();'>Print Page</button></div>
<xsl:apply-templates/>
</body>
</html>
<%inherit file='base.html'/>
<%def name="block_title()">${_('Evergreen ACQ Details')}</%def>
<%def name="block_content()">
- <table>
- % for key,val in c.oils.acq.record['extracts'].iteritems():
- <tr>
- <td>${key}</td>
- <td>${val}</td>
- </tr>
- % endfor
- </table>
- <!--
+ <div class='label'>Summary</div>
+ <div id='oils-acq-rdetail-summary-block'>
+ <table>
+ % for key,val in c.oils.acq.record['extracts'].iteritems():
+ <tr>
+ <td>${key}</td>
+ <td>${val}</td>
+ </tr>
+ % endfor
+ </table>
+ </div>
+ <div class='label'>MARC Record</div>
<div id='oils-acq-rdetail-marc-block'>
- {c.oils.acq.record_html}
+ <div id='oils-acq-rdetail-marc'>
+ ${unicode(c.oils.acq.record_html, 'utf-8')}
+ </div>
</div>
- -->
</%def>