Bugzilla – Attachment 150357 Details for
Bug 29185
Show MARC21 tag 765 - Original Language Entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29185: Facilitate searching for cnum
Bug-29185-Facilitate-searching-for-cnum.patch (text/plain), 2.08 KB, created by
Martin Renvoize (ashimema)
on 2023-04-28 07:30:04 UTC
(
hide
)
Description:
Bug 29185: Facilitate searching for cnum
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-04-28 07:30:04 UTC
Size:
2.08 KB
patch
obsolete
>From ea74ede70af37dadc2baed9868152c56e3308949 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 23 Mar 2023 08:02:42 +0000 >Subject: [PATCH] Bug 29185: Facilitate searching for cnum > >Instead of typing the case sensitive Control-number each time. >4 strikes instead of 15 on your keyboard. Wow! Gain of 73%. > >Test plan: >Copy ccl.properties to /etc/koha/zebradb, restart Zebra and >search for cnum=SOME_ID in opac or intranet. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Search.pm | 1 + > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + > etc/zebradb/ccl.properties | 1 + > 3 files changed, 3 insertions(+) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 5985db2edb..ea54de1158 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1009,6 +1009,7 @@ sub getIndexes{ > 'Conference-name-seealso', > 'Content-type', > 'Control-number', >+ 'cnum', > 'Control-number-identifier', > 'cni', > 'copydate', >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index d5dbdee886..26d52051cf 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -82,6 +82,7 @@ our %index_field_convert = ( > 'notes' => 'note', > 'rcn' => 'record-control-number', > 'cni' => 'control-number-identifier', >+ 'cnum' => 'control-number', > 'su' => 'subject', > 'su-to' => 'subject', > #'su-geo' => 'subject', >diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties >index b71036e872..985f7391bc 100644 >--- a/etc/zebradb/ccl.properties >+++ b/etc/zebradb/ccl.properties >@@ -986,6 +986,7 @@ ext 4=1 6=3 > ### > # Koha Local-Use Biblio Indexes > Control-number 1=9001 >+cnum Control-number > biblionumber 1=9002 > totalissues 1=9003 > cn-bib-source 1=9004 >-- >2.40.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 29185
:
149588
|
149589
|
149590
|
149906
|
149907
|
149908
| 150357 |
150358
|
150359
|
150365
|
151009