Bugzilla – Attachment 103422 Details for
Bug 25224
Add "Large Print" from 008 position 23 to default XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25224: Show large print format in search results XSLT
Bug-25224-Show-large-print-format-in-search-result.patch (text/plain), 2.87 KB, created by
Lucas Gass (lukeg)
on 2020-04-21 21:15:59 UTC
(
hide
)
Description:
Bug 25224: Show large print format in search results XSLT
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2020-04-21 21:15:59 UTC
Size:
2.87 KB
patch
obsolete
>From 41fd2da8285eb93cbf6208392c4f0565f64b9363 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Date: Tue, 21 Apr 2020 17:41:29 +0000 >Subject: [PATCH] Bug 25224: Show large print format in search results XSLT > >To test: >1: find a bib with 008 type Book >(Leader position 6 = 'a' and leader position 7 = 'm' -- use bib number 1 in master data) >2: set 008 position 23 to 'd' for large print >3: check your book record in opac and intranet search results, note that your change is not reflected in the "format" note in line with material type >4: find a bib with 008 type Continuing Resource >(Leader position 6 = 'a' and leader position 7 = 's' -- use bib number 44 in master data) >5: set 008 position 23 to 'd' for large print >6: check your continuing resource record in opac and intranet search results, note that your change is not reflected in the "format" note in line with material type >7: apply patch, restart_all >8: reload search results from steps 3 and 6, confirm they now say "format: large print" > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl | 3 +++ > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 3 +++ > 2 files changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index 89c6d0acd2..769fc981e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -97,6 +97,9 @@ > <xsl:when test="($check008-23 and $controlField008-23='a') or ($check008-29 and $controlField008-29='a')"> > microfilm > </xsl:when> >+ <xsl:when test="($controlField008-23='d' and ($typeOf008='BK' or $typeOf008='CR'))"> >+ large print >+ </xsl:when> > </xsl:choose> > > <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='b']"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index d29fdceaee..339f058b70 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -107,6 +107,9 @@ > <xsl:when test="($check008-23 and $controlField008-23='a') or ($check008-29 and $controlField008-29='a')"> > microfilm > </xsl:when> >+ <xsl:when test="($controlField008-23='d' and ($typeOf008='BK' or $typeOf008='CR'))"> >+ large print >+ </xsl:when> > </xsl:choose> > <!-- > <xsl:if test="marc:datafield[@tag=130]/marc:subfield[@code='h']"> >-- >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 25224
:
103399
|
103422
|
103517