Bugzilla – Attachment 119948 Details for
Bug 28160
Values from 150$a aren't prefilled in z39.50 search form from an existing authority record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28160: Values from 150$a aren't prefilled in z39.50 search form from an existing authority record
Bug-28160-Values-from-150a-arent-prefilled-in-z395.patch (text/plain), 2.82 KB, created by
Owen Leonard
on 2021-04-21 13:35:37 UTC
(
hide
)
Description:
Bug 28160: Values from 150$a aren't prefilled in z39.50 search form from an existing authority record
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-04-21 13:35:37 UTC
Size:
2.82 KB
patch
obsolete
>From 11eb4ffdc7706423fec5b3a5ee3f28d3bc0ad56c Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Fri, 16 Apr 2021 11:44:14 -0700 >Subject: [PATCH] Bug 28160: Values from 150$a aren't prefilled in z39.50 > search form from an existing authority record > >For names and uniform titles, when you do a z39.50 search from an authority >record, we prefill what's in the relevant tag's subfield a in the search >form, but for subjects, we don't, both because GetMandatoryFieldZ3950 thinks >the param is topic when it's actually subject, and because >z3950_auth_search.tt doesn't bother putting the value of &subject into the >form. > >Test plan: > >1) Authorities - New authority - Topical Term >2) Tab 1, click on HEADING-TOPICAL TERM to expand subfields >3) In subfield a, type goats >4) Click Z39.50/SRU search and verify that the Subject heading search field > has goats prefilled > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > authorities/authorities.pl | 2 +- > .../intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/authorities/authorities.pl b/authorities/authorities.pl >index 103e10698a..3dd39f4e7f 100755 >--- a/authorities/authorities.pl >+++ b/authorities/authorities.pl >@@ -336,7 +336,7 @@ sub GetMandatoryFieldZ3950 { > '110a' => 'authorcorp', > '111a' => 'authormeetingcon', > '130a' => 'uniformtitle', >- '150a' => 'topic', >+ '150a' => 'subject', > }; > }else{ > return { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >index ace0b4fcc6..c050f4dda2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt >@@ -39,7 +39,7 @@ > <div class="row"> > <fieldset class="rows"> > <ol> >- <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li> >+ <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="[% subject | html %]" /></li> > <li><label for="subjectsubdiv">Subject sub-division: </label> <input type="text" id="subjectsubdiv" name="subjectsubdiv" value="" /></li> > <li><label for="title">Title (any): </label> <input type="text" id="title" name="title" value="[% title | html %]" /></li> > <li><label for="uniformtitle">Title (uniform): </label> <input type="text" id="uniformtitle" name="uniformtitle" value="[% uniformtitle | html %]" /></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 28160
:
119781
|
119948
|
120714