Bugzilla – Attachment 10380 Details for
Bug 6720
Saved authorities always show as 'Default'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6720: Display the authority type in OPAC
Bug-6720-Display-the-authority-type-in-OPAC.patch (text/plain), 2.38 KB, created by
Jared Camins-Esakov
on 2012-06-20 12:49:37 UTC
(
hide
)
Description:
Bug 6720: Display the authority type in OPAC
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-06-20 12:49:37 UTC
Size:
2.38 KB
patch
obsolete
>From 8ab7e6a3d7c5f48f098736956e2f569eae4eddf0 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Mon, 28 May 2012 14:49:04 -0400 >Subject: [PATCH] Bug 6720: Display the authority type in OPAC >Content-Type: text/plain; charset="UTF-8" > >Due to a peculiarity in the way SearchAuthorities worked, the authority >search results on the OPAC always listed the authority type that the >user searched for, rather than the authority type of the results. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Works nicely, result list for OPAC search now shows the authority type >for each record. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Rebased 20 June 2012. >--- > C4/AuthoritiesMarc.pm | 4 ++++ > .../en/modules/opac-authoritiessearchresultlist.tt | 2 +- > 2 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index c92c319..f209ab1 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -351,6 +351,10 @@ sub SearchAuthorities { > $reported_tag .= '$' . $_->[0] . $_->[1]; > } > } >+ my $thisauthtype = GetAuthType(GetAuthTypeCode($authid)); >+ $newline{authtype} = defined ($thisauthtype) ? >+ $thisauthtype->{'summary'} : >+ GetAuthType($authtypecode)->{'summary'}; > $newline{summary} = $summary; > $newline{even} = $counter % 2; > $newline{reported_tag} = $reported_tag; >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt >index a27480a..2573dad 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt >@@ -54,7 +54,7 @@ > <tr> > [% END %] > <td>[% PROCESS authresult summary=resul.summary %]</td> >- <td>[% authtypetext %]</td> >+ <td>[% resul.authtype %]</td> > [% UNLESS ( resul.isEDITORS ) %] > <td> > <a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an=[% resul.authid %]">[% resul.used %] biblios</a> >-- >1.7.2.5
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 6720
:
4999
|
10265
|
10294
|
10295
|
10297
|
10380
|
10444
|
10861
|
11296