Bugzilla – Attachment 98724 Details for
Bug 21921
Add publication year to the Z39.50 search form for bibliographic records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition
Bug-21921-Add-date-publication-year-to-biblio-Z395.patch (text/plain), 4.50 KB, created by
Josef Moravec
on 2020-02-11 19:10:32 UTC
(
hide
)
Description:
Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2020-02-11 19:10:32 UTC
Size:
4.50 KB
patch
obsolete
>From 21e83cb6eb9c9c0540b1cd5d09cc599b2ca17525 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >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 >--- > 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 : > <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li> > <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle" name="title" value="[% title | html %]" class="focus" /></li> > <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li> >+ <li><label for="publicationyear">Publication year: </label> <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /></li> > <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li> > <li><label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li> > <li><label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="" /></li> >@@ -90,6 +91,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : > <p>You searched for: > [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %] > [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %] >+ [% IF ( publicationyear ) %]<em>Publication year: </em><span class=term>[% publicationyear | html %]</span> [% END %] > [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %] > [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %] > [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %] >@@ -175,6 +177,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : > <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" /> > <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" /> > <input type="hidden" id="author" name="author" value="[% author | html %]" /> >+ <input type="hidden" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> > <input type="hidden" id="subject" name="subject" value="[% subject | html %]" /> > <input type="hidden" id="dewey" name="dewey" value="[% dewey | html %]" /> > <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" /> >-- >2.11.0
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 21921
:
82769
|
82770
|
82771
|
98723
|
98724
|
98726
|
98727
|
99019
|
99020