Show format icons in results and record detail pages
[evergreen-equinox.git] / Open-ILS / web / templates / default / opac / parts / marc_misc.tt2
index 8f56196..8c1c4a7 100644 (file)
@@ -26,8 +26,8 @@
         # KCLS-specific stuff; needs to change
         args.mattype = xml.findnodes('//*[@tag="998"]/*[@code="d"]').textContent;
         args.kcls_cn = xml.findnodes('//*[@tag="092" or @tag="099"]/*').textContent;
-        mattype = attrs.mattype;
+        mattype = args.mattype;
         args.format = ctx.find_citm(mattype).value;
-        args.format_icon = icon_by_mattype.$mattype;
+        args.format_icon = icon_by_format.$mattype;
     END;
 %]