[Bug 8278] New: Replace YUI autocomplete in UNIMARC 210c plugin
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Priority: P5 - low Change sponsored?: --- Bug ID: 8278 Assignee: oleonard@myacpl.org Blocks: 7747 Summary: Replace YUI autocomplete in UNIMARC 210c plugin Severity: normal Classification: Unclassified OS: All Reporter: oleonard@myacpl.org Hardware: All Status: NEW Version: master Component: Templates Product: Koha There is a YUI autocomplete instance in a UNIMARC plugin (unimarc_field_210c_bis.tt) which I couldn't figure out how to test, even on a sandbox set up with UNIMARC. I could use help with a follow-up to Bug 7747. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 15997 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15997&action=edit Bug 8278 - Replace YUI autocomplete in UNIMARC 210c plugin This plugin, for pseudo-authority-control of publisher information, used YUI autocomplete to pull existing publisher data from the biblioitems table. Despite its name it is not UNIMARC-specific. It assumes publisher name data is saved in biblioitems. This patch converts the autocomplete to jQueryUI. The search script has been amended to return valid JSON. The template has been modified to enable the jQueryUI autocomplete and to add structure more consistent with other popups. To test, link the publisher name field in your MARC structure to the unimarc_field_210c_bis.pl plugin. Open a MARC record for editing and click the "tag editor" link to launch the plugin. Type the first few letters of a publisher which exists in your database. You should get an autocomplete menu of publishers which match your search. Select one and click the "choose" button to fill the field in the MARC editor. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |9779 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15997|0 |1 is obsolete| | --- Comment #2 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16441 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16441&action=edit [SIGNED-OFF] Bug 8278 - Replace YUI autocomplete in UNIMARC 210c plugin This plugin, for pseudo-authority-control of publisher information, used YUI autocomplete to pull existing publisher data from the biblioitems table. Despite its name it is not UNIMARC-specific. It assumes publisher name data is saved in biblioitems. This patch converts the autocomplete to jQueryUI. The search script has been amended to return valid JSON. The template has been modified to enable the jQueryUI autocomplete and to add structure more consistent with other popups. To test, link the publisher name field in your MARC structure to the unimarc_field_210c_bis.pl plugin. Open a MARC record for editing and click the "tag editor" link to launch the plugin. Type the first few letters of a publisher which exists in your database. You should get an autocomplete menu of publishers which match your search. Select one and click the "choose" button to fill the field in the MARC editor. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: work as described. No errors. Test: link 260b to plugin. Edit record and search first letters of present editors. Menú appears and can select and fill value. Why plugin 210c_bis talk about field 225a? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |bgkriegel@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |katrin.fischer@bsz-bw.de --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Owen, could you take another look at this? 1) The Heading about 225a seems to be not right? 2) I can't get autocomplete to work. I looked up an existing publisher from biblioitems.publishercode and tried typing the name "Gütersloher" and "Klett" After typing a few letters I can see that the processing symbol appear, but nothing is found. Tested in Firefox and Chromium in Ubuntu. Also happens when I try to test bug 9282. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- What Katrin and I have discovered is that if you trigger the script directly or indirectly via the plugin you'll get different outcomes if you're logged in as a superlibrarian versus a regular librarian with cataloging privileges. To access the script directly: /cgi-bin/koha/cataloguing/ysearch.pl?table=biblioitems&field=itemtype&query=press If you're logged in as a superlibrarian that should produce valid output. If you're logged in as a regular user with cataloging permission you get no output and your session is terminated. I also see errors in the log: Use of uninitialized value in numeric eq (==) at /C4/Auth.pm line 1687 Use of uninitialized value $lasttime in numeric lt (<) at /C4/Auth.pm line 703. I'm not sure why this script is problematic. It's virtually identical to circ/ysearch.pl which didn't show the same issues when I tested it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz --- Comment #5 from Chris Cormack <chris@bigballofwax.co.nz> --- Looking into this now -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #6 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to comment #5)
Looking into this now
And yes I can full recreate the issue Owen and Katrin describe, if the permissions don't match, it logs you out. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #7 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 17110 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17110&action=edit Bug 8278 : Follow up, fixing the permissions on cataloguing/ysearch.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17110|0 |1 is obsolete| | --- Comment #8 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 17189 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17189&action=edit [SIGNED-OFF] Bug 8278 : Follow up, fixing the permissions on cataloguing/ysearch.pl Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Works. No errors. Without patch and normal staff user, logged out With patch, normal staff, valid output. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |5481 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #9 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 17475 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17475&action=edit Bug 8278 [Follow-up] Replace YUI autocomplete in UNIMARC 210c plugin This follow-up corrects the heading of the plugin pop-up window to match the UNIMARC field it targets. To test, trigger the plugin and confirm that the pop-up window refers to 210c. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17475|0 |1 is obsolete| | --- Comment #10 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 17480 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17480&action=edit [SIGNED-OFF] Bug 8278 [Follow-up] Replace YUI autocomplete in UNIMARC 210c plugin This follow-up corrects the heading of the plugin pop-up window to match the UNIMARC field it targets. To test, trigger the plugin and confirm that the pop-up window refers to 210c. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Smple patch, fixes label. No errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Bernardo Gonzalez Kriegel <bgkriegel@gmail.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=8278 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |jonathan.druart@biblibre.co | |m --- Comment #11 from Jonathan Druart <jonathan.druart@biblibre.com> --- QA comment: Works as before, no regression found. Just one little remark: it would be great to use the JSON::to_json routine in order not to build manually the expected structure (in cataloguing/ysearch.pl). Marked as Failed QA. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #12 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 17597 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17597&action=edit Bug 8278: build the structure with to_json instead of manually. Test plan: Same as previously. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Kyle M Hall <kyle@bywatersolutions.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=8278 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17597|0 |1 is obsolete| | --- Comment #13 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 17937 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17937&action=edit [Signed-Off] Bug 8278: build the structure with to_json instead of manually. Test plan: Same as previously. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #14 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to comment #7)
Created attachment 17110 [details] [review] Bug 8278 : Follow up, fixing the permissions on cataloguing/ysearch.pl
Katrin, could you confirm this patch fixes your issue please? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17480|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16441|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17189|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17937|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #15 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 18002 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18002&action=edit [PASSED QA] Bug 8278 - Replace YUI autocomplete in UNIMARC 210c plugin This plugin, for pseudo-authority-control of publisher information, used YUI autocomplete to pull existing publisher data from the biblioitems table. Despite its name it is not UNIMARC-specific. It assumes publisher name data is saved in biblioitems. This patch converts the autocomplete to jQueryUI. The search script has been amended to return valid JSON. The template has been modified to enable the jQueryUI autocomplete and to add structure more consistent with other popups. To test, link the publisher name field in your MARC structure to the unimarc_field_210c_bis.pl plugin. Open a MARC record for editing and click the "tag editor" link to launch the plugin. Type the first few letters of a publisher which exists in your database. You should get an autocomplete menu of publishers which match your search. Select one and click the "choose" button to fill the field in the MARC editor. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: work as described. No errors. Test: link 260b to plugin. Edit record and search first letters of present editors. Menú appears and can select and fill value. Why plugin 210c_bis talk about field 225a? Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Plugin now works correctly for me, even when linked to 260$b in a MARC21 installation. All tests and QA script pass. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #16 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 18003 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18003&action=edit [PASSED QA] Bug 8278 : Follow up, fixing the permissions on cataloguing/ysearch.pl Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Comment: Works. No errors. Without patch and normal staff user, logged out With patch, normal staff, valid output. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #17 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 18004 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18004&action=edit [PASSED QA] Bug 8278 [Follow-up] Replace YUI autocomplete in UNIMARC 210c plugin This follow-up corrects the heading of the plugin pop-up window to match the UNIMARC field it targets. To test, trigger the plugin and confirm that the pop-up window refers to 210c. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Smple patch, fixes label. No errors. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 --- Comment #18 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 18005 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18005&action=edit [PASSED QA] Bug 8278: build the structure with to_json instead of manually. Test plan: Same as previously. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8278 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #19 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- This patch has been pushed to master and 3.12.x. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org