From e5cec32d078eac98b603d637b7d713a780be3e66 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 24 Oct 2013 15:28:42 +0200 Subject: [PATCH] Bug 11131: display authority summary correctly when searching by all authority types The summary is built using the authtypecode selected from the interface. So when a search is launch on all auth types, the summary is not correctly built by the BuildSummary routine. It should get the authtypecode from the authority (call to GetAuthTypeCode). To test: 1/ go to authorities/authorities-home.pl 2/ search by authtype personal name 3/ results are displayed with summary 4/ now select the default entry and search again the results display but without the summary 5/ apply the patch 6/ search default again, now summary shows Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Tested with a UNIMARC database, works as described. All tests and QA script pass. Signed-off-by: Galen Charlton --- C4/AuthoritiesMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 7443f36c15..a22190b9fb 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -275,7 +275,7 @@ sub SearchAuthorities { $newline{authid} = $authid; if ( !$skipmetadata ) { my $summary = - BuildSummary( $authrecord, $authid, $authtypecode ); + BuildSummary( $authrecord, $authid, GetAuthTypeCode($authid) ); my $query_auth_tag = "SELECT auth_tag_to_report FROM auth_types WHERE authtypecode=?"; my $sth = $dbh->prepare($query_auth_tag); -- 2.39.5