[Koha-bugs] [Bug 24103] Add option to dump built search query to templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jan 19 01:36:57 CET 2020


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

Myka Kennedy Stephens <mkstephens at lancasterseminary.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkstephens at lancasterseminar
                   |                            |y.edu
             Status|Needs Signoff               |Failed QA

--- Comment #2 from Myka Kennedy Stephens <mkstephens at lancasterseminary.edu> ---
(In reply to Nick Clemens from comment #1)
> Created attachment 95792 [details] [review]
> Bug 24103: Add option to dump search query to templates
> 
> To test:
> 1 - Apply patch, update database
> 2 - Note new syspref 'DumpSearchQueryTemplate'
> 3 - Leave it off
> 4 - Enable DumpTemplateVariablesOpac and Staff
> 5 - Search on staff and opac
> 6 - View the source
> 7 - Search for 'search_query' - you shouldn't find it
> 8 - Enable the new pref
> 9 - Repeat, but you should find the query
> 10 - Test staff/opac search and advanced search, cataloguing search,
> authority search, authfinder search, adding to a basket form a new biblio
> 11 - All should work and show the query
> 12 - This will work under both ES and Zebra

This is very, very close but needs one more thing: it doesn't apply to OPAC
authority searches.

Test results:
1. Applied patch, updatedatabase, restart_all
2. Noted new syspref 'DumpSearchQueryTemplate'
3. Didn't turn it on
4. Enabled 'DumpTemplateVarsIntranet' and 'DumpTemplateVarsOpac'
5. Searched on staff/intranet, searched on OPAC
6. Viewed the source
7. Searched staff/intranet and OPAC source for 'search_query' - did not find it
8. Enabled 'DumpSearchQueryTemplate'
9. Repeated searches, viewed source, searched source for 'search_query' and
found in both staff/intranet source and OPAC source
10-11. Subsequent test searches:
    a. OPAC advanced search - Yes
    b. OPAC authority search - NO
    c. Staff advanced search - Yes
    d. Cataloguing search - Yes
    e. Staff authority search - Yes
    d. Auth_finder search (when editing a biblio) - Yes
    e. Adding to basket from existing record - Yes
12. Tested with ES only. Plan to retest with both ES and Zebra if patch can be
updated to include OPAC authority search.

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


More information about the Koha-bugs mailing list