Bug 21518: Material type "three-dimensional artifact" displays as "visual material"
This patch makes a few corrections to the staff client MARC21 XSLT so that the correct material type icons are displayed for pictures and realia. The more-specific material type handling has been adapted from the corresponding XSL files in the OPAC. To test you must have default XSLT enabled and the DisplayIconsXSLT and DisplayOPACiconsXSLT system preferences enabled. - Apply the patch and locate records with "type of record" specified in the leader as 'g', 'k', and 'r'. A sample MARC file will be attached to the bug report with one of each type of record. Import the records and search your catalog for "Bug_21518." - View the records in search results and their detail pages, both in the OPAC and the staff client. In all cases the correct material type icon should be displayed. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
0c4112a200
commit
88ff22bb5a
7 changed files with 12 additions and 5 deletions
|
@ -61,8 +61,11 @@
|
|||
<xsl:when test="$leader6='o' or $leader6='p'">MX</xsl:when>
|
||||
<xsl:when test="$leader6='m'">CF</xsl:when>
|
||||
<xsl:when test="$leader6='e' or $leader6='f'">MP</xsl:when>
|
||||
<xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'">VM</xsl:when>
|
||||
<xsl:when test="$leader6='i' or $leader6='j'">MU</xsl:when>
|
||||
<xsl:when test="$leader6='g'">VM</xsl:when>
|
||||
<xsl:when test="$leader6='k'">PK</xsl:when>
|
||||
<xsl:when test="$leader6='r'">OB</xsl:when>
|
||||
<xsl:when test="$leader6='i'">SO</xsl:when>
|
||||
<xsl:when test="$leader6='j'">MU</xsl:when>
|
||||
<xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
@ -82,11 +85,13 @@
|
|||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$leader6='t'">Book</xsl:when>
|
||||
<xsl:when test="$leader6='o'">Kit</xsl:when>
|
||||
<xsl:when test="$leader6='o'">Kit</xsl:when>
|
||||
<xsl:when test="$leader6='p'">Mixed materials</xsl:when>
|
||||
<xsl:when test="$leader6='m'">Computer file</xsl:when>
|
||||
<xsl:when test="$leader6='e' or $leader6='f'">Map</xsl:when>
|
||||
<xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'">Visual material</xsl:when>
|
||||
<xsl:when test="$leader6='g'">Film</xsl:when>
|
||||
<xsl:when test="$leader6='k'">Picture</xsl:when>
|
||||
<xsl:when test="$leader6='r'">Object</xsl:when>
|
||||
<xsl:when test="$leader6='j'">Music</xsl:when>
|
||||
<xsl:when test="$leader6='i'">Sound</xsl:when>
|
||||
<xsl:when test="$leader6='c' or $leader6='d'">Score</xsl:when>
|
||||
|
|
|
@ -503,7 +503,9 @@
|
|||
<xsl:when test="$leader6='p'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/report_disk.png" alt="mixed materials" title="mixed materials" class="materialtype mt_icon_MX"/>Mixed materials</xsl:when>
|
||||
<xsl:when test="$leader6='m'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/computer_link.png" alt="computer file" title="computer file" class="materialtype mt_icon_CF"/> Computer file</xsl:when>
|
||||
<xsl:when test="$leader6='e' or $leader6='f'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/map.png" alt="map" title="map" class="materialtype mt_icon_MP"/> Map</xsl:when>
|
||||
<xsl:when test="$leader6='g' or $leader6='k' or $leader6='r'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/film.png" alt="visual material" title="visual material" class="materialtype mt_icon_VM"/> Visual material</xsl:when>
|
||||
<xsl:when test="$leader6='g'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/film.png" alt="Film" class="materialtype mt_icon_VM"/> Film</xsl:when>
|
||||
<xsl:when test="$leader6='k'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/picture.png" alt="Picture" class="materialtype mt_icon_GR"/> Picture</xsl:when>
|
||||
<xsl:when test="$leader6='r'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/object.png" alt="Object" title="Object" class="materialtype mt_icon_OB"/> Object</xsl:when>
|
||||
<xsl:when test="$leader6='c' or $leader6='d'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/music.png" alt="score" title="score" class="materialtype mt_icon_PR"/> Score</xsl:when>
|
||||
<xsl:when test="$leader6='i'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="sound" title="sound" class="materialtype mt_icon_MU"/> Sound</xsl:when>
|
||||
<xsl:when test="$leader6='j'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="music" title="music" class="materialtype mt_icon_MU"/> Music</xsl:when>
|
||||
|
|
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png
Normal file
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 825 B |
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png
Normal file
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 606 B |
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/object.png
Normal file
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/object.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 825 B |
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/picture.png
Normal file
BIN
koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/picture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 606 B |
BIN
koha-tmpl/opac-tmpl/lib/famfamfam/PK.png
Normal file
BIN
koha-tmpl/opac-tmpl/lib/famfamfam/PK.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 606 B |
Loading…
Reference in a new issue