Bugzilla – Attachment 24739 Details for
Bug 10544
stocknumber index is an alias of Number-local-acquisition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10544 - add Number-local-acquisition in QueryParser config
Bug-10544---add-Number-local-acquisition-in-QueryP.patch (text/plain), 2.45 KB, created by
Marcel de Rooy
on 2014-01-27 09:18:01 UTC
(
hide
)
Description:
Bug 10544 - add Number-local-acquisition in QueryParser config
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-01-27 09:18:01 UTC
Size:
2.45 KB
patch
obsolete
>From 33797c9adc545b9a745215b782c6b34d058e5021 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 24 Jul 2013 12:39:59 +0200 >Subject: [PATCH] Bug 10544 - add Number-local-acquisition in QueryParser > config >Content-Type: text/plain; charset=utf-8 > >This patch adds the Number-local-acquisition into QueryParser configuration file. >Like in ccl.properties, "Number-local-acquisition" is the main index name and "stocknumber" and "inv" are aliases. > >Test plan : >Enable QueryParser : >- Enable UseQueryParser syspref >- Edit your koha-conf.xml >- Add to "config" node : <queryparser_config>[your path]/etc/searchengine/queryparser.yaml</queryparser_config>, adapt [your patch] to your install configuration folder >- If needed copy from sources "etc/searchengine/queryparser.yaml" into your install configuration folder >Test search : >- Add Number-local-acquisition on an existing subfield in records.abs. For example on item barcode field >- Reindex Zebra database >- Choose a value of this field that will match some results. For example : "0*" will match all barcodes beginning with zero >- In intranet, enter this URL : <your server>/cgi-bin/koha/catalogue/search.pl?idx=stocknumber&q=0*&sort_by=relevance >=> You get some results >- In intranet, enter this URL : <your server>/cgi-bin/koha/catalogue/search.pl?idx=inv&q=0*&sort_by=relevance >=> You get the same results >- In intranet, enter this URL : <your server>/cgi-bin/koha/catalogue/search.pl?idx=number-local-acquisition&q=0*&sort_by=relevance >=> You get the same results > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Comments on case sensitivity of index names in QueryParser, see Bugzilla. >--- > etc/searchengine/queryparser.yaml | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml >index 832643a..6236580 100644 >--- a/etc/searchengine/queryparser.yaml >+++ b/etc/searchengine/queryparser.yaml >@@ -956,16 +956,17 @@ field_mappings: > aliases: > - stock-number > label: Stock-number >- stocknumber: >+ number-local-acquisition: > bib1_mapping: > biblioserver: > 1: 1062 > enabled: 1 >- index: stocknumber >+ index: number-local-acquisition > aliases: >+ - number-local-acquisition > - stocknumber > - inv >- label: Stocknumber >+ label: Number-local-acquisition > summary: > bib1_mapping: > biblioserver: >-- >1.7.7.6
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 10544
:
19417
|
19443
|
19924
|
19925
|
22344
|
22345
|
22346
|
22347
|
22353
|
22354
|
22355
|
24737
|
24738
|
24739
|
25276
|
25277
|
25278