From 89d12d3b48e77baebb14c8ed3cda1f25fd448742 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 31 Jul 2019 12:38:16 +0000 Subject: [PATCH] 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 --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 13 +++++++++---- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 4 +++- koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png | Bin 0 -> 825 bytes koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png | Bin 0 -> 606 bytes .../intranet-tmpl/prog/img/famfamfam/silk/object.png | Bin 0 -> 825 bytes .../intranet-tmpl/prog/img/famfamfam/silk/picture.png | Bin 0 -> 606 bytes koha-tmpl/opac-tmpl/lib/famfamfam/PK.png | Bin 0 -> 606 bytes 7 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/object.png create mode 100644 koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/picture.png create mode 100644 koha-tmpl/opac-tmpl/lib/famfamfam/PK.png diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index a9b1812eb5..2fe196d659 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -61,8 +61,11 @@ MX CF MP - VM - MU + VM + PK + OB + SO + MU PR @@ -82,11 +85,13 @@ Book - Kit + Kit Mixed materials Computer file Map - Visual material + Film + Picture + Object Music Sound Score diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 18dfb83e37..2ba9c1ff5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl @@ -503,7 +503,9 @@ mixed materialsMixed materials computer file Computer file map Map - visual material Visual material + Film Film + Picture Picture + Object Object score Score sound Sound music Music diff --git a/koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png b/koha-tmpl/intranet-tmpl/prog/img/famfamfam/OB.png new file mode 100644 index 0000000000000000000000000000000000000000..0905f933b87ab32f21098d7db8d603209730c753 GIT binary patch literal 825 zcmV-91IGM`P)wd|HNMlZ|>D)M67h? zOIjz3DJbk0=97q(mSBd~-ilc0Oupt^z$#N6O&at_s8u-PL@9M^gQuq(+UH^IB$&*DHP!HzH+vkEzC?S52tN1$mKhziPkOR=y$ zhl#aO1Xly_M?EkN>tM6E5T&Ht4dh{0oQr6Q1b3J=sM^ACOsvD=TSP81#0oTC1v|Df zgpp-GhL(KrE_8t&(jeFR1W%(osQ12tvSpHp_}~HR_8G{VUO;FILQv(P-b)es=)ZlJM#c>{Wx-rgY3D#Ol9rJl39A<60Xo5cneo(9g5a4q>ayzV-7%Ue2}0_ z&TIets{Cl`n(nefrZ+9F8|N&Kp}^StU2b+&pVj;XvgEdBL3Wlp00000NkvXXu0mjf DwZ3{L literal 0 HcmV?d00001 diff --git a/koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png b/koha-tmpl/intranet-tmpl/prog/img/famfamfam/PK.png new file mode 100644 index 0000000000000000000000000000000000000000..4a158fef7e0da8fd19525f574f2c4966443866cf GIT binary patch literal 606 zcmV-k0-^nhP)Q2rnAt>LM%-F zK|rtwgcU)}7x~z1Hrcs5bH*ZO$!>xO8K#?==bZPQ_ecnV>#P`H`QzGaRhd62G_&rC zTLU$c7_x*nFP_dW#Q+*);mMHE?j)HexK784D4x9l_tfpz2$@1y}9rkF+ zI+J5NMWeZyObc!d+rUc=>D+uOdAOg#%+Ej6h+wn5^xPmVVH*Eu446Y0A_@ zo$rlds-+sL10Dbwd|HNMlZ|>D)M67h? zOIjz3DJbk0=97q(mSBd~-ilc0Oupt^z$#N6O&at_s8u-PL@9M^gQuq(+UH^IB$&*DHP!HzH+vkEzC?S52tN1$mKhziPkOR=y$ zhl#aO1Xly_M?EkN>tM6E5T&Ht4dh{0oQr6Q1b3J=sM^ACOsvD=TSP81#0oTC1v|Df zgpp-GhL(KrE_8t&(jeFR1W%(osQ12tvSpHp_}~HR_8G{VUO;FILQv(P-b)es=)ZlJM#c>{Wx-rgY3D#Ol9rJl39A<60Xo5cneo(9g5a4q>ayzV-7%Ue2}0_ z&TIets{Cl`n(nefrZ+9F8|N&Kp}^StU2b+&pVj;XvgEdBL3Wlp00000NkvXXu0mjf DwZ3{L literal 0 HcmV?d00001 diff --git a/koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/picture.png b/koha-tmpl/intranet-tmpl/prog/img/famfamfam/silk/picture.png new file mode 100644 index 0000000000000000000000000000000000000000..4a158fef7e0da8fd19525f574f2c4966443866cf GIT binary patch literal 606 zcmV-k0-^nhP)Q2rnAt>LM%-F zK|rtwgcU)}7x~z1Hrcs5bH*ZO$!>xO8K#?==bZPQ_ecnV>#P`H`QzGaRhd62G_&rC zTLU$c7_x*nFP_dW#Q+*);mMHE?j)HexK784D4x9l_tfpz2$@1y}9rkF+ zI+J5NMWeZyObc!d+rUc=>D+uOdAOg#%+Ej6h+wn5^xPmVVH*Eu446Y0A_@ zo$rlds-+sL10DbQ2rnAt>LM%-F zK|rtwgcU)}7x~z1Hrcs5bH*ZO$!>xO8K#?==bZPQ_ecnV>#P`H`QzGaRhd62G_&rC zTLU$c7_x*nFP_dW#Q+*);mMHE?j)HexK784D4x9l_tfpz2$@1y}9rkF+ zI+J5NMWeZyObc!d+rUc=>D+uOdAOg#%+Ej6h+wn5^xPmVVH*Eu446Y0A_@ zo$rlds-+sL10Db