Bugzilla – Attachment 131303 Details for
Bug 20161
Show same information for format, material type etc. on the detail page as in the result list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20161: add format, material type, etc to staff/OPAC details page
Bug-20161-add-format-material-type-etc-to-staffOPA.patch (text/plain), 73.85 KB, created by
Lucas Gass (lukeg)
on 2022-03-02 21:48:41 UTC
(
hide
)
Description:
Bug 20161: add format, material type, etc to staff/OPAC details page
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-03-02 21:48:41 UTC
Size:
73.85 KB
patch
obsolete
>From 0a84a9e675229b759a9d9fc176033829a3842c2a Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 2 Mar 2022 19:10:02 +0000 >Subject: [PATCH] Bug 20161: add format, material type, etc to staff/OPAC > details page > >For staff side: >1. Make sure DisplayIconsXSLT is on. >2. Look at the results page from the staff client. >3. Notice the results_material_type contains 'Material type', 'Format', 'Literary form', 'Type of visual material' >4. Look at the staff detail page and notice that only 'Material type' will show. >5. Apply patch and restart everything >6. Now look at the detail page and it should match what you see on the results page. >7. Turn off DisplayIconsXSLT >8. Make sure nothing on the results_material_type now displays. > >For OPAC: >1. Make sure DisplayOPACiconsXSLT is on. >2. Look at the results page from the OPAC. >3. Notice the results_material_type contains 'Material type', 'Format', 'Literary form', 'Type of visual material' >4. Look at the OPAC detail page and notice that only 'Material type' will show. >5. Apply patch and restart everything >6. Now look at the detail page and it should match what you see on the results page. >7. Turn off DisplayOPACiconsXSLT >8. Make sure nothing on the results_material_type now displays. >--- > .../en/xslt/MARC21slim2intranetDetail.xsl | 573 +++++++++++++++- > .../en/xslt/MARC21slim2OPACDetail.xsl | 646 +++++++++++++++++- > 2 files changed, 1200 insertions(+), 19 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 7f14c298f6..d48888e25a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -68,6 +68,229 @@ > <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when> > </xsl:choose> > </xsl:variable> >+ >+ <xsl:variable name="controlField008-23" select="substring($controlField008,24,1)"/> >+ <xsl:variable name="controlField008-21" select="substring($controlField008,22,1)"/> >+ <xsl:variable name="controlField008-22" select="substring($controlField008,23,1)"/> >+ <xsl:variable name="controlField008-24" select="substring($controlField008,25,4)"/> >+ <xsl:variable name="controlField008-26" select="substring($controlField008,27,1)"/> >+ <xsl:variable name="controlField008-29" select="substring($controlField008,30,1)"/> >+ <xsl:variable name="controlField008-34" select="substring($controlField008,35,1)"/> >+ <xsl:variable name="controlField008-33" select="substring($controlField008,34,1)"/> >+ <xsl:variable name="controlField008-30-31" select="substring($controlField008,31,2)"/> >+ >+ <xsl:variable name="physicalDescription"> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='a']"> >+ reformatted digital >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='b']"> >+ digitized microfilm >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='d']"> >+ digitized other analog >+ </xsl:if> >+ >+ <xsl:variable name="check008-23"> >+ <xsl:if test="$materialTypeCode='BK' or $materialTypeCode='MU' or $materialTypeCode='CR' or $materialTypeCode='MX'"> >+ <xsl:value-of select="true()"></xsl:value-of> >+ </xsl:if> >+ </xsl:variable> >+ <xsl:variable name="check008-29"> >+ <xsl:if test="$materialTypeCode='MP' or $materialTypeCode='VM'"> >+ <xsl:value-of select="true()"></xsl:value-of> >+ </xsl:if> >+ </xsl:variable> >+ <xsl:choose> >+ <xsl:when test="($check008-23 and $controlField008-23='f') or ($check008-29 and $controlField008-29='f')"> >+ braille >+ </xsl:when> >+ <xsl:when test="($controlField008-23=' ' and ($leader6='c' or $leader6='d')) or (($materialTypeCode='BK' or $materialTypeCode='CR') and ($controlField008-23=' ' or $controlField008='r'))"> >+ print >+ </xsl:when> >+ <xsl:when test="$leader6 = 'm' or ($check008-23 and $controlField008-23='s') or ($check008-29 and $controlField008-29='s')"> >+ electronic >+ </xsl:when> >+ <xsl:when test="($check008-23 and $controlField008-23='b') or ($check008-29 and $controlField008-29='b')"> >+ microfiche >+ </xsl:when> >+ <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 ($materialTypeCode='BK' or $materialTypeCode='CR'))"> >+ large print >+ </xsl:when> >+ </xsl:choose> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='b']"> >+ chip cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='j']"> >+ magnetic disc >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='m']"> >+ magneto-optical disc >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='r']"> >+ available online >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='a']"> >+ tape cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='f']"> >+ tape cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='h']"> >+ tape reel >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='o'][substring(text(),2,1)='o']"> >+ kit >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='d']"> >+ atlas >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='g']"> >+ diagram >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='j']"> >+ map >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']"> >+ model >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='k']"> >+ profile >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='r']"> >+ remote-sensing image >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='s']"> >+ section >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='y']"> >+ view >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='a']"> >+ aperture card >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='e']"> >+ microfiche >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='f']"> >+ microfiche cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='b']"> >+ microfilm cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='c']"> >+ microfilm cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='d']"> >+ microfilm reel >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='g']"> >+ microopaque >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='c']"> >+ film cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='f']"> >+ film cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='r']"> >+ film reel >+ </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)='f']"> >+ photomechanical print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='g']"> >+ photonegative >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='h']"> >+ photoprint >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='j']"> >+ print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='l']"> >+ technical drawing >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='d']"> >+ filmslip >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='c']"> >+ filmstrip cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='o']"> >+ filmstrip roll >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='f']"> >+ other filmstrip type >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='t']"> >+ transparency >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='r'][substring(text(),2,1)='r']"> >+ remote-sensing image >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='e']"> >+ cylinder >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='q']"> >+ roll >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='g']"> >+ sound cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='s']"> >+ sound cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='t']"> >+ sound-tape reel >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='i']"> >+ sound-track film >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='w']"> >+ wire recording >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='c']"> >+ combination >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='b']"> >+ braille >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='a']"> >+ moon >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='d']"> >+ tactile, with no writing system >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='c']"> >+ braille >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='a']"> >+ regular print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='d']"> >+ text in looseleaf binder >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='c']"> >+ videocartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='f']"> >+ videocassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='r']"> >+ videoreel >+ </xsl:if> >+ </xsl:variable> >+ > <xsl:variable name="materialTypeLabel"> > <xsl:choose> > <xsl:when test="$leader19='a'">Set</xsl:when> >@@ -163,13 +386,349 @@ > <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/> > </xsl:call-template> > >- <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''"> >- <span class="results_summary type"><span class="label">Material type: </span> >- <xsl:element name="img"><xsl:attribute name="class">materialtype mt_icon_<xsl:value-of select="$materialTypeCode"/></xsl:attribute><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element> >- <xsl:text> </xsl:text> >- <xsl:value-of select="$materialTypeLabel"/> >- </span> >- </xsl:if> >+ <xsl:if test="$DisplayIconsXSLT!='0'"> >+ <span class="results_summary"> >+ <xsl:if test="$materialTypeCode!=''"> >+ <span class="results_material_type"> >+ <span class="label">Material type: </span> >+ <xsl:choose> >+ <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"/> 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"/> 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> >+ <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'"><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> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ >+ <xsl:if test="string-length(normalize-space($physicalDescription))"> >+ <span class="results_format"> >+ <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of> >+ </span> >+ </xsl:if> >+ >+ <xsl:if test="$controlField008-21 or $controlField008-22 or $controlField008-24 or $controlField008-26 or $controlField008-29 or $controlField008-34 or $controlField008-33 or $controlField008-30-31 or $controlField008-33"> >+ >+ <xsl:if test="$materialTypeCode='CR'"> >+ <span class="results_typeofcontinueing"> >+ <xsl:if test="$controlField008-21 and $controlField008-21 !='|' and $controlField008-21 !=' '"> >+ <span class="label">; Type of continuing resource: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-21='l'"> >+ loose-leaf >+ </xsl:when> >+ <xsl:when test="$controlField008-21='m'"> >+ series >+ </xsl:when> >+ <xsl:when test="$controlField008-21='n'"> >+ newspaper >+ </xsl:when> >+ <xsl:when test="$controlField008-21='p'"> >+ periodical >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='BK' or $materialTypeCode='CR'"> >+ <xsl:if test="contains($controlField008-24,'abcdefghijklmnopqrstvwxyz')"> >+ <span class="results_natureofcontents"> >+ <span class="label">; Nature of contents: </span> >+ <xsl:choose> >+ <xsl:when test="contains($controlField008-24,'a')"> >+ abstract or summary >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'b')"> >+ bibliography >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'c')"> >+ catalog >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'d')"> >+ dictionary >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'e')"> >+ encyclopedia >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'f')"> >+ handbook >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'g')"> >+ legal article >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'i')"> >+ index >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'k')"> >+ discography >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'l')"> >+ legislation >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'m')"> >+ theses >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'n')"> >+ survey of literature >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'o')"> >+ review >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'p')"> >+ programmed text >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'q')"> >+ filmography >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'r')"> >+ directory >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'s')"> >+ statistics >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'v')"> >+ legal case and case notes >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'w')"> >+ law report or digest >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'z')"> >+ treaty >+ </xsl:when> >+ </xsl:choose> >+ <xsl:choose> >+ <xsl:when test="$controlField008-29='1'"> >+ conference publication >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF'"> >+ <span class="results_typeofcomp"> >+ <xsl:if test="$controlField008-26='a' or $controlField008-26='e' or $controlField008-26='f' or $controlField008-26='g'"> >+ <span class="label">; Type of computer file: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-26='a'"> >+ numeric data >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='BK'"> >+ <span class="results_contents_literary"> >+ <xsl:if test="(substring($controlField008,25,1)='j') or (substring($controlField008,25,1)='1') or ($controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d')"> >+ <span class="label">; Nature of contents: </span> >+ </xsl:if> >+ <xsl:if test="substring($controlField008,25,1)='j'"> >+ patent >+ </xsl:if> >+ <xsl:if test="substring($controlField008,31,1)='1'"> >+ festschrift >+ </xsl:if> >+ >+ <xsl:if test="$controlField008-33 and $controlField008-33!='|' and $controlField008-33!='u' and $controlField008-33!=' '"> >+ <span class="label">; Literary form: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-33='0'"> >+ Not fiction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='1'"> >+ Fiction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='d'"> >+ Dramas >+ </xsl:when> >+ <xsl:when test="$controlField008-33='e'"> >+ Essays >+ </xsl:when> >+ <xsl:when test="$controlField008-33='f'"> >+ Novels >+ </xsl:when> >+ <xsl:when test="$controlField008-33='h'"> >+ Humor, satires, etc. >+ </xsl:when> >+ <xsl:when test="$controlField008-33='i'"> >+ Letters >+ </xsl:when> >+ <xsl:when test="$controlField008-33='j'"> >+ Short stories >+ </xsl:when> >+ <xsl:when test="$controlField008-33='m'"> >+ Mixed forms >+ </xsl:when> >+ <xsl:when test="$controlField008-33='p'"> >+ Poetry >+ </xsl:when> >+ <xsl:when test="$controlField008-33='s'"> >+ Speeches >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='MU' and $controlField008-30-31 and $controlField008-30-31!='||' and $controlField008-30-31!=' '"> >+ <span class="results_literaryform"> >+ <span class="label">; Literary form: </span> <!-- Literary text for sound recordings --> >+ <xsl:if test="contains($controlField008-30-31,'b')"> >+ biography >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'c')"> >+ conference publication >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'d')"> >+ drama >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'e')"> >+ essay >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'f')"> >+ fiction >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'o')"> >+ folktale >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'h')"> >+ history >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'k')"> >+ humor, satire >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'m')"> >+ memoir >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'p')"> >+ poetry >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'r')"> >+ rehearsal >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'g')"> >+ reporting >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'s')"> >+ sound >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'l')"> >+ speech >+ </xsl:if> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='VM'"> >+ <span class="results_typeofvisual"> >+ <span class="label">; Type of visual material: </span> >+ <xsl:choose> >+ <xsl:when test="$controlField008-33='a'"> >+ art original >+ </xsl:when> >+ <xsl:when test="$controlField008-33='b'"> >+ kit >+ </xsl:when> >+ <xsl:when test="$controlField008-33='c'"> >+ art reproduction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='d'"> >+ diorama >+ </xsl:when> >+ <xsl:when test="$controlField008-33='f'"> >+ filmstrip >+ </xsl:when> >+ <xsl:when test="$controlField008-33='g'"> >+ game >+ </xsl:when> >+ <xsl:when test="$controlField008-33='i'"> >+ picture >+ </xsl:when> >+ <xsl:when test="$controlField008-33='k'"> >+ graphic >+ </xsl:when> >+ <xsl:when test="$controlField008-33='l'"> >+ technical drawing >+ </xsl:when> >+ <xsl:when test="$controlField008-33='m'"> >+ motion picture >+ </xsl:when> >+ <xsl:when test="$controlField008-33='n'"> >+ chart >+ </xsl:when> >+ <xsl:when test="$controlField008-33='o'"> >+ flash card >+ </xsl:when> >+ <xsl:when test="$controlField008-33='p'"> >+ microscope slide >+ </xsl:when> >+ <xsl:when test="$controlField008-33='q' or marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']"> >+ model >+ </xsl:when> >+ <xsl:when test="$controlField008-33='r'"> >+ realia >+ </xsl:when> >+ <xsl:when test="$controlField008-33='s'"> >+ slide >+ </xsl:when> >+ <xsl:when test="$controlField008-33='t'"> >+ transparency >+ </xsl:when> >+ <xsl:when test="$controlField008-33='v'"> >+ videorecording >+ </xsl:when> >+ <xsl:when test="$controlField008-33='w'"> >+ toy >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ </xsl:if> >+ >+ <xsl:if test="($materialTypeCode='BK' or $materialTypeCode='CF' or $materialTypeCode='MU' or $materialTypeCode='VM') and ($controlField008-22='a' or $controlField008-22='b' or $controlField008-22='c' or $controlField008-22='d' or $controlField008-22='e' or $controlField008-22='g' or $controlField008-22='j' or $controlField008-22='f')"> >+ <span class="results_audience"> >+ <span class="label">; Audience: </span> >+ <xsl:choose> >+ <xsl:when test="$controlField008-22='a'"> >+ Preschool; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='b'"> >+ Primary; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='c'"> >+ Pre-adolescent; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='d'"> >+ Adolescent; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='e'"> >+ Adult; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='g'"> >+ General; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='j'"> >+ Juvenile; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='f'"> >+ Specialized; >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 --> >+ </span> >+ </xsl:if> <!-- DisplayIconsXSLT --> > > <xsl:call-template name="show-lang-041"/> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 4e507a5754..c0a78dfd4a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -70,6 +70,278 @@ > <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when> > </xsl:choose> > </xsl:variable> >+ >+ <xsl:variable name="controlField008-23" select="substring($controlField008,24,1)"/> >+ <xsl:variable name="controlField008-21" select="substring($controlField008,22,1)"/> >+ <xsl:variable name="controlField008-22" select="substring($controlField008,23,1)"/> >+ <xsl:variable name="controlField008-24" select="substring($controlField008,25,4)"/> >+ <xsl:variable name="controlField008-26" select="substring($controlField008,27,1)"/> >+ <xsl:variable name="controlField008-29" select="substring($controlField008,30,1)"/> >+ <xsl:variable name="controlField008-34" select="substring($controlField008,35,1)"/> >+ <xsl:variable name="controlField008-33" select="substring($controlField008,34,1)"/> >+ <xsl:variable name="controlField008-30-31" select="substring($controlField008,31,2)"/> >+ >+ <xsl:variable name="physicalDescription"> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='a']"> >+ reformatted digital >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='b']"> >+ digitized microfilm >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF' and marc:controlfield[@tag=007][substring(.,12,1)='d']"> >+ digitized other analog >+ </xsl:if> >+ >+ <xsl:variable name="check008-23"> >+ <xsl:if test="$materialTypeCode='BK' or $materialTypeCode='MU' or $materialTypeCode='CR' or $materialTypeCode='MX'"> >+ <xsl:value-of select="true()"></xsl:value-of> >+ </xsl:if> >+ </xsl:variable> >+ <xsl:variable name="check008-29"> >+ <xsl:if test="$materialTypeCode='MP' or $materialTypeCode='VM'"> >+ <xsl:value-of select="true()"></xsl:value-of> >+ </xsl:if> >+ </xsl:variable> >+ <xsl:choose> >+ <xsl:when test="($check008-23 and $controlField008-23='f') or ($check008-29 and $controlField008-29='f')"> >+ braille >+ </xsl:when> >+ <xsl:when test="($controlField008-23=' ' and ($leader6='c' or $leader6='d')) or (($materialTypeCode='BK' or $materialTypeCode='CR') and ($controlField008-23=' ' or $controlField008='r'))"> >+ print >+ </xsl:when> >+ <xsl:when test="$leader6 = 'm' or ($check008-23 and $controlField008-23='s') or ($check008-29 and $controlField008-29='s')"> >+ electronic >+ </xsl:when> >+ <xsl:when test="($check008-23 and $controlField008-23='b') or ($check008-29 and $controlField008-29='b')"> >+ microfiche >+ </xsl:when> >+ <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 ($materialTypeCode='BK' or $materialTypeCode='CR'))"> >+ large print >+ </xsl:when> >+ </xsl:choose> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='b']"> >+ chip cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='c']"> >+ <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']"> >+ magnetic disc >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='m']"> >+ magneto-optical disc >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='o']"> >+ <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 >+ <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']"> >+ tape cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='f']"> >+ tape cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='c'][substring(text(),2,1)='h']"> >+ tape reel >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='d'][substring(text(),2,1)='a']"> >+ <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']"> >+ <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']"> >+ <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']"> >+ <img src="/opac-tmpl/lib/famfamfam/world.png" alt="terrestrial globe" class="format"/> >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='o'][substring(text(),2,1)='o']"> >+ kit >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='d']"> >+ atlas >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='g']"> >+ diagram >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='j']"> >+ map >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']"> >+ model >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='k']"> >+ profile >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='r']"> >+ remote-sensing image >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='s']"> >+ section >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='y']"> >+ view >+ </xsl:if> >+ >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='a']"> >+ aperture card >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='e']"> >+ microfiche >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='f']"> >+ microfiche cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='b']"> >+ microfilm cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='c']"> >+ microfilm cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='d']"> >+ microfilm reel >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='h'][substring(text(),2,1)='g']"> >+ microopaque >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='c']"> >+ film cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='f']"> >+ film cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='m'][substring(text(),2,1)='r']"> >+ film reel >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='n']"> >+ <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']"> >+ <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']"> >+ <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']"> >+ <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']"> >+ photomechanical print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='g']"> >+ photonegative >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='h']"> >+ photoprint >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='i']"> >+ <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']"> >+ print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='k'][substring(text(),2,1)='l']"> >+ technical drawing >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='q'][substring(text(),2,1)='q']"> >+ <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']"> >+ filmslip >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='c']"> >+ filmstrip cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='o']"> >+ filmstrip roll >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='f']"> >+ other filmstrip type >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='g'][substring(text(),2,1)='s']"> >+ <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']"> >+ transparency >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='r'][substring(text(),2,1)='r']"> >+ remote-sensing image >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='e']"> >+ cylinder >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='q']"> >+ roll >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='g']"> >+ sound cartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='s']"> >+ sound cassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='d']"> >+ <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']"> >+ sound-tape reel >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='i']"> >+ sound-track film >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='s'][substring(text(),2,1)='w']"> >+ wire recording >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='c']"> >+ combination >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='b']"> >+ braille >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='a']"> >+ moon >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='f'][substring(text(),2,1)='d']"> >+ tactile, with no writing system >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='c']"> >+ braille >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='b']"> >+ <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']"> >+ regular print >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='t'][substring(text(),2,1)='d']"> >+ text in looseleaf binder >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='c']"> >+ videocartridge >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='f']"> >+ videocassette >+ </xsl:if> >+ <xsl:if test="marc:controlfield[@tag=007][substring(text(),1,1)='v'][substring(text(),2,1)='d']"> >+ <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']"> >+ videoreel >+ </xsl:if> >+ </xsl:variable> >+ > <xsl:variable name="materialTypeLabel"> > <xsl:choose> > <xsl:when test="$leader19='a'">Set</xsl:when> >@@ -186,19 +458,369 @@ > <xsl:with-param name="theme" select="$theme"/> > </xsl:call-template> > >- <xsl:if test="$DisplayOPACiconsXSLT!='0'"> >- <xsl:if test="$materialTypeCode!=''"> >- <span class="results_summary type"><span class="label">Material type: </span> >- <xsl:element name="img"> >- <xsl:attribute name="src">/opac-tmpl/lib/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute> >- <xsl:attribute name="alt"><xsl:value-of select="$materialTypeLabel"/></xsl:attribute> >- <xsl:attribute name="class">materialtype mt_icon_<xsl:value-of select="$materialTypeCode"/></xsl:attribute> >- </xsl:element> >- <xsl:value-of select="$materialTypeLabel"/> >- </span> >- </xsl:if> >- </xsl:if> >+ <xsl:if test="$DisplayOPACiconsXSLT!='0'"> >+ <span class="results_summary type"> >+ <xsl:if test="$materialTypeCode!=''"> >+ <span class="results_material_type"> >+ <span class="label">Material type: </span> >+ <xsl:choose> >+ <xsl:when test="$leader19='a'"><img src="/opac-tmpl/lib/famfamfam/ST.png" alt="Set" class="materialtype mt_icon_ST"/> Set</xsl:when> >+ <xsl:when test="$leader6='a'"> >+ <xsl:choose> >+ <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/opac-tmpl/lib/famfamfam/BK.png" alt="Text" class="materialtype mt_icon_BK"/> Text</xsl:when> >+ <xsl:when test="$leader7='i' or $leader7='s'"><img src="/opac-tmpl/lib/famfamfam/SE.png" alt="Continuing resource" class="materialtype mt_icon_SE"/> Continuing resource</xsl:when> >+ <xsl:when test="$leader7='a' or $leader7='b'"><img src="/opac-tmpl/lib/famfamfam/AR.png" alt="Article" class="materialtype mt_icon_AR"/> Article</xsl:when> >+ </xsl:choose> >+ </xsl:when> >+ <xsl:when test="$leader6='t'"><img src="/opac-tmpl/lib/famfamfam/BK.png" alt="Text" class="materialtype mt_icon_BK"/> Text</xsl:when> >+ <xsl:when test="$leader6='o'"><img src="/opac-tmpl/lib/famfamfam/MM.png" alt="Kit" class="materialtype mt_icon_MM"/> Kit</xsl:when> >+ <xsl:when test="$leader6='p'"><img src="/opac-tmpl/lib/famfamfam/MM.png" alt="Mixed materials" class="materialtype mt_icon_MM"/>Mixed materials</xsl:when> >+ <xsl:when test="$leader6='m'"><img src="/opac-tmpl/lib/famfamfam/CF.png" alt="Computer file" class="materialtype mt_icon_CF"/> Computer file</xsl:when> >+ <xsl:when test="$leader6='e' or $leader6='f'"><img src="/opac-tmpl/lib/famfamfam/MP.png" alt="Map" class="materialtype mt_icon_MP"/> Map</xsl:when> >+ <xsl:when test="$leader6='g'"><img src="/opac-tmpl/lib/famfamfam/VM.png" alt="Film" class="materialtype mt_icon_VM"/> Film</xsl:when> >+ <xsl:when test="$leader6='k'"><img src="/opac-tmpl/lib/famfamfam/GR.png" alt="Picture" class="materialtype mt_icon_GR"/> Picture</xsl:when> >+ <xsl:when test="$leader6='r'"><img src="/opac-tmpl/lib/famfamfam/OB.png" alt="Object" class="materialtype mt_icon_OB"/> Object</xsl:when> >+ <xsl:when test="$leader6='c' or $leader6='d'"><img src="/opac-tmpl/lib/famfamfam/PR.png" alt="Score" class="materialtype mt_icon_PR"/> Score</xsl:when> >+ <xsl:when test="$leader6='i'"><img src="/opac-tmpl/lib/famfamfam/MU.png" alt="Sound" class="materialtype mt_icon_MU"/> Sound</xsl:when> >+ <xsl:when test="$leader6='j'"><img src="/opac-tmpl/lib/famfamfam/PR.png" alt="Music" class="materialtype mt_icon_PR"/> Music</xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="string-length(normalize-space($physicalDescription))"> >+ <span class="results_format"> >+ <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of> >+ </span> >+ </xsl:if> >+ >+ <xsl:if test="$controlField008-21 or $controlField008-22 or $controlField008-24 or $controlField008-26 or $controlField008-29 or $controlField008-34 or $controlField008-33 or $controlField008-30-31 or $controlField008-33"> >+ >+ <xsl:if test="$materialTypeCode='CR'"> >+ <span class="results_typeofcontinuing"> >+ <xsl:if test="$controlField008-21 and $controlField008-21 !='|' and $controlField008-21 !=' '"> >+ <span class="label">; Type of continuing resource: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-21='d'"> >+ <img src="/opac-tmpl/lib/famfamfam/database.png" alt="database" class="format"/> >+ </xsl:when> >+ <xsl:when test="$controlField008-21='l'"> >+ loose-leaf >+ </xsl:when> >+ <xsl:when test="$controlField008-21='m'"> >+ series >+ </xsl:when> >+ <xsl:when test="$controlField008-21='n'"> >+ newspaper >+ </xsl:when> >+ <xsl:when test="$controlField008-21='p'"> >+ periodical >+ </xsl:when> >+ <xsl:when test="$controlField008-21='w'"> >+ <img src="/opac-tmpl/lib/famfamfam/world_link.png" alt="web site" class="format"/> >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='BK' or $materialTypeCode='CR'"> >+ <xsl:if test="contains($controlField008-24,'abcdefghijklmnopqrstvwxyz')"> >+ <span class="results_natureofcontents"> >+ <span class="label">; Nature of contents: </span> >+ <xsl:choose> >+ <xsl:when test="contains($controlField008-24,'a')"> >+ abstract or summary >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'b')"> >+ bibliography >+ <img src="/opac-tmpl/lib/famfamfam/text_list_bullets.png" alt="bibliography" class="natureofcontents"/> >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'c')"> >+ catalog >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'d')"> >+ dictionary >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'e')"> >+ encyclopedia >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'f')"> >+ handbook >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'g')"> >+ legal article >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'i')"> >+ index >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'k')"> >+ discography >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'l')"> >+ legislation >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'m')"> >+ theses >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'n')"> >+ survey of literature >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'o')"> >+ review >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'p')"> >+ programmed text >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'q')"> >+ filmography >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'r')"> >+ directory >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'s')"> >+ statistics >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'t')"> >+ <img src="/opac-tmpl/lib/famfamfam/report.png" alt="technical report" class="natureofcontents"/> >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'v')"> >+ legal case and case notes >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'w')"> >+ law report or digest >+ </xsl:when> >+ <xsl:when test="contains($controlField008-24,'z')"> >+ treaty >+ </xsl:when> >+ </xsl:choose> >+ <xsl:choose> >+ <xsl:when test="$controlField008-29='1'"> >+ conference publication >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='CF'"> >+ <span class="results_typeofcomp"> >+ <xsl:if test="$controlField008-26='a' or $controlField008-26='e' or $controlField008-26='f' or $controlField008-26='g'"> >+ <span class="label">; Type of computer file: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-26='a'"> >+ numeric data >+ </xsl:when> >+ <xsl:when test="$controlField008-26='e'"> >+ <img src="/opac-tmpl/lib/famfamfam/database.png" alt="database" class="format"/> >+ </xsl:when> >+ <xsl:when test="$controlField008-26='f'"> >+ <img src="/opac-tmpl/lib/famfamfam/font.png" alt="font" class="format"/> >+ </xsl:when> >+ <xsl:when test="$controlField008-26='g'"> >+ <img src="/opac-tmpl/lib/famfamfam/controller.png" alt="game" class="format"/> >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='BK'"> >+ <span class="results_contents_literary"> >+ <xsl:if test="(substring($controlField008,25,1)='j') or (substring($controlField008,25,1)='1') or ($controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d')"> >+ <span class="label">; Nature of contents: </span> >+ </xsl:if> >+ <xsl:if test="substring($controlField008,25,1)='j'"> >+ patent >+ </xsl:if> >+ <xsl:if test="substring($controlField008,31,1)='1'"> >+ festschrift >+ </xsl:if> >+ <xsl:if test="$controlField008-34='a' or $controlField008-34='b' or $controlField008-34='c' or $controlField008-34='d'"> >+ <img src="/opac-tmpl/lib/famfamfam/user.png" alt="biography" class="natureofcontents"/> >+ </xsl:if> >+ >+ <xsl:if test="$controlField008-33 and $controlField008-33!='|' and $controlField008-33!='u' and $controlField008-33!=' '"> >+ <span class="label">; Literary form: </span> >+ </xsl:if> >+ <xsl:choose> >+ <xsl:when test="$controlField008-33='0'"> >+ Not fiction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='1'"> >+ Fiction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='d'"> >+ Dramas >+ </xsl:when> >+ <xsl:when test="$controlField008-33='e'"> >+ Essays >+ </xsl:when> >+ <xsl:when test="$controlField008-33='f'"> >+ Novels >+ </xsl:when> >+ <xsl:when test="$controlField008-33='h'"> >+ Humor, satires, etc. >+ </xsl:when> >+ <xsl:when test="$controlField008-33='i'"> >+ Letters >+ </xsl:when> >+ <xsl:when test="$controlField008-33='j'"> >+ Short stories >+ </xsl:when> >+ <xsl:when test="$controlField008-33='m'"> >+ Mixed forms >+ </xsl:when> >+ <xsl:when test="$controlField008-33='p'"> >+ Poetry >+ </xsl:when> >+ <xsl:when test="$controlField008-33='s'"> >+ Speeches >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='MU' and $controlField008-30-31 and $controlField008-30-31!='||' and $controlField008-30-31!=' '"> >+ <span class="results_literaryform"> >+ <span class="label">; Literary form: </span> <!-- Literary text for sound recordings --> >+ <xsl:if test="contains($controlField008-30-31,'b')"> >+ biography >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'c')"> >+ conference publication >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'d')"> >+ drama >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'e')"> >+ essay >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'f')"> >+ fiction >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'o')"> >+ folktale >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'h')"> >+ history >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'k')"> >+ humor, satire >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'m')"> >+ memoir >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'p')"> >+ poetry >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'r')"> >+ rehearsal >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'g')"> >+ reporting >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'s')"> >+ sound >+ </xsl:if> >+ <xsl:if test="contains($controlField008-30-31,'l')"> >+ speech >+ </xsl:if> >+ </span> >+ </xsl:if> >+ <xsl:if test="$materialTypeCode='VM'"> >+ <span class="results_typeofvisual"> >+ <span class="label">; Type of visual material: </span> >+ <xsl:choose> >+ <xsl:when test="$controlField008-33='a'"> >+ art original >+ </xsl:when> >+ <xsl:when test="$controlField008-33='b'"> >+ kit >+ </xsl:when> >+ <xsl:when test="$controlField008-33='c'"> >+ art reproduction >+ </xsl:when> >+ <xsl:when test="$controlField008-33='d'"> >+ diorama >+ </xsl:when> >+ <xsl:when test="$controlField008-33='f'"> >+ filmstrip >+ </xsl:when> >+ <xsl:when test="$controlField008-33='g'"> >+ game >+ </xsl:when> >+ <xsl:when test="$controlField008-33='i'"> >+ picture >+ </xsl:when> >+ <xsl:when test="$controlField008-33='k'"> >+ graphic >+ </xsl:when> >+ <xsl:when test="$controlField008-33='l'"> >+ technical drawing >+ </xsl:when> >+ <xsl:when test="$controlField008-33='m'"> >+ motion picture >+ </xsl:when> >+ <xsl:when test="$controlField008-33='n'"> >+ chart >+ </xsl:when> >+ <xsl:when test="$controlField008-33='o'"> >+ flash card >+ </xsl:when> >+ <xsl:when test="$controlField008-33='p'"> >+ microscope slide >+ </xsl:when> >+ <xsl:when test="$controlField008-33='q' or marc:controlfield[@tag=007][substring(text(),1,1)='a'][substring(text(),2,1)='q']"> >+ model >+ </xsl:when> >+ <xsl:when test="$controlField008-33='r'"> >+ realia >+ </xsl:when> >+ <xsl:when test="$controlField008-33='s'"> >+ slide >+ </xsl:when> >+ <xsl:when test="$controlField008-33='t'"> >+ transparency >+ </xsl:when> >+ <xsl:when test="$controlField008-33='v'"> >+ videorecording >+ </xsl:when> >+ <xsl:when test="$controlField008-33='w'"> >+ toy >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ </xsl:if> > >+ <xsl:if test="($materialTypeCode='BK' or $materialTypeCode='CF' or $materialTypeCode='MU' or $materialTypeCode='VM') and ($controlField008-22='a' or $controlField008-22='b' or $controlField008-22='c' or $controlField008-22='d' or $controlField008-22='e' or $controlField008-22='g' or $controlField008-22='j' or $controlField008-22='f')"> >+ <span class="results_audience"> >+ <span class="label">; Audience: </span> >+ <xsl:choose> >+ <xsl:when test="$controlField008-22='a'"> >+ Preschool; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='b'"> >+ Primary; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='c'"> >+ Pre-adolescent; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='d'"> >+ Adolescent; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='e'"> >+ Adult; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='g'"> >+ General; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='j'"> >+ Juvenile; >+ </xsl:when> >+ <xsl:when test="$controlField008-22='f'"> >+ Specialized; >+ </xsl:when> >+ </xsl:choose> >+ </span> >+ </xsl:if> >+ </span> >+ </xsl:if> > > <!-- Publisher or Distributor Number --> > <xsl:if test="marc:datafield[@tag=028]"> >-- >2.20.1
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 20161
:
131294
| 131303