Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard 981b601c39
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 <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-07-16 15:33:29 +01:00
..
amazonimages.js
authtoresults.js Bug 17153: Redirect to search when logging in from search 2018-06-29 20:49:51 +00:00
bakertaylorimages.js
basket.js Bug 25402: (QA follow-up) Remove unused downloadBasket function 2020-06-24 15:05:02 +02:00
browse.js Bug 14567: Add a browse interface to the OPAC 2020-02-20 09:07:16 +00:00
browserid_include.js
coce.js Bug 9580 Cover images from Coce, a remote image URL cache 2015-04-01 09:31:42 -03:00
datatables.js Bug 25909: Recent change to datatables JS in the OPAC causes errors 2020-07-16 15:33:29 +01:00
Gettext.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
global.js Bug 22807: Add 'Skip to content' option 2020-06-24 15:13:55 +02:00
google-jackets.js Bug 7594: Google Cover Javascript contains hardcoded CSS style 2016-03-23 23:07:36 +00:00
googleindictransliteration.js Bug 13144: Google transliteration does not work on bootstrap 2014-11-06 09:52:22 -03:00
i18n.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
ill-availability.js Bug 23173: Provide core infrastructure 2020-04-06 11:04:19 +01:00
localcovers.js BUG 11602: [ENH] Fix localcover display 2015-12-04 16:12:52 +00:00
openlibrary.js Bug 24957: OpenLibrarySearch shouldnt display if nothing is returned 2020-04-27 11:21:59 +01:00
overdrive.js Bug 22804: OPAC Overdrive JavaScript contains untranslatable strings 2019-10-01 07:35:03 +01:00
ratings.js Bug 25110: Allow patrons to add star ratings to titles on their summary/checkout page 2020-04-29 17:04:32 +01:00
recordedbooks.js Bug 17602: Move spinner location to include file 2018-10-01 13:56:59 +00:00
script.js Bug 25492: Your Account Menu button does nothing on mobile devices 2020-06-12 10:32:35 +02:00
tags.js
verovio.js Bug 22581: Show and play musical inscripts 2019-11-03 08:11:38 +00:00