[Bug 8692] New: Authorities search form does not correspond to current search query
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Priority: P5 - low Change sponsored?: --- Bug ID: 8692 CC: m.de.rooy@rijksmuseum.nl Assignee: gmcharlt@gmail.com Summary: Authorities search form does not correspond to current search query Severity: normal Classification: Unclassified OS: All Reporter: fridolyn.somers@biblibre.com Hardware: All Status: NEW Version: master Component: Cataloging Product: Koha In intranet, when searching authorities : operator (contains, start with or is), sort order and selected search tab does not correspond to current search. Also, in search results after delete, the authority type code is missing in URL. Also, search term is missing URL encoding. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=4198 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Assignee|gmcharlt@gmail.com |fridolyn.somers@biblibre.co | |m --- Comment #1 from Fridolyn SOMERS <fridolyn.somers@biblibre.com> --- Created attachment 11842 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11842&action=edit Proposed patch Proposed patch. I also corrected a odd bug. When searching with an empty value, the results are all authorities, but the search form gets "authtypecode" as search term. This comes form authorities-home.pl : $template->param( marclist => $query->param('marclist'), and_or => $query->param('and_or'), excluding => $query->param('excluding'), operator => $query->param('operator'), orderby => $query->param('orderby'), value => $query->param('value'), authtypecode => $query->param('authtypecode'), startfrom => $startfrom, resultsperpage => $resultsperpage, ); It appears $template->param() is an array context. $query->param('value') return an array in array context so when value is empty an empty array. So you get a wrong number of args in $template->param() (17 instead of 18), which causes a warn in error logs and "authtypecode" in value. I think one should never use $query->param() in $template->param(). If the parameter in CGI query is repeatable, parameter in template must be an array ref, and if not repeatable a string or scalar. In our case, CGI query params corresponding to search are not repeatable so there is no need to get an array of params. Test plan : ----------- In authorities module : Select an authority type, select an operator (not first one), enter a search term and select a sort order (not first one). Click on 'Submit'. => Search form does not change. Click on "Search main heading". => Search form does not change. Click on "Search all headings". => Search form does not change. Click on a page result (search must have more than 20 results). => Search form does not change. Delete an authority. => Search form does not change. Perform a search with an empty search term. => Search term in form is empty. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11842|0 |1 is obsolete| | --- Comment #2 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 11845 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11845&action=edit Bug 8692: Authorities search form does not correspond to current search query Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> The correct tab is now visible on load. The problem with authtypecode showing up in the search box is specific to UNIMARC, so I could not check that it was gone, but I am comfortable signing off on this. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply CC| |jonathan.druart@biblibre.co | |m --- Comment #3 from Jonathan Druart <jonathan.druart@biblibre.com> --- CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact| |jonathan.druart@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11845|0 |1 is obsolete| | --- Comment #4 from Fridolyn SOMERS <fridolyn.somers@biblibre.com> --- Created attachment 12371 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12371&action=edit Proposed patch (rebased master) Rebased patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #5 from Jonathan Druart <jonathan.druart@biblibre.com> --- QA Comments: Works as expected, nothing to say Marked as Passed QA. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master CC| |paul.poulain@biblibre.com Version|master |rel_3_10 --- Comment #6 from Paul Poulain <paul.poulain@biblibre.com> --- Patch pushed to master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED CC| |chris@bigballofwax.co.nz Resolution|--- |FIXED --- Comment #7 from Chris Cormack <chris@bigballofwax.co.nz> --- Released in 3.10.0 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8692 Fridolyn SOMERS <fridolyn.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10808 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org