[Koha-bugs] [Bug 16483] New: Ampersand breaks search for analytics

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 9 22:09:37 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16483

            Bug ID: 16483
           Summary: Ampersand breaks search for analytics
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

A customer has reported the following problem:

A journal is catalogued with separate records for each issue. The journal has
an ampersand in the title, let's call it "This & that". Each issue has 245$a
like "This & that 2011-1", "This & that 2011-2" and so on. For each issue,
there are analytical records. 

Now, when you are on the detail view of one of the issues in the staff client
(<intranet>/cgi-bin/koha/catalogue/detail.pl?biblionumber=12657) and click on
"Show analytics", you get results from all issues of the journal, not just the
one you wanted. The URL you are taken to looks like this:

<intranet>/cgi-bin/koha/catalogue/search.pl?q=Host-item:This & that 2011-3.

Above the search results it says:

14 result(s) found for 'Host-item:This ' in MyLibrary Catalog.

Note that the title has been cut before the ampersand. 

It is possible to tweak the search URL (remove the ampersand) and get the
expected results. Changing the URL to this:

<intranet>/cgi-bin/koha/catalogue/search.pl?q=Host-item:This that 2011-3.

gives this:

8 result(s) found for 'Host-item:This that 2011-3.' in MyLibrary Catalog.

The same thing happens in the OPAC. 

I guess a workaround will be to enable UseControlNumber and follow the
descriptions here: https://wiki.koha-community.org/wiki/Analytics

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


More information about the Koha-bugs mailing list