Bug 27533

Summary: Subject Cloud (/opac-tags_subject.pl) - No results with Elasticsearch if subfield present
Product: Koha Reporter: Craig <cbutosi>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: 20.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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.