From ac65d618748ac817ac216bf95f3bddd88619b1b0 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Tue, 11 Feb 2020 19:03:18 +0000 Subject: [PATCH] Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition Test plan: 1) Apply the patch 2) Have a Z39.50 endpoint with attr 31 defined - Library of Congress supports this 3) Try to find some biblio records through Z39.50 using the new field "Publication year" in acquisition module Signed-off-by: Michal Denar --- acqui/z3950_search.pl | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index 4e53186bf1..adb9890a90 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -45,6 +45,7 @@ my $srchany = $input->param('srchany'); my $stdid = $input->param('stdid'); my $dewey = $input->param('dewey'); my $controlnumber = $input->param('controlnumber'); +my $publicationyear = $input->param('publicationyear'); my $op = $input->param('op')||''; my $booksellerid = $input->param('booksellerid'); my $basketno = $input->param('basketno'); @@ -82,6 +83,7 @@ $template->param( subject => $subject, srchany => $srchany, stdid => $stdid, + publicationyear => $publicationyear, ); if ( $op ne "do_search" ) { @@ -124,6 +126,7 @@ my $pars= { controlnumber => $controlnumber, stdid => $stdid, srchany => $srchany, + publicationyear => $publicationyear, }; Z3950Search($pars, $template); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index ff5a34d3f2..ad836fefd3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -34,6 +34,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
  • +
  • @@ -90,6 +91,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :

    You searched for: [% IF ( title ) %]Title: [% title | html %] [% END %] [% IF ( author ) %]Author: [% author | html %] [% END %] + [% IF ( publicationyear ) %]Publication year: [% publicationyear | html %] [% END %] [% IF ( isbn ) %]ISBN: [% isbn | html %] [% END %] [% IF ( issn ) %]ISSN: [% issn | html %] [% END %] [% IF ( lccall ) %]LC call number: [% lccall | html %] [% END %] @@ -175,6 +177,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : + -- 2.11.0