[Bug 17780] New: When choose an author in authority results new window shows a blank screen
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Bug ID: 17780 Summary: When choose an author in authority results new window shows a blank screen Change sponsored?: --- Product: Koha Version: 16.11 Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Cataloging Assignee: gmcharlt@gmail.com Reporter: gveranis@seab.gr QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Created attachment 58199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58199&action=edit authority results choose When a librarian open the authority window to search , find one or more results and try to choose a result then a new window is open and show a blank screen and stop. If we return to our cataloguing form then the authority has passed but the blank screen is remain. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 George Veranis <gveranis@seab.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |gveranis@seab.gr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 George Veranis <gveranis@seab.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Seeking developer Patch complexity|--- |Trivial patch Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|Trivial patch |--- --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- It is expected that a new blank window pops up, but it is supposed to then close itself. I would expect that a JavaScript error is causing the window not to close. This works for me in master and 16.05.x, so I wonder if you have some custom JavaScript in intranetuserjs which might be causing a problem? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 --- Comment #2 from George Veranis <gveranis@seab.gr> --- No the installation is clean and is on 16.11 . on console log I have the following Uncaught TypeError: Cannot read property 'match' of null(…) cataloging.js:106 the problem is that on line 106 is trying to match with id and select2 not produce select with id , and I add this on select2.min.js in order select has id attribute and not fail "<div class='select2-drop select2-display-none' id='select2-display-none-"+Math.floor(Date.now() /1000)+"'>"," <div class='select2-searc h' id='select-search-"+Math.floor(Date.now() / 1000)+"'>", but then I have another problem with select2 which not bind on click for cloned field there I tried a lot to solve it but without success at yet. If I'm correct 16.05 not use select2 and yes works perfect ! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 José Anjos <joseanjos@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joseanjos@gmail.com --- Comment #3 from José Anjos <joseanjos@gmail.com> --- The same is happening with me. Blank window needs to be manually closed. Koha version: 16.11 + mariaDB + Ubuntu 16.04 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Oleg Vasilenko <synapse.ova@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |synapse.ova@gmail.com --- Comment #4 from Oleg Vasilenko <synapse.ova@gmail.com> --- Created attachment 59513 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59513&action=edit Bug 17780: JS structure check fix Select2 (Bug 13501) introduced divs and inputs that broke some assumptions about the expected HTML structure. This patch checks if input has name attribute, because some inputs in Select2 have not. Blank screen happens on page blinddetail-biblio-search.pl because when the script works with field that has Select2 as one of the subfields, it finds some structures, that have no required attributes. To test: Try to add info from the authorities to field that has subfield with Select2 (subfield with authorised values on Koha 16.11+). For example, in UNIMARC installations that should be 700, 701, 702 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Oleg Vasilenko <synapse.ova@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |13501 Change sponsored?|Seeking developer |--- Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13501 [Bug 13501] Allow autocompletion on drop-down lists -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Oleg Vasilenko <synapse.ova@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #5 from Oleg Vasilenko <synapse.ova@gmail.com> --- Steps to Reproduce: 1. Open some book in the editor or create new (cataloguing/addbiblio.pl) 2. Add info to authority-controlled subfield. One of the subfields of this field should be thesaurus driven → subfield with Select2 (In UNIMARC that could be 700-702) Actual Results: — data from the authority record does not added — blinddetail-biblio-search.pl with white screen is opened, and does not close Expected Results: Info from the authority record shoul be added to appropriate subfields Additional Information: This happens because Select2 adds some inputs, that do not have NAME property. The following patch adds check for the needed attribute existance. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Oleg Vasilenko <synapse.ova@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gveranis@seab.gr |synapse.ova@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org Version|16.11 |master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |normal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |18119 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18119 [Bug 18119] Bug 17988 broke cataloging javascript functionality -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Josef Moravec <josef.moravec@gmail.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=17780 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #59513|0 |1 is obsolete| | --- Comment #6 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 60238 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60238&action=edit [SIGNED-OFF] Bug 17780 - When choose an author in authority results new window shows a blank screen Select2 (Bug 13501) introduced divs and inputs that broke some assumptions about the expected HTML structure. This patch checks if input has name attribute, because some inputs in Select2 have not. To test: Try to add info from the authorities to field that has subfield with Select2 (subfield with authorised values on Koha 16.11+) Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- 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=17780 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #60238|0 |1 is obsolete| | --- Comment #7 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 60241 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60241&action=edit Bug 17780 - When choose an author in authority results new window shows a blank screen Select2 (Bug 13501) introduced divs and inputs that broke some assumptions about the expected HTML structure. This patch checks if input has name attribute, because some inputs in Select2 have not. To test: Try to add info from the authorities to field that has subfield with Select2 (subfield with authorised values on Koha 16.11+) Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 60242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60242&action=edit Bug 17780: Add a comment to explain the line Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 --- Comment #9 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- To recreate the issue the select2 should be placed before $9! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #10 from Kyle M Hall <kyle@bywatersolutions.com> --- Pushed to master for 17.05, thanks Oleg, Jonathan! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable --- Comment #11 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- These patches have been pushed to 16.11.x and will be in 16.11.04. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com --- Comment #12 from Mason James <mtj@kohaaloha.com> --- Pushed to 16.05.x, for 16.05.10 release -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Marjorie Barry-Vila <marjorie.barry-vila@ccsr.qc.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marjorie.barry-vila@ccsr.qc | |.ca -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17780 Fridolin SOMERS <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |22242 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22242 [Bug 22242] Javascript error in value builder cased by Select2 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org