[Koha-bugs] [Bug 14861] Accession date comparison does not work in advanced search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 30 09:32:10 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14861

--- Comment #14 from David Cook <dcook at prosentient.com.au> ---
(In reply to Barton Chittenden from comment #8)
> I just checked the virtual machine that I have this running on -- it *is*
> running on master -- version 3.21.00.028.
> 
> I've only made a single change against that:
> 
> diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties
> index 93ae8ec..fdd8eec 100644
> --- a/etc/zebradb/ccl.properties
> +++ b/etc/zebradb/ccl.properties
> @@ -344,6 +344,7 @@ pubdate Date-of-publication
>  #Date-acquisition       32  The date when a document was    541$d
>  #                           acquired.
>  Date-of-acquisition 1=32
> +Date-of-acquisition 1=Date-of-acquisition r=o
>  acqdate Date-of-acquisition
>  
>  #Date/time added to   1011  The date and time that a        008/00-05

Ok, since I'm insatiably curious, I spun up a Debian Wheezy virtual machine to
run a Gitified Koha.

It's on version 3.21.00.030.

In /etc/koha/zebradb/ccl.properties I have the following entry:

Date-of-acquisition 1=32 r=o
acqdate Date-of-acquisition

NOTE: I added the r=o

Here's the URL I'm getting:

http://localhost:2051/cgi-bin/koha/catalogue/search.pl?idx=acqdate%2Cst-date-normalized&q=2014-03-24+-+2014-03-27&idx=kw&idx=kw&sort_by=relevance

I have two bib records each with an item with a Date Acquired within that date
range, and I'm getting search results that include both those bib records.


--

Now that I look at your original post again... editing
"etc/zebradb/ccl.properties" in the Git directory won't do anything. That file
doesn't get used at all. If you're on Debian and you're using a Gitified
install, you want "/etc/koha/zebradb/ccl.properties". It's the configuration
file used by the packages, but that's what a Gitified Koha relies upon.

If you dont' want to modify that, you're going to have to do a manual install
of Koha using the "single" option and then do a "make upgrade" every time you
make changes to "etc/zebradb/ccl.properties" in your Git.

Anyway, if you change the "/etc/koha/zebradb/ccl.properties" file, I bet it'll
work for you.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list