[OPEN-ILS-DEV] ***SPAM*** bibTemplate
Grant Johnson
fgjohnson at upei.ca
Fri Apr 23 22:13:22 EDT 2010
Hey...
I have Bibtemplates working on my live server...
Do you think I can make it work in test?
Tried both of these methods... I get the "Subjects" label but no
data...
How come.
There is data in 650.
Thanks.
<tr>
<td nowrap='nowrap'
class='rdetail_desc'>&rdetail.summary.subjects;</td>
<!--
<td type='opac/slot-data' query='datafield[tag=650]'
class='rdetail_item'>
<script type='opac/slot-format'><![CDATA[
var cgi = new CGI();
var other_params = [ 'd', 'l', 'r', 'av', 's',
'sd' ];
var total = '';
var output = [];
var list = dojo.query( 'subfield', item );
for (var i =0; i < list.length; i++) {
total +=
dojox.data.dom.textContent(list[i]) + ' ';
var current = '<a
href="rresult.xml?rt=subject&t=' + total;
for (var p in other_params) {
if (cgi.param(other_params[p]))
current += '&' + other_params[p] +
'=' + cgi.param(other_params[p]);
}
current += '">' +
dojox.data.dom.textContent(list[i]) + '</a>'
output.push(current);
}
return '<span>' + output.join(' -- ')
+ '</span><br/>';
]]></script>
-->
<td class='rdetail_item'> <span type='opac/slot-data'
query='datafield[tag=650]'>
<script type='opac/slot-format'><![CDATA[
var cgi = new CGI();
var other_params = [ 'd', 'l', 'r', 'av', 's',
'sd' ];
var total = '';
var output = [];
var list = dojo.query( 'subfield', item );
for (var i =0; i < list.length; i++) {
total +=
dojox.data.dom.textContent(list[i]) + ' ';
var current = '<a
href="rresult.xml?rt=subject&t=' + total;
for (var p in other_params) {
if (cgi.param(other_params[p]))
current += '&' + other_params[p] +
'=' + cgi.param(other_params[p]);
}
current += '">' +
dojox.data.dom.textContent(list[i]) + '</a>'
output.push(current);
}
return '<span>' + output.join(' -- ')
+ '</span><br/>';
]]></script></span>
</td>
</tr>
F. Grant Johnson
Systems Coordinator
309 Robertson Library
University of Prince Edward Island
902-566-0630(w), 902-393-4920(c)
More information about the Open-ils-dev
mailing list