[Bug 37537] New: Add bounding box variant to geo-search
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37537 Bug ID: 37537 Summary: Add bounding box variant to geo-search Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: tadeusz@sosnierz.com QA Contact: testopia@bugs.koha-community.org Following up on https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31652, it would be useful to be able to search for records falling within a (rectangular, axis-aligned) bounding box. The current solution allows looking up records within a specified distance from a given point. geo_bounding_box searches would allow for things like "given this map fragment, overlay all records that would be visible on it". -- 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=37537 --- Comment #1 from HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> --- Created attachment 169893 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169893&action=edit Patch implementing 37537 Test plan to follow soon; will likely require https://github.com/HKS3/HKS3GeoSearch to be tested properly. -- 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=37537 HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff --- Comment #2 from HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> --- Test plan: 1. Install the GeoSearch plugin https://github.com/HKS3/HKS3GeoSearch/releases/tag/v0.4 2. Either add visibility of 034s and 034t in framework manually or issue the following commands in the database: ``` update marc_subfield_structure set hidden = 0 where tagfield = '034' and tagsubfield = 's' and frameworkcode = 'BKS'; update marc_subfield_structure set hidden = 0 where tagfield = '034' and tagsubfield = 't' and frameworkcode = 'BKS'; ``` 3. Add some location information using https://github.com/HKS3/HKS3GeoSearch/blob/main/scripts/insert_geo_data.pl 4. restart_all for a good measure 5. Go to Advanced OPAC search at /cgi-bin/koha/opac-search.pl; a Geographic Search should be visible at the bottom 6. Position the map at [48, 13] without changing the zoom level; the circle should just about be covering Munchen on the left and Linz on the right, with Wien being outside of it on the right 7. Perform the search, no results should come up. The query string should be along the lines of `lat:48 lng:13 distance:120km` 8. Go back to search, and back to [48, 13]. This time toggle the "Search visible area" to switch to bounding-box searches. 9. Perform the search. This time, 3 books should come up around the Vienna area. The query string should be along the lines of `boundingbox:53.54030739150022,0.9228515625000001,41.77131167976407,25.0927734375` (the exact numbers may very). 10. Celebrate the great success -- 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=37537 Phil Ringnalda <phil@chetcolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |tadeusz@sosnierz.com |ity.org | CC| |phil@chetcolibrary.org -- 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=37537 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37537 HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169893|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=37537 --- Comment #3 from HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> --- Created attachment 195325 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195325&action=edit Allow bounding-box searches in geolocation queries Patch from commit 38137f7 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37537 HKS3 Tadeusz Sośnierz <tadeusz@sosnierz.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org