Bug 7208 - NORMARCslim2OPACDetail.xsl does not display item type icon
Summary: NORMARCslim2OPACDetail.xsl does not display item type icon
Status: RESOLVED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Magnus Enger
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 14:38 UTC by Magnus Enger
Modified: 2018-05-29 16:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2011-11-10 14:38:10 UTC
In NORMARCslim2OPACResults.xsl, this works: 

374 <xsl:when test="$typeOf008='Mon'"><img src="/opac-tmpl/prog/famfamfam/silk/book.png" alt="Bok" title="Bok"/> Bok</xsl:when>
375 <xsl:when test="$typeOf008='Per'"><img src="/opac-tmpl/prog/famfamfam/silk/newspaper.png" alt="Periodika" title="Periodika"/> Periodika</xsl:when>      
376 <xsl:when test="$typeOf008='Fil'"><img src="/opac-tmpl/prog/famfamfam/silk/computer_link.png" alt="Fil" title="Fil"/> Fil</xsl:when>
377 <xsl:when test="$typeOf008='Kar'"><img src="/opac-tmpl/prog/famfamfam/silk/map.png" alt="Kart" title="Kart"/> Kart</xsl:when>

But this, in NORMARCslim2OPACDetail.xsl, does not: 

147 <xsl:element name="img"><xsl:attribute name="src">/opac-tmpl/prog/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>

resulting in a 404 for the image.
Comment 1 Thatcher Rea 2012-02-21 20:22:42 UTC
This appears to also be a problem in MARC21 as well.

:TNR
Comment 2 Owen Leonard 2018-05-29 16:24:16 UTC
NORMARC bugs can now be considered obsolete. See Bug 18984.