[Bug 40186] New: Show additional fields in search form on acquisition start page
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Bug ID: 40186 Summary: Show additional fields in search form on acquisition start page Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: clemens.tubach@kit.edu, michaela.sieber@kit.edu At the moment the search form on the acquisition start page and on the Advanced search page are slightly different: the first is missing the additional fields. It would be nice if the additional fields showed on both search forms or if that was configurable. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=40201 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=40202 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |oleonard@myacpl.org |ity.org | Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Status|ASSIGNED |Needs Signoff Sponsorship status|--- |Sponsored Comma delimited| |Athens County Public list of Sponsors| |Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 207060 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207060&action=edit Bug 40186: Show additional fields in search form on acquisition start page This patch updates the acquisitions home page so that additional fields appear in the search form. Before this patch additional fields could only be seen on the acquisitions advanced search page or in the search results sidebar. To test, apply the patch and restart services. - If necessary set up some testing data: - Additional fields: Go to Administration -> Additional fields -> Order baskets. - Create one or more additional fields. - Go to Acquisitions -> Vendor -> Baskets and create or edit a basket. - Set a value in the additional field you defined. - Add one or more orders to the basket. - Go to the Acquisitions home page and confirm that the additional field(s) you defined appear in the search form. - Search using the additional fields, confirming that the orders returned by the search are in the basket you modified. - Test searches from Acquisitions -> Advanced search and from the search results sidebar. Sponsored-by: Athens County Public Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #207060|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 208447 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208447&action=edit Bug 40186: Show additional fields in search form on acquisition start page This patch updates the acquisitions home page so that additional fields appear in the search form. Before this patch additional fields could only be seen on the acquisitions advanced search page or in the search results sidebar. To test, apply the patch and restart services. - If necessary set up some testing data: - Additional fields: Go to Administration -> Additional fields -> Order baskets. - Create one or more additional fields. - Go to Acquisitions -> Vendor -> Baskets and create or edit a basket. - Set a value in the additional field you defined. - Add one or more orders to the basket. - Go to the Acquisitions home page and confirm that the additional field(s) you defined appear in the search form. - Search using the additional fields, confirming that the orders returned by the search are in the basket you modified. - Test searches from Acquisitions -> Advanced search and from the search results sidebar. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #3 from David Nind <david@davidnind.com> --- Created attachment 208448 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208448&action=edit Screenshot - Additional fields misaligned I have signed off, but noticed that the additional fields (BASKET1 and BASKET2) appear misaligned to me - see the screenshot. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- (In reply to David Nind from comment #3)
noticed that the additional fields (BASKET1 and BASKET2) appear misaligned to me - see the screenshot.
My work converting forms to grid layout will completely revise this and hopefully solve the problem. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #5 from David Nind <david@davidnind.com> --- (In reply to Owen Leonard from comment #4)
(In reply to David Nind from comment #3)
noticed that the additional fields (BASKET1 and BASKET2) appear misaligned to me - see the screenshot.
My work converting forms to grid layout will completely revise this and hopefully solve the problem.
Thanks Owen! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I'll try to have a look at the grid work next! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |katrin.fischer@bsz-bw.de |y.org | Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #208447|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #7 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 210538 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210538&action=edit Bug 40186: Show additional fields in search form on acquisition start page This patch updates the acquisitions home page so that additional fields appear in the search form. Before this patch additional fields could only be seen on the acquisitions advanced search page or in the search results sidebar. To test, apply the patch and restart services. - If necessary set up some testing data: - Additional fields: Go to Administration -> Additional fields -> Order baskets. - Create one or more additional fields. - Go to Acquisitions -> Vendor -> Baskets and create or edit a basket. - Set a value in the additional field you defined. - Add one or more orders to the basket. - Go to the Acquisitions home page and confirm that the additional field(s) you defined appear in the search form. - Search using the additional fields, confirming that the orders returned by the search are in the basket you modified. - Test searches from Acquisitions -> Advanced search and from the search results sidebar. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #8 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k --- Comment #9 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, the additional field parsing loop added to acqui/acqui-home.pl (from 'my @additional_field_filters;' to '$filters->{additional_fields} = \@additional_field_filters;' inclusive) is copied from histsearch.pl, but it does nothing on this page. The 'Search orders' form submits to histsearch.pl, so acqui-home.pl never receives the additional_field_* params, and nothing reads $filters->{additional_fields}. To see it: 1) Create a searchable additional field for order baskets: http://localhost:8081/cgi-bin/koha/admin/additional-fields.pl?tablename=aqba... 2) Create a basket with the field set to 'foo' and add an order to it, then create a second basket with the field empty and add an order to that too: http://localhost:8081/cgi-bin/koha/acqui/basketheader.pl?booksellerid=1&op=add_form 3) Go to http://localhost:8081/cgi-bin/koha/acqui/acqui-home.pl, type 'foo' in the additional field under 'Search orders' and click 'Search': only the first basket's order is listed 4) In acqui/acqui-home.pl, delete everything from 'my @additional_field_filters;' to '$filters->{additional_fields} = \@additional_field_filters;' inclusive, and restart plack (koha-plack --restart kohadev) 5) Repeat step 3: same result Not a blocker, could you do a follow-up when convenient please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |The search form on the release notes| |acquisitions home page now | |includes the additional | |fields for order baskets | |(Administration > | |Additional fields > Order | |baskets), so orders can be | |searched by those values | |from the home page as well | |as from the advanced | |search. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #10 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Pedro Amorim (ammopt) from comment #9)
Hi all, the additional field parsing loop added to acqui/acqui-home.pl (from 'my @additional_field_filters;' to '$filters->{additional_fields} = \@additional_field_filters;' inclusive) is copied from histsearch.pl, but it does nothing on this page. The 'Search orders' form submits to histsearch.pl, so acqui-home.pl never receives the additional_field_* params, and nothing reads $filters->{additional_fields}.
To see it: 1) Create a searchable additional field for order baskets:
http://localhost:8081/cgi-bin/koha/admin/additional-fields. pl?tablename=aqbasket 2) Create a basket with the field set to 'foo' and add an order to it, then create a second basket with the field empty and add an order to that too:
http://localhost:8081/cgi-bin/koha/acqui/basketheader. pl?booksellerid=1&op=add_form 3) Go to http://localhost:8081/cgi-bin/koha/acqui/acqui-home.pl, type 'foo' in the additional field under 'Search orders' and click 'Search': only the first basket's order is listed 4) In acqui/acqui-home.pl, delete everything from 'my @additional_field_filters;' to '$filters->{additional_fields} = \@additional_field_filters;' inclusive, and restart plack (koha-plack --restart kohadev) 5) Repeat step 3: same result
Not a blocker, could you do a follow-up when convenient please?
It sounds like a follow-up would be needed? If it doesn't work at all... maybe I am misreading? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #11 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- (In reply to Katrin Fischer from comment #10)
It sounds like a follow-up would be needed? If it doesn't work at all... maybe I am misreading?
From memory, what I'm referring to here is extra code that appears to have been copy-pasted which does nothing. It's not blocking anything. Confirmation of this and a clean-up follow-up would be great, of course. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #12 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 212139 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212139&action=edit Bug 40186: (follow-up) Remove unused code This patch removes code which was incorrectly copied from histsearch.pl. Without it, additional fields should still appear on the acquisitions home page. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212139|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #13 from David Nind <david@davidnind.com> --- Created attachment 212165 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212165&action=edit Bug 40186: (follow-up) Remove unused code This patch removes code which was incorrectly copied from histsearch.pl. Without it, additional fields should still appear on the acquisitions home page. Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40186 --- Comment #14 from David Nind <david@davidnind.com> --- I've signed off the follow-up patch, in case this was required. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org