From 32aac985b000cd97d5a8ffdbff4278c747d018cd Mon Sep 17 00:00:00 2001 From: George Veranis Date: Fri, 7 Jan 2022 23:40:42 +0100 Subject: [PATCH] Bug 28247: (folow up) Add a MARC preview action to Authority search results To test: 1) Do an authority search 2) On Actions button click to see the available actions and click on "MARC preview" action. 3) A modal window open and confirm that the correct details are shown. Signed-off-by: Samu Heiskanen --- authorities/showmarc.pl | 8 ++++---- .../prog/en/modules/authorities/searchresultlist.tt | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/authorities/showmarc.pl b/authorities/showmarc.pl index 4d6f722928..9cd4357da7 100755 --- a/authorities/showmarc.pl +++ b/authorities/showmarc.pl @@ -29,9 +29,9 @@ use Encode; # Koha modules used use C4::Context; -use C4::Output; -use C4::Auth; -use C4::AuthoritiesMarc; +use C4::Output qw( output_html_with_http_headers ); +use C4::Auth qw( get_template_and_user ); +use C4::AuthoritiesMarc qw( GetAuthority GetAuthorityXML ); use C4::XSLT (); my $input= CGI->new; @@ -45,7 +45,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $authid = $input->param('id'); +my $authid = $input->param('authid'); my $view = $input->param('viewas')||''; my $record = GetAuthority($authid); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt index 8fcc9d2988..7b77b7612b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt @@ -45,7 +45,6 @@ - [% UNLESS ( isEDITORS ) %] @@ -58,7 +57,6 @@ - [% UNLESS ( resul.isEDITORS ) %]
SummaryMARC preview Heading typeUsed in
[% PROCESS authresult summary=resul.summary authid=resul.authid %] [% resul.authtype | html %]Show [% IF resul.used > 0 %] @@ -75,6 +73,7 @@ Actions