Bug 27533 - Subject Cloud (/opac-tags_subject.pl) - No results with Elasticsearch if subfield present
Summary: Subject Cloud (/opac-tags_subject.pl) - No results with Elasticsearch if subf...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: 20.11
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-22 21:28 UTC by Craig
Modified: 2021-01-22 21:28 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig 2021-01-22 21:28:52 UTC
With Koha 20.11.01 on Ubuntu 18.04 running Elasticsearch 6x, links generated on the subject cloud page (/opac-tags_subject.pl) using the ./build_browser_and_cloud.pl script are broken due to the presence of a subfield in the query url. 

For example: 

Running /build_browser_and_cloud.pl -b -f 650a -t 650 -c succeeds in creating a subject list: see from https://library.craigbutosi.ca/cgi-bin/koha/opac-search.pl

However,

Subjects that include any subfield, generate links like the following:

https://library.craigbutosi.ca/cgi-bin/koha/opac-search.pl?idx=su&q="Capitalism Political aspects." (Political aspects = 650 subfield x).

Under Zebra, running the same script returned results even if subfields were present in the field and defined in the script

I tried to adjust the script options -t and -f to include/exclude subfield definitions in various combinations, but no effect.