[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2013-10-29 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Colin Campbell  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff
   Assignee|gmcha...@gmail.com  |colin.campbell@ptfs-europe.
   ||com

--- Comment #1 from Colin Campbell  ---
Created attachment 22517
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22517&action=edit
Proposed patch

This change appears to fix the problem. At the same time it does not appear to
break the behaviour with 'chr' To test on a system set up to use ICU find a
test case similar to that in the bug description. Apply the patch and redo the
'starts with' search.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2013-10-29 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #2 from Colin Campbell  ---
There is also a question over the rule being used to tokenise phrase searches
and what would be the best default configuration (including no rule) further
investigation is dependent on bug 10729 as phrase and keyword searching have
different requirements in this respect

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2013-11-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Zeno Tajoli  changed:

   What|Removed |Added

 Status|Needs Signoff   |In Discussion
 CC||z.taj...@cineca.it

--- Comment #3 from Zeno Tajoli  ---
Hi,

I have test it on a system with ICU and with the patch of  bug 10729.
The result is this error on Opac:

ZOOM error 20003 "can't set prefix query" (addinfo: "@or @attr 7=1
@attr 1=Heading 0  @and  @attr 1=authtype @attr 5=100 TOPIC_TERM @attr
1=Heading  \@attr 3=1 \@attr 6=3 \@attr 4=1 \@attr 5=1 "Biblia"") from diag-set
'ZOOM'

Same error in Intranet auth search.

Do you have a proposal for use together this patch and bug 10729 patch ?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2013-11-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #4 from Colin Campbell  ---
I've managed to reproduce Zeno's result and I'm investigating. The problem
seems to be occuring irrespective to whether or not bug 10729 is applied,
(which is logical looking at the error return)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2013-11-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #5 from Colin Campbell  ---
Bug 5615 may have relevance here

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2014-10-27 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Marjorie Barry-Vila  changed:

   What|Removed |Added

 CC||marjorie.barry-v...@ccsr.qc
   ||.ca

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2015-02-22 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Katrin Fischer  changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de

--- Comment #6 from Katrin Fischer  ---
The search part of the manual states that a 'begins with' search is not
possible with ICU - this here seems a bit related. Is there way we can make
this work?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2015-02-23 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Katrin Fischer  changed:

   What|Removed |Added

   See Also||http://bugs.koha-community.
   ||org/bugzilla3/show_bug.cgi?
   ||id=13751

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2015-10-09 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Gaetan Boisson  changed:

   What|Removed |Added

 CC||fridolin.som...@biblibre.co
   ||m,
   ||gaetan.bois...@biblibre.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-06-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

   Assignee|colin.campbell@ptfs-europe. |dc...@prosentient.com.au
   |com |

--- Comment #14 from David Cook  ---
Noticed this as one of the "10 Oldest bugs" under "Needs Signoff". 

Figured I'd update to the Assignee to me too since I apparently wrote the patch
1.5 years ago...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Nind  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Nind  changed:

   What|Removed |Added

 Attachment #114829|0   |1
is obsolete||

--- Comment #15 from David Nind  ---
Created attachment 137049
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137049&action=edit
Bug 11158: Add complete field to authority "starts with" search

This patch adds "complete field" to the authority "starts with"
search so that it uses the untokenized "p" register.

Test plan:
1. Apply the patch
2. koha-plack --restart kohadev
3. Go to http://localhost:8081/cgi-bin/koha/authorities/authorities-home.pl
4. Type in "Espen" into the search box and hit "Submit"
5. Note that there are 3 results
6. Change "contains" to "starts with" and hit "Submit"
7. Note that no results are returned
8. Change the search from "Espen" to "Sandberg" and hit "Submit"
9. Note that 3 results are returned
10. Experiment to your heart's content and rejoice at your new found power

Signed-off-by: David Nind 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Nind  changed:

   What|Removed |Added

 CC||da...@davidnind.com

--- Comment #16 from David Nind  ---
Testing notes (using koha-testing-docker):

1. This is my first time setting up ICU - I followed the instructions at
https://wiki.koha-community.org/wiki/ICU_chains_configuration except for
enabling system preference UseICU, as it no longer exists

2. Queries about setting up ICU:
   . Are the instructions still current?
   . There is no system preference UseICU, but there is UseICUStyleQuotes
   . When editing /etc/koha/zebradb/etc/default.idx I noticed the URX (URL)
index, Numeric index, and Sort register sections reference *.chr files - do
these need changing as well?

3. I used the query in the description (Smith) as well when testing.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Nind  changed:

   What|Removed |Added

  Text to go in the||This fixes searching
  release notes||authorities when using ICU*
   ||so that 'starts with'
   ||searching works correctly.
   ||Before this, a 'starts
   ||with' search would return
   ||the same results as
   ||'contains'.
   ||
   ||Technical
   ||details: this adds the
   ||"complete field" to the
   ||authority "starts with"
   ||search so that it uses the
   ||untokenized "p" register.
   ||
   ||(* ICU is a feature of the
   ||Zebra search engine that
   ||can be configured to make
   ||searching with non-latin
   ||languages (such as Chinese
   ||and Arabic) work
   ||correctly.)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Victor Grousset/tuxayo  changed:

   What|Removed |Added

   Patch complexity|--- |Trivial patch

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Martin Renvoize  changed:

   What|Removed |Added

 Attachment #137049|0   |1
is obsolete||

--- Comment #17 from Martin Renvoize  ---
Created attachment 137699
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137699&action=edit
Bug 11158: Add complete field to authority "starts with" search

This patch adds "complete field" to the authority "starts with"
search so that it uses the untokenized "p" register.

Test plan:
1. Apply the patch
2. koha-plack --restart kohadev
3. Go to http://localhost:8081/cgi-bin/koha/authorities/authorities-home.pl
4. Type in "Espen" into the search box and hit "Submit"
5. Note that there are 3 results
6. Change "contains" to "starts with" and hit "Submit"
7. Note that no results are returned
8. Change the search from "Espen" to "Sandberg" and hit "Submit"
9. Note that 3 results are returned
10. Experiment to your heart's content and rejoice at your new found power

Signed-off-by: David Nind 
Signed-off-by: Martin Renvoize 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Martin Renvoize  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA
 CC||martin.renvoize@ptfs-europe
   ||.com

--- Comment #18 from Martin Renvoize  ---
Nice one David and David!..

It's great to see Zebra having a little love still..

All works as described, so great.. Passing QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Martin Renvoize  changed:

   What|Removed |Added

 QA Contact|testo...@bugs.koha-communit |martin.renvoize@ptfs-europe
   |y.org   |.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-17 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #19 from David Cook  ---
(In reply to Martin Renvoize from comment #18)
> Nice one David and David!..
> 
> It's great to see Zebra having a little love still..

I'll keep showing it the love until all my libraries jump ship to
Elasticsearch!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-18 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Status|Passed QA   |Pushed to master
 Version(s)||22.11.00
released in||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2022-07-18 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #20 from Tomás Cohen Arazi  ---
Pushed to master for 22.11.

Nice work everyone, thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-06-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #12 from Katrin Fischer  ---
The test plan works ok on current master for me, but I assume this is because
the kohadevbox is using ICU by default. I am not sure how to activate ICU
there.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-06-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #13 from David Cook  ---
(In reply to Katrin Fischer from comment #12)
> The test plan works ok on current master for me, but I assume this is
> because the kohadevbox is using ICU by default. I am not sure how to
> activate ICU there.

I think you mean using CHR by default. I wonder if we should change to ICU
default some time. 

It involves updating /etc/koha/zebradb/etc/default.idx and then re-indexing
Zebra.

Although I didn't have that in my test plan I wonder why...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

 CC||dc...@prosentient.com.au

--- Comment #7 from David Cook  ---
(In reply to Colin Campbell from comment #2)
> There is also a question over the rule being used to tokenise phrase
> searches and what would be the best default configuration (including no
> rule) further investigation is dependent on bug 10729 as phrase and keyword
> searching have different requirements in this respect

I cover this more at
https://github.com/indexdata/idzebra/issues/24#issuecomment-751260285 but yeah
the tokenization is definitely the issue

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=27299

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #8 from David Cook  ---
I hadn't thought of the complete field attribute and truncation... interesting.

For what it's worth, without the @attr 6=3, it uses the "w" register:
https://software.indexdata.com/zebra/doc/querymodel-zebra.html#querymodel-pqf-apt-mapping-structuretype

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #9 from David Cook  ---
Due to my work on Bug 27299, I have renewed interest in this one.

In koha-testing-docker, the following URL
http://localhost:8081/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode=&marclist=mainmainentry&and_or=and&excluding=&operator=start&value=Espen&orderby=HeadingAsc
will generate the following Zebra query:

@attrset Bib-1 @or @attr 1=Heading @attr 7=1 0 @attr 5=1 @attr 4=1 @attr 3=2
@attr 1=Heading-Main Espen

The key part of that is the following:

@attr 5=1 @attr 4=1 @attr 3=2 @attr 1=Heading-Main Espen

Breaking that down:

@attr 5=1 -> Right truncation
@attr 4=1 -> Phrase structure
@attr 3=2 -> Position first in subfield
@attr 1=Heading-Main Espen

As Colin notes, the key is really the addition of a @attr 6=3 to force a
complete field search, which uses the "p" register. 

In my testing, we can leave @attr 3=2 as is, since it doesn't really make a
difference. But adding @attr 6=3 fixes the issue - at least when the patch from
Bug 27299 is applied...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

 Depends on||27299


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27299
[Bug 27299] Zebra phrase register is incorrectly tokenized when using ICU
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

--- Comment #10 from David Cook  ---
Colin's patch doesn't apply anymore, so I'm going to do a new one, which just
adds @attr 6=3.

I'm also adding a dependency on Bug 27299 since that'll be crucial

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

 Status|In Discussion   |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

David Cook  changed:

   What|Removed |Added

  Attachment #22517|0   |1
is obsolete||

--- Comment #11 from David Cook  ---
Created attachment 114829
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114829&action=edit
Bug 11158: Add complete field to authority "starts with" search

This patch adds "complete field" to the authority "starts with"
search so that it uses the untokenized "p" register.

Test plan:
1. Apply the patch
2. koha-plack --restart kohadev
3. Go to http://localhost:8081/cgi-bin/koha/authorities/authorities-home.pl
4. Type in "Espen" into the search box and hit "Submit"
5. Note that there are 3 results
6. Change "contains" to "starts with" and hit "Submit"
7. Note that no results are returned
8. Change the search from "Espen" to "Sandberg" and hit "Submit"
9. Note that 3 results are returned
10. Experiment to your heart's content and rejoice at your new found power

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-01-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158

Janet McGowan  changed:

   What|Removed |Added

 CC||janet.mcgowan@ptfs-europe.c
   ||om

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 11158] Authorities 'starts with' search returns the same as 'contains' when using ICU

2021-02-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11158
Bug 11158 depends on bug 27299, which changed state.

Bug 27299 Summary: Zebra phrase register is incorrectly tokenized when using ICU
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27299

   What|Removed |Added

 Status|Pushed to oldoldstable  |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/