Bugzilla – Attachment 99019 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
Bug-21921-Add-date-publication-year-to-biblio-Z395.patch (text/plain), 4.96 KB, created by
Katrin Fischer
on 2020-02-14 19:27:42 UTC
(
hide
)
Description:
Bug 21921: Add date publication year to biblio Z39.50 search form
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-02-14 19:27:42 UTC
Size:
4.96 KB
patch
obsolete
>From 9748d804404ea9f9ca96e068a975dc694375e3af Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 30 Nov 2018 09:06:22 +0000 >Subject: [PATCH] Bug 21921: Add date publication year to biblio Z39.50 search > form > >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" > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > C4/Breeding.pm | 1 + > cataloguing/z3950_search.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt | 4 ++++ > 3 files changed, 8 insertions(+) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index a93189c13f..5d2f49b5a2 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -258,6 +258,7 @@ sub _bib_build_query { > controlnumber => '@attr 1=12 "#term" ', > srchany => '@attr 1=1016 "#term" ', > stdid => '@attr 1=1007 "#term" ', >+ publicationyear => '@attr 1=31 "#term" ' > }; > > return _build_query( $pars, $qry_build ); >diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl >index dcc2581c02..e4fce45597 100755 >--- a/cataloguing/z3950_search.pl >+++ b/cataloguing/z3950_search.pl >@@ -42,6 +42,7 @@ my $dewey = $input->param('dewey'); > my $controlnumber = $input->param('controlnumber'); > my $stdid = $input->param('stdid'); > my $srchany = $input->param('srchany'); >+my $publicationyear = $input->param('publicationyear'); > my $op = $input->param('op')||''; > > my $page = $input->param('current_page') || 1; >@@ -68,6 +69,7 @@ $template->param( > biblionumber => $biblionumber, > dewey => $dewey, > subject => $subject, >+ publicationyear => $publicationyear, > ); > > if ( $op ne "do_search" ) { >@@ -111,6 +113,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/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >index e020742167..0029dc2551 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt >@@ -31,6 +31,8 @@ > <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> >@@ -88,6 +90,7 @@ > 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 %] >@@ -192,6 +195,7 @@ > <input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" /> > <input type="hidden" id="srchany" name="srchany" value="[% srchany | 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" id="stdid" name="stdid" value="[% stdid | 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