Bugzilla – Attachment 103424 Details for
Bug 25233
Staff XSLT material type label "Book" should be "Text"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make the staff client XSLT stylesheets consistent with the ones for the OPAC
Make-the-staff-client-XSLT-stylesheets-consistent-.patch (text/plain), 5.00 KB, created by
Lucas Gass (lukeg)
on 2020-04-21 21:34:13 UTC
(
hide
)
Description:
Make the staff client XSLT stylesheets consistent with the ones for the OPAC
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2020-04-21 21:34:13 UTC
Size:
5.00 KB
patch
obsolete
>From 396060ba4d44e62c5842ab4bf9659d8ede84aee8 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 21 Apr 2020 21:33:03 +0000 >Subject: [PATCH] Make the staff client XSLT stylesheets consistent with the > ones for the OPAC > >This patch makes the staff client XSLT stylesheets consistent with the ones for the OPAC, it also makes consitent the use of 'Text' when the leader6 = 't' >TO TEST: >1. Have a record with leader06 = 'a' and leader07 = 'c' 'd' or 'm'. >2. Check the staff client results and details page. See that the material type label says "Book" >3. Check the OPAC client results and details page. See that the materila type label says "Text" >4. Apply patch. >5. See that both staff client and OPAC results/details all now say "Text" >6. Set the leader6 = 't' and make sure that is says 'Text' on both the staff client and OPAC > >https://bugs.koha-community.org/show_bug.cgi?id=25233 >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 84f1055e4c..1d4ecc8b01 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -73,7 +73,7 @@ > <xsl:when test="$leader19='a'">Set</xsl:when> > <xsl:when test="$leader6='a'"> > <xsl:choose> >- <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'">Book</xsl:when> >+ <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'">Text</xsl:when> > <xsl:when test="$leader7='i' or $leader7='s'"> > <xsl:choose> > <xsl:when test="substring($controlField008,22,1)!='m'">Continuing resource</xsl:when> >@@ -83,7 +83,7 @@ > <xsl:when test="$leader7='a' or $leader7='b'">Article</xsl:when> > </xsl:choose> > </xsl:when> >- <xsl:when test="$leader6='t'">Book</xsl:when> >+ <xsl:when test="$leader6='t'">Text</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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index 89c6d0acd2..5f9ed27425 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -489,12 +489,12 @@ > <xsl:when test="$leader19='a'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book_link.png" alt="book" title="book" class="materialtype"/> Set</xsl:when> > <xsl:when test="$leader6='a'"> > <xsl:choose> >- <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Book</xsl:when> >+ <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Text</xsl:when> > <xsl:when test="$leader7='i' or $leader7='s'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/newspaper.png" alt="serial" title="serial" class="materialtype mt_icon_CR"/> Continuing resource</xsl:when> > <xsl:when test="$leader7='a' or $leader7='b'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book_open.png" alt="article" title="article" class="materialtype mt_icon_AR"/> Article</xsl:when> > </xsl:choose> > </xsl:when> >- <xsl:when test="$leader6='t'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Book</xsl:when> >+ <xsl:when test="$leader6='t'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/book.png" alt="book" title="book" class="materialtype mt_icon_BK"/> Text</xsl:when> > <xsl:when test="$leader6='o'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/report_disk.png" alt="kit" title="kit" class="materialtype mt_icon_MX"/> Kit</xsl:when> > <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> >-- >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 25233
:
103420
|
103424
|
103469
|
103716