Bugzilla – Attachment 23153 Details for
Bug 7442
Crash when selecting an authority with 200$x or 200$y
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 7442 - Follow up : Authorities search on all types does not show summary
PASSED-QA-Bug-7442---Follow-up--Authorities-search.patch (text/plain), 2.51 KB, created by
Katrin Fischer
on 2013-11-26 07:47:50 UTC
(
hide
)
Description:
[PASSED QA] Bug 7442 - Follow up : Authorities search on all types does not show summary
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-11-26 07:47:50 UTC
Size:
2.51 KB
patch
obsolete
>From a31651a08de33b4418c83a1302111b7988a24564 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 18 Jul 2013 18:13:12 +0200 >Subject: [PATCH] [PASSED QA] Bug 7442 - Follow up : Authorities search on all > types does not show summary >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch corrects a small bug : > >Authorities search on all types does not show summary because it is computed >with selected type (which is empty) instead of using found authority type. > >Test plan : >- Go to intranet autorities search >- Perform a search on all authorities types >- Look at results > => Without this patch, results rows do not display the autority summary, only > authorized headings > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > C4/AuthoritiesMarc.pm | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 753fbbd..35544dc 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -274,8 +274,6 @@ sub SearchAuthorities { > my %newline; > $newline{authid} = $authid; > if ( !$skipmetadata ) { >- my $summary = >- BuildSummary( $authrecord, $authid, $authtypecode ); > my $query_auth_tag = > "SELECT auth_tag_to_report FROM auth_types WHERE authtypecode=?"; > my $sth = $dbh->prepare($query_auth_tag); >@@ -284,15 +282,18 @@ sub SearchAuthorities { > my $reported_tag; > my $mainentry = $authrecord->field($auth_tag_to_report); > if ($mainentry) { >- > foreach ( $mainentry->subfields() ) { > $reported_tag .= '$' . $_->[0] . $_->[1]; > } > } >- my $thisauthtype = GetAuthType(GetAuthTypeCode($authid)); >+ my $thisauthtypecode = GetAuthTypeCode($authid); >+ my $thisauthtype = GetAuthType($thisauthtypecode); > unless (defined $thisauthtype) { >- $thisauthtype = GetAuthType($authtypecode) if $authtypecode; >+ $thisauthtypecode = $authtypecode; >+ $thisauthtype = GetAuthType($authtypecode); > } >+ my $summary = BuildSummary( $authrecord, $authid, $thisauthtypecode ); >+ > $newline{authtype} = defined($thisauthtype) ? > $thisauthtype->{'authtypetext'} : ''; > $newline{summary} = $summary; >-- >1.8.3.2
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 7442
:
7133
|
7135
|
9410
|
19776
|
19777
|
19778
|
19779
|
23152
| 23153