Bugzilla – Attachment 82771 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), 3.41 KB, created by
Michal Denar
on 2018-11-30 09:39:48 UTC
(
hide
)
Description:
Bug 21921: Add date publication year to biblio Z39.50 search form
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2018-11-30 09:39:48 UTC
Size:
3.41 KB
patch
obsolete
>From 82d6e92fcab9fc9760cf28df7a8cfef41dc2f3ee 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> >--- > C4/Breeding.pm | 1 + > cataloguing/z3950_search.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt | 1 + > 3 files changed, 5 insertions(+) > >diff --git a/C4/Breeding.pm b/C4/Breeding.pm >index 9afd2f123d..83f4fd133a 100644 >--- a/C4/Breeding.pm >+++ b/C4/Breeding.pm >@@ -264,6 +264,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 3e074c455a..2d8e7ab24e 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 >@@ -26,6 +26,7 @@ > <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li> > <li><label for="title">Title: </label> <input type="text" id="title" name="title" value="[% title | html %]" /></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> >-- >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