[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Lucas Gass changed: What|Removed |Added CC||lu...@bywatersolutions.com --- Comment #11 from Lucas Gass --- doesnt apply clean to 20.05.x, wont backport -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #10 from Jonathan Druart --- (In reply to Jonathan Druart from comment #8) > As it does not affect stable branches I am be in favor of having bug 25352 > pushed to master. > This patch could be helpful for 20.05 if bug 25287 is needed there. What do > you think? It was bug 25351, not 25352. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Martin Renvoize changed: What|Removed |Added Status|Passed QA |Pushed to master Who signed the||20.11.00 patch off|| --- Comment #9 from Martin Renvoize --- Pushed to master for 20.11, thanks everyone. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #8 from Jonathan Druart --- As it does not affect stable branches I am be in favor of having bug 25352 pushed to master. This patch could be helpful for 20.05 if bug 25287 is needed there. What do you think? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Katrin Fischer changed: What|Removed |Added Patch complexity|--- |Small patch Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Katrin Fischer changed: What|Removed |Added Attachment #106834|0 |1 is obsolete|| --- Comment #7 from Katrin Fischer --- Created attachment 106889 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106889=edit Bug 25909: Recent change to datatables JS in the OPAC causes errors This patch reverts some changes made by Bug 25287 which prematurely introduced the double-underscore i18n function. The i18n features haven't been fully implemented in the OPAC. Some lines are reverts to the previous version, and some are additions, for instance where Bug 25287 introduced new DataTables features and a new string translation is required. In addition to i18n changes, the patch also reverts the default configuration of DataTables in the OPAC so that the "dom" configuration option is set back to "t." This turns off features like pagination buttons, filters, etc. which were previously disabled by default. Enabling these features requires revision to the OPAC CSS in order for them to display well. To test, apply the patch and view a page in the OPAC which includes a DataTable. For instance: checkouts on the "your summary" page, serial issues on the "full subscription history" page. Tables should display correctly and sorting should work correctly. There should be no other DataTables controls visible. To test translatability: To test, apply the patch and test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings pulled from the templates e.g. misc/translator/po/fr-FR-opac-bootstrap.po - Locate strings pulled from bootstrap/en/includes/datatables.inc for translation, e.g.: #. SCRIPT #: opac-tmpl/bootstrap/en/includes/datatables.inc:4 msgid "Copy to clipboard" msgstr "" - Edit the "msgstr" string however you want (it's just for testing) - Install the updated translation: > perl translate install fr-FR Open the translated copy of datatables.inc and confirm that the translated string appears. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #6 from Tomás Cohen Arazi --- Created attachment 106834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106834=edit Bug 25909: Recent change to datatables JS in the OPAC causes errors This patch reverts some changes made by Bug 25287 which prematurely introduced the double-underscore i18n function. The i18n features haven't been fully implemented in the OPAC. Some lines are reverts to the previous version, and some are additions, for instance where Bug 25287 introduced new DataTables features and a new string translation is required. In addition to i18n changes, the patch also reverts the default configuration of DataTables in the OPAC so that the "dom" configuration option is set back to "t." This turns off features like pagination buttons, filters, etc. which were previously disabled by default. Enabling these features requires revision to the OPAC CSS in order for them to display well. To test, apply the patch and view a page in the OPAC which includes a DataTable. For instance: checkouts on the "your summary" page, serial issues on the "full subscription history" page. Tables should display correctly and sorting should work correctly. There should be no other DataTables controls visible. To test translatability: To test, apply the patch and test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings pulled from the templates e.g. misc/translator/po/fr-FR-opac-bootstrap.po - Locate strings pulled from bootstrap/en/includes/datatables.inc for translation, e.g.: #. SCRIPT #: opac-tmpl/bootstrap/en/includes/datatables.inc:4 msgid "Copy to clipboard" msgstr "" - Edit the "msgstr" string however you want (it's just for testing) - Install the updated translation: > perl translate install fr-FR Open the translated copy of datatables.inc and confirm that the translated string appears. Signed-off-by: Tomas Cohen Arazi -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Tomás Cohen Arazi changed: What|Removed |Added Attachment #106475|0 |1 is obsolete|| -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Tomás Cohen Arazi changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #5 from Owen Leonard --- (In reply to Owen Leonard from comment #3) > I'm not sure how to proceed with this one I think the above patch is the correct solution for now because it not only restores translatability, it also fixes the default table configuration so that it doesn't show unstyled (and previously hidden) table controls. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Owen Leonard changed: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Owen Leonard changed: What|Removed |Added Attachment #106458|0 |1 is obsolete|| --- Comment #4 from Owen Leonard --- Created attachment 106475 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106475=edit Bug 25909: Recent change to datatables JS in the OPAC causes errors This patch reverts some changes made by Bug 25287 which prematurely introduced the double-underscore i18n function. The i18n features haven't been fully implemented in the OPAC. Some lines are reverts to the previous version, and some are additions, for instance where Bug 25287 introduced new DataTables features and a new string translation is required. In addition to i18n changes, the patch also reverts the default configuration of DataTables in the OPAC so that the "dom" configuration option is set back to "t." This turns off features like pagination buttons, filters, etc. which were previously disabled by default. Enabling these features requires revision to the OPAC CSS in order for them to display well. To test, apply the patch and view a page in the OPAC which includes a DataTable. For instance: checkouts on the "your summary" page, serial issues on the "full subscription history" page. Tables should display correctly and sorting should work correctly. There should be no other DataTables controls visible. To test translatability: To test, apply the patch and test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings pulled from the templates e.g. misc/translator/po/fr-FR-opac-bootstrap.po - Locate strings pulled from bootstrap/en/includes/datatables.inc for translation, e.g.: #. SCRIPT #: opac-tmpl/bootstrap/en/includes/datatables.inc:4 msgid "Copy to clipboard" msgstr "" - Edit the "msgstr" string however you want (it's just for testing) - Install the updated translation: > perl translate install fr-FR Open the translated copy of datatables.inc and confirm that the translated string appears. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Owen Leonard changed: What|Removed |Added Status|Failed QA |ASSIGNED Assignee|tomasco...@gmail.com|oleon...@myacpl.org -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Owen Leonard changed: What|Removed |Added Status|Needs Signoff |Failed QA --- Comment #3 from Owen Leonard --- I'm not sure how to proceed with this one... The patch changes __() to _(), which will eliminate the JS error but won't make the strings translatable because the _() function doesn't work in standalone JavaScript files. Bug 25351 implements the JavaScript i18n feature while updated the Cart JavaScript to use it. If that were approved it would make this bug obsolete. Otherwise the correct patch for this is to fully revert the changes to lines where the MST_DT_* variables were used. http://git.koha-community.org/gitweb/?p=koha.git;a=commitdiff;h=6f5dc3dc0dd9fa02d6d11e92a6e466e545b8eccc#patch2 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #2 from Tomás Cohen Arazi --- (In reply to Owen Leonard from comment #0) > Bug 25287 made a lot of changes to > koha-tmpl/opac-tmpl/bootstrap/js/datatables.js which seem to be unrelated to > the purpose of the bug. Included in the changes is the double-underscore > "__()" translation function which hasn't yet been implemented in the OPAC. > Since the function isn't defined this causes an error. Bug 25287 targeted being used in the OPAC by bug 20936, which we just reverted to 'the old way' because of the route the discussion about the API implementation took. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 --- Comment #1 from Tomás Cohen Arazi --- Created attachment 106458 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106458=edit Bug 25909: Revert wrong use of js/i18n.js __ in OPAC This reverts commit 6b82d1416687434c61fe49b4230c15ad8b795b6e The __ function is not implemented in the OPAC and so the original implementation that relied on _ should be used instead. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Tomás Cohen Arazi changed: What|Removed |Added Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 25909] Recent change to datatables JS in the OPAC causes errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25909 Tomás Cohen Arazi changed: What|Removed |Added Severity|enhancement |major Assignee|koha-b...@lists.koha-commun |tomasco...@gmail.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/