Bugzilla – Attachment 70666 Details for
Bug 16427
Direct link to authority records missing in staff detail view (MARC21 6xx)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16427 - Direct link to authority records missing staff detail view
Bug-16427---Direct-link-to-authority-records-missi.patch (text/plain), 3.86 KB, created by
Te Rauhina Jackson
on 2018-01-18 02:50:24 UTC
(
hide
)
Description:
Bug 16427 - Direct link to authority records missing staff detail view
Filename:
MIME Type:
Creator:
Te Rauhina Jackson
Created:
2018-01-18 02:50:24 UTC
Size:
3.86 KB
patch
obsolete
>From b9e155b9b7e8afc5365f42a4bc1418d1dcbcff48 Mon Sep 17 00:00:00 2001 >From: Te Rauhina Jackson <terauhina.jackson@gmail.com> >Date: Thu, 18 Jan 2018 02:20:11 +0000 >Subject: [PATCH] Bug 16427 - Direct link to authority records missing staff > detail view > >I added a magnigying glass icon in the staff detail view that links to the authority records. > >Test Plan: >1) On the Koha staff page, create a new authority. The type of authority will be: Topical Term. >2) When creating authority, in tab 1 under -HEADING--TOPICAL TERM enter the topical term or geographic name entry element and then save the new authority e.g. science. >3) In circulation, search the catalog for a random book. Click the title of the book and you will be taken to the book details. >4) Edit the record and in tab 6, scroll down the - SUBJECT ADDED >ENTRY--TOPICAL TERM and repeat this tag (the icon next to the title). >5) Edit the Topical term or geographic name entry element by clicking the button on the right of the bar. >6) In the Search main heading ($a only) enter your topical term e.g. science. >7) Press search, and then in the table that pops up, click 'choose'. >8) Save your edits and the new topical term will be in the 'Subject(s)' list of the book details. >9) Notice that there is no magnifying glass icon. >10) Apply this patch >11) Notice that there is now a magnifying glass icon next to the topical term. >12) Click on the magnifying glass and it will take you directly to the authorities records >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index b699341..a8e9941 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -40,6 +40,7 @@ > <xsl:otherwise>"</xsl:otherwise> > </xsl:choose> > </xsl:variable> >+ > <xsl:variable name="leader" select="marc:leader"/> > <xsl:variable name="leader6" select="substring($leader,7,1)"/> > <xsl:variable name="leader7" select="substring($leader,8,1)"/> >@@ -696,11 +697,13 @@ > </xsl:call-template> > </xsl:attribute> > </xsl:when> >+ > <!-- #1807 Strip unwanted parenthesis from subjects for searching --> > <xsl:otherwise> > <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="translate(marc:subfield[@code='a'],'()','')"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute> > </xsl:otherwise> > </xsl:choose> >+ > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >@@ -711,6 +714,19 @@ > </xsl:with-param> > </xsl:call-template> > </a> >+ >+ <xsl:if test="marc:subfield[@code=9]"> >+ <a class='authlink'> >+ <xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> >+ <xsl:element name="img"> >+ <xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute> >+ <xsl:attribute name="alt"></xsl:attribute> >+ <xsl:attribute name="height">15</xsl:attribute> >+ <xsl:attribute name="width">15</xsl:attribute> >+ </xsl:element> >+ </a> >+ </xsl:if> >+ > <xsl:choose> > <xsl:when test="position()=last()"></xsl:when> > <xsl:otherwise> | </xsl:otherwise> >-- >2.1.4
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 16427
:
70666
|
70708
|
70742
|
72552