Bug 17739

Summary: Opac explodes when clicking on user tag when using elastic
Product: Koha Reporter: Josef Moravec <josef.moravec>
Component: Searching - ElasticsearchAssignee: Galen Charlton <gmcharlt>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: jonathan.druart, nick
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12478    
Bug Blocks:    

Description Josef Moravec 2016-12-07 14:56:02 UTC
The log says:
Can't locate object method "subfield" via package "<?xml version="1.0" encoding="UTF-8"?><record .. whole xml record" at C4/Search.pm line 1925

To reproduce
1) Set syspref SearchEngine to Elastic
2) go to opac detail and add a tag
3) try to click the added tag
Comment 1 Nick Clemens 2018-05-25 09:40:29 UTC
This is the same issue as in 18822 - we assume we got MARC::Record objects from zebra, but in this case we have raw xml fetched from the DB directly.

Possibly in the future we should index the tags and search them using the search engine instead of a direct db call

*** This bug has been marked as a duplicate of bug 18822 ***