Bugzilla – Attachment 148779 Details for
Bug 26433
Control number search option missing from SRU mapping options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26433: Add Control number to SRU field configuration
Bug-26433-Add-Control-number-to-SRU-field-configur.patch (text/plain), 2.95 KB, created by
Marcel de Rooy
on 2023-03-27 14:15:39 UTC
(
hide
)
Description:
Bug 26433: Add Control number to SRU field configuration
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-03-27 14:15:39 UTC
Size:
2.95 KB
patch
obsolete
>From 00b9b4dc84633dbe2270a441bcda54125ecedf09 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 18 Jan 2023 15:11:34 +0000 >Subject: [PATCH] Bug 26433: Add Control number to SRU field configuration >Content-Type: text/plain; charset=utf-8 > >This simply adds a row to the config page for configuring a mapping for Control >number, without this patch you cannot configure the feild, and the default is 'any' > >I used the first record here for testing: >http://lx2.loc.gov:210/NAF?operation=searchRetrieve&version=1.1&query=query=bath.personalName=%22butler%20octavia%22&maximumRecords=20&recordSchema=marcxml > >Enter SRU server using settings here: >https://www.loc.gov/z3950/lcserver.html#serv > host: lx2.loc.gov > port: 210 > db: NAF > userid: > password: > servername: LOC SRU > checked: NULL > rank: NULL > syntax: USMARC > timeout: 0 > servertype: sru > encoding: utf8 > recordtype: authority > >To test: >1 - Setup SRU server using settings above >2 - In the server config click 'Modify' under 'SRU search fields mapping' >3 - Note you don't have an option for 'Control number' >4 - Go to Authorities >5 - New from Z39.50/SRU >6 - Search 'Control number' field with: PS3552.U827 >7 - You get the record noted above as all fields are searched >8 - Search 'Control number' field with: 79056654 >9 - You get the record noted above as all fields are searched >10 - Apply patch >11 - In the server config click 'Modify' under 'SRU search fields mapping' >12 - Note you now have a config for 'Control number' >13 - Enter 'bath.lccn' >14 - Save >15 - Repeat search from #6 - no result >16 - Repeat search from #8 - correct result as only lccn fields are search >17 - Modify server config ans set 'Control number' to 'bath.lcCallNumber' >18 - Repeat search from #6 - correct results as call number field is now search >19 - Repeast search from #8 - no result > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/admin/sru_modmapping_auth.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >index 1dcca9ec84..f778d64e6d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >@@ -43,6 +43,10 @@ > </div> > <div class="col-xs-6"> > <ol> >+ <li> >+ <label for="controlnumber">Control number: </label> >+ <input id="controlnumber" type="text" value="[% mapping.controlnumber | html %]" /> >+ </li> > <li> > <label for="subject">Subject heading: </label> > <input id="subject" type="text" value="[% mapping.subject | html %]" /> >-- >2.30.2
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 26433
:
145399
|
148746
|
148779
|
148784