[Koha-bugs] [Bug 11502] Branch filter in "Holds To Pull" is too fuzzy
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 13 23:45:06 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11502
--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #3)
> Hi David,
> Could you explain why you match the < and >?
> The ^$ are not enough?
Sure, Jonathan.
It's because DataTables interprets all the data in a table cell as one long
string.
Sometimes, your string might be <td>BRANCH</td>.
Other times, it might be <td>BRANCH<br/>BRANCH1<br/>BRANCH2</td>.
If you were to only use ^$, 'BRANCH' would only match the first scenario. It
wouldn't match the second, because the string ends with BRANCH2 - not BRANCH.
However, we want it to match both scenarios, so we need to include < and >.
In fact, there are 4 scenarios I see:
1) ^BRANCH$ (i.e. the string is only BRANCH)
2) ^BRANCH< (i.e. the string begins with BRANCH)
3) >BRANCH< (i.e. the string contains BRANCH in the middle somewhere)
4) >BRANCH$ (i.e. the string ends with BRANCH)
Does that answer your question?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list