Bugzilla – Attachment 103607 Details for
Bug 25269
MARC21slim2OPACResults.xsl does not display all formats (physical descriptions)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25269: Add text along with icons for physical descriptions
Bug-25269-Add-text-along-with-icons-for-physical-d.patch (text/plain), 7.42 KB, created by
Lucas Gass (lukeg)
on 2020-04-23 20:58:44 UTC
(
hide
)
Description:
Bug 25269: Add text along with icons for physical descriptions
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2020-04-23 20:58:44 UTC
Size:
7.42 KB
patch
obsolete
>From b6318f229938a06b7ceaa4a0ada173f5d3bb0b82 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 23 Apr 2020 20:55:30 +0000 >Subject: [PATCH] Bug 25269: Add text along with icons for physical > descriptions > >1. Edit a record to have the first and second postions in the 008 = 'cb'. >2. Load the OPAC results page and this record should display: Format: chip cartridge >3. Now try first and second positions in the 008 = 'co' >4. This should an optical disc png (/opac-tmpl/lib/famfamfam/cd.png) but nothing displays because the string length is 0. >5. Apply patch >6. Record with first and second positions in the 008 = 'co' should now should text and icon. >7. Look at patch and make sure other changed parts also work. >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index d29fdceaee..0c93433392 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -172,6 +172,7 @@ > chip cartridge > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='c']"> >+ computer optical disc cartidge > <img src="/opac-tmpl/lib/famfamfam/cd.png" alt="computer optical disc cartridge" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='j']"> >@@ -181,10 +182,11 @@ > magneto-optical disc > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='o']"> >+ optical disc > <img src="/opac-tmpl/lib/famfamfam/cd.png" alt="optical disc" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='r']"> >- available online >+ available online > <img src="/opac-tmpl/lib/famfamfam/drive_web.png" alt="remote" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='a']"> >@@ -198,15 +200,19 @@ > </xsl:if> > > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='a']"> >+ celestial globe > <img src="/opac-tmpl/lib/famfamfam/world.png" alt="celestial globe" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='e']"> >+ earth globe > <img src="/opac-tmpl/lib/famfamfam/world.png" alt="earth moon globe" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='b']"> >+ planetary or lunar globe > <img src="/opac-tmpl/lib/famfamfam/world.png" alt="planetary or lunar globe" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='c']"> >+ terrestrial globe > <img src="/opac-tmpl/lib/famfamfam/world.png" alt="terrestrial globe" class="format"/> > </xsl:if> > >@@ -270,18 +276,22 @@ > film reel > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='n']"> >+ chart > <img src="/opac-tmpl/lib/famfamfam/chart_curve.png" alt="chart" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='c']"> > collage > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='d']"> >+ drawing > <img src="/opac-tmpl/lib/famfamfam/pencil.png" alt="drawing" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='o']"> >+ flash card > <img src="/opac-tmpl/lib/famfamfam/note.png" alt="flash card" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='e']"> >+ drawing > <img src="/opac-tmpl/lib/famfamfam/paintbrush.png" alt="painting" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='f']"> >@@ -294,6 +304,7 @@ > photoprint > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='i']"> >+ picture > <img src="/opac-tmpl/lib/famfamfam/picture.png" alt="picture" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='j']"> >@@ -303,6 +314,7 @@ > technical drawing > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='q'][substring(text(),2,1)='q']"> >+ notated music > <img src="/opac-tmpl/lib/famfamfam/script.png" alt="notated music" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='d']"> >@@ -318,6 +330,7 @@ > other filmstrip type > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='s']"> >+ slide > <img src="/opac-tmpl/lib/famfamfam/pictures.png" alt="slide" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='t']"> >@@ -339,6 +352,7 @@ > sound cassette > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='d']"> >+ sound disc > <img src="/opac-tmpl/lib/famfamfam/cd.png" alt="sound disc" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='t']"> >@@ -366,6 +380,7 @@ > braille > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='b']"> >+ large print > <img src="/opac-tmpl/lib/famfamfam/magnifier.png" alt="large print" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='a']"> >@@ -381,6 +396,7 @@ > videocassette > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='d']"> >+ videodisc > <img src="/opac-tmpl/lib/famfamfam/dvd.png" alt="videodisc" class="format"/> > </xsl:if> > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='r']"> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25269
: 103607 |
105092