[Koha-bugs] [Bug 14716] New: opac-detail.pl -- Series link fails when series title ends with semicolon preceded by space.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 22:27:22 CEST 2015


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

            Bug ID: 14716
           Summary: opac-detail.pl -- Series link fails when series title
                    ends with semicolon preceded by space.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: barton at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

Created attachment 41870
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41870&action=edit
marc record with test data

To reproduce

Add a bib with the following data in biblioitems.marcxml:


  <datafield tag="440" ind1=" " ind2="0">
    <subfield code="a">Magic tree house ;</subfield>
    <subfield code="v">#6</subfield>
    <subfield code="9">39181</subfield>
  </datafield>


[the attached bib-14675.utf8 contains just such a record]

Make sure that the fast indexer picks up the record.

In the opac a title search for the bib; this should bring up opac-detail.pl

Using view source

The 'Series' link looks like this:

<a
href="/cgi-bin/koha/opac-search.pl?q=se,phr:%22Magic%20tree%20house%20;%22">Magic
tree house ; #6</a>

When url-decoded, the href looks like

/cgi-bin/koha/opac-search.pl?q=se,phr:"Magic tree house ;"

... this will not return any search results

When the trailing space and semicolon is removed:

/cgi-bin/koha/opac-search.pl?q=se,phr:"Magic tree house"

The resulting string can be url-encoded and appended to the opac base url --
this will return search results.

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


More information about the Koha-bugs mailing list