Bugzilla – Attachment 72552 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: Add direct link to authority records from staff detail view (MARC21 subjects)
Bug-16427-Add-direct-link-to-authority-records-fro.patch (text/plain), 4.05 KB, created by
Katrin Fischer
on 2018-03-09 07:17:32 UTC
(
hide
)
Description:
Bug 16427: Add direct link to authority records from staff detail view (MARC21 subjects)
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-03-09 07:17:32 UTC
Size:
4.05 KB
patch
obsolete
>From 036098ff2b195b66fe79d8ac63334338339221cf 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: Add direct link to authority records from staff > detail view (MARC21 subjects) > >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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 17 +++++++++++++++++ > 1 file changed, 17 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..cf39ec4 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,20 @@ > </xsl:with-param> > </xsl:call-template> > </a> >+ >+ <xsl:if test="marc:subfield[@code=9]"> >+ <xsl:text> </xsl:text> >+ <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