args.author = xml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent;
args.publisher = xml.findnodes('//*[@tag="260"]/*[@code="b"]').textContent;
args.pubdate = xml.findnodes('//*[@tag="260"]/*[@code="c"]').textContent;
+ args.mattype = xml.findnodes('//*[@tag="998"]/*[@code="d"]').textContent; # XXX this is KCLS-specific and will need to change
# clean up the ISBN
args.isbn_clean = args.isbn.replace('\ .*', '');
<tr>
<td>[% attrs.title %]</td>
<td>[% attrs.author %]</td>
- <td>[% hold.hold.hold.holdable_formats %]<!-- see _myOPACFleshHoldTitle(), search for "mods_formats" in skin/default/js/myopac.js; holdable_formats is wrong --></td>
+ <td>
+ [% format_desc = ctx.find_citm(attrs.mattype).value; %]<!-- XXX in situations where we might show M-type holds, this won't be good enough -->
+ <img alt="[% format_desc %]" title="[% format_desc %]"
+ src="[% ctx.icon_by_mattype(attrs.mattype) %]" />
+ </td>
<td>[% ctx.find_aou(hold.hold.hold.pickup_lib).name %]</td>
<td>[% hold.hold.hold.status %]<!-- see myOShowHoldStatus() in skin/default/js/myopac.js --></td>
<td>[% IF hold.hold.hold.frozen == 't' %] No [% ELSE %] Yes [% END %]</td>