Koha/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing
Owen Leonard 08900d5653
Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML
system preferences

This patch adds CodeMirror plugins for linting JS, CSS, HTML, and YAML.
When invalid data is entered in a linted CodeMirror editor an icon is
displayed in the editor's "gutter." Hovering over the icon displays the
error message.

This patch renames the minified CodeMirror JS file to match convention
but the version is unchanged.

To test, apply the patch and go to Administration -> System preferences.

Test preferences of each type and confirm that each type of CodeMirror
editor shows an error indicator if you entry invalid data. Valid data
should trigger no error indicator.

 - HTML: e.g.  OpacMainUserBlock,  opacheader. Enter invalid HTML, for
   example "<h1>Hello <h2>World</h2>."
   Example valid HTML: "<h1>Hello world</h1>"
 - JavaScript: e.g. OpacUserJS, IntranetUserJS. Example bad JS,
   "alert("Success!');"
   Example valid JS: "alert("Success!");"
 - CSS: e.g.  IntranetUserCSS, SCOUserCSS. Example bad CSS,
   "p { color blue }"
   Example valid CSS, "p { color: blue; }"
 - YAML: e.g. OpacHiddenItems. Example bad YAML:
   "one: two, three: four"
   Example valid YAML:
   "one: two
    three: four"

Also test that other CodeMirror instances still work correctly without
linting: The advanced MARC editor, SQL reports editing.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-02 10:44:14 +00:00
..
value_builder Bug 23777: (QA follow-up) Fix TT closing braces 2020-02-21 15:41:19 +00:00
addbiblio.tt Bug 24621: Phase out jquery.cookie.js: Basic MARC editor 2020-02-17 13:48:27 +00:00
addbooks.tt Bug 24420: Display waiting on hold items in the Cataloging search results Location column 2020-02-05 12:36:46 +00:00
additem.tt Bug 24649: Fix missing <li> tag on item editor for cloned subfield 2020-02-17 10:36:58 +00:00
editor.tt Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
linkitem.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
merge.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
moveitem.tt Bug 24232: Hide the "Delete biblio" if permission edit_catalogue not set 2019-12-20 12:07:27 +00:00
z3950_auth_search.tt Bug 23226: Remove type attribute from script tags: Cataloging 2019-07-26 16:23:03 +01:00
z3950_search.tt Bug 21921: Add date publication year to biblio Z39.50 search form 2020-02-17 13:44:23 +00:00