Koha/koha-tmpl/intranet-tmpl/prog/en/modules/help
Julian Maurice ed7543287b Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
Having to write [% KOHA_VERSION %] for each url is bad because:
- It's easily forgettable when adding new <script> or <link>
- It prevents grep'ing for the full filename
- It violates the DRY principle
- If at some point we want to change the "force js and css reload"
  mechanism, it will be tedious

This patch:
- adds a Template::Toolkit plugin that generates <script> and
  <link> tags for JS and CSS files, and inserts automatically the Koha
  version in the filename
- use the new plugin to remove all occurences of [% KOHA_VERSION %]
- remove the code that was adding KOHA_VERSION as a template variable

Test plan:
1. Apply patch
2. Go to several different pages in Koha (opac and intranet) while
   checking your browser's dev tools (there should be no 404 for JS and
   CSS files, and the Koha version should appear in filenames) and the
   server logs (there should be no "File not found")
3. `git grep KOHA_VERSION` should return nothing
4. prove t/db_dependent/Koha/Template/Plugin/Asset.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-13 11:49:44 -03:00
..
acqui Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
admin Bug 19096: Online help changes 2017-12-07 14:44:15 -03:00
authorities Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
catalogue Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
cataloguing Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
circ Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
course_reserves Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
labels Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
members Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
offline_circ Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
patron_lists Bug 18817: Update links with anchor automatically 2017-08-25 10:22:14 -03:00
patroncards Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
plugins Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
reports Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
reserve Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
reviews Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
rotating_collections Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
serials Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
suggestion Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
tags Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
tools Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
virtualshelves Bug 19255: QA Followup - Fix tabs for spaces 2017-10-09 16:15:50 -03:00
about.tt Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00
edithelp.tt Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
mainpage.tt Bug 18817 Correct Manual URL 2017-08-25 10:22:13 -03:00
nohelp.tt Bug 18817: Update links manually 2017-08-25 10:22:14 -03:00