Bugzilla – Attachment 129236 Details for
Bug 28247
Add a MARC preview column to to Authority search results table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28247: (folow up) Add a MARC preview action to Authority search results
Bug-28247-folow-up-Add-a-MARC-preview-action-to-Au.patch (text/plain), 3.37 KB, created by
Samu Heiskanen
on 2022-01-09 21:37:29 UTC
(
hide
)
Description:
Bug 28247: (folow up) Add a MARC preview action to Authority search results
Filename:
MIME Type:
Creator:
Samu Heiskanen
Created:
2022-01-09 21:37:29 UTC
Size:
3.37 KB
patch
obsolete
>From 32aac985b000cd97d5a8ffdbff4278c747d018cd Mon Sep 17 00:00:00 2001 >From: George Veranis <gveranis@dataly.gr> >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 <samu.heiskanen@hypernova.fi> >--- > 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 @@ > <table> > <tr> > <th>Summary</th> >- <th>MARC preview</th> > <th>Heading type</th> > [% UNLESS ( isEDITORS ) %] > <th>Used in</th> >@@ -58,7 +57,6 @@ > <tr data-authid="[% resul.authid | html %]"> > <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td> > <td>[% resul.authtype | html %]</td> >- <td><a class="previewMARC btn btn-default btn-xs" href="showmarc.pl?id=[% resul.authid | uri %]&viewas=html" title="MARC">Show</a></td> > [% UNLESS ( resul.isEDITORS ) %] > <td> > [% IF resul.used > 0 %] >@@ -75,6 +73,7 @@ > Actions <b class="caret"></b></a> > <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authactions[% resul.authid | html %]"> > <li><a href="/cgi-bin/koha/authorities/authorities.pl?authid=[% resul.authid | uri %]"><i class="fa fa-pencil"></i> Edit</a></li> >+ <li><a class="previewMARC" href="showmarc.pl?authid=[% resul.authid | uri %]&viewas=html"><i class="fa fa-eye"></i> MARC preview</a></li> > <li><a class="merge_auth" href="#merge"><i class="fa fa-compress"></i> Merge</a></li> > [% UNLESS ( resul.used ) %] > <li><a onclick='return confirm_deletion("[% resul.authid | html %]")'><i class="fa fa-trash"></i> Delete</a></li> >@@ -129,4 +128,4 @@ > $("#marcPreview").on("hidden.bs.modal", function(){ > $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); > }); >-</script> >\ No newline at end of file >+</script> >-- >2.25.1
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 28247
:
120260
|
120261
|
121795
|
129206
| 129236 |
131212