Bug 15918

Summary: Obsolete file datatables-strings.inc can be removed
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, kyle, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 15920    
Bug Blocks:    
Attachments: Bug 15918 - Obsolete file datatables-strings.inc can be removed
Bug 15918 - Obsolete file datatables-strings.inc can be removed
Bug 15918: (followup) Correct comment in koha-tmpl/opac-tmpl/bootstrap/js/datatables.js
Bug 15918 - Obsolete file datatables-strings.inc can be removed
Bug 15918: (followup) Correct comment in koha-tmpl/opac-tmpl/bootstrap/js/datatables.js

Description Owen Leonard 2016-02-25 17:02:56 UTC
The include file datatables-strings.inc is no longer necessary. Its contents are now in datatables.inc. The last few references to it can be removed and the file deleted.
Comment 1 Owen Leonard 2016-02-25 19:51:46 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-03-16 15:28:44 UTC
There seems to be one more comment containing datatables-strings.inc


git grep 'datatables-strings.inc'

koha-tmpl/opac-tmpl/bootstrap/js/datatables.js:// MSG_DT_* variables comes from datatables-strings.inc
Comment 3 Marc Véron 2016-04-17 08:56:29 UTC Comment hidden (obsolete)
Comment 4 Marc Véron 2016-04-17 09:07:58 UTC Comment hidden (obsolete)
Comment 5 Jonathan Druart 2016-04-18 10:07:55 UTC
Created attachment 50318 [details] [review]
Bug 15918 - Obsolete file datatables-strings.inc can be removed

The include file datatables-strings.inc is no longer necessary. Its
contents are now in datatables.inc. This patch corrects two references
in comments to datatables-strings.inc (replacing it with datatables.inc)
and removes the obsolete file.

To test, apply the patch and load any page with a DataTables-enabled
table configured to show pagination buttons, e.g. Saved Reports.
Pagination labels like "Next," "Previous," and "Showing X of X..."
should be correct.

Search the codebase to confirm that no references remain for
datatables-strings.inc.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 6 Jonathan Druart 2016-04-18 10:07:59 UTC
Created attachment 50319 [details] [review]
Bug 15918: (followup) Correct comment in koha-tmpl/opac-tmpl/bootstrap/js/datatables.js

This followup changes comment in koha-tmpl/opac-tmpl/bootstrap/js/datatables.js line 3 to
MSG_DT_* variables comes from datatables.inc

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 7 Jonathan Druart 2016-04-18 10:08:28 UTC
(In reply to Owen Leonard from comment #0)
> The include file datatables-strings.inc is no longer necessary. Its contents
> are now in datatables.inc. The last few references to it can be removed and
> the file deleted.

Not sure it has ever been used actually.
Comment 8 Kyle M Hall (khall) 2016-04-29 13:33:45 UTC
Pushed to master for the May 2016 release. Thanks Owen!