Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports
Owen Leonard f2be2cedc5
Bug 34533: jsdiff library missing from guided reports page
This patch restores the inclusion of the jsdiff JS library on the guided
reports page when displaying saved SQL reports. This fixes a JS error in
the browser console when the user tries to use our automatic update on
SQL reports which use an older syntax.

The patch also corrects a problem with svc/convert_report which was
causing an error when trying to display the diff information.

To test, apply the patch and restart services.

- Go to Reports -> Create from SQL.
- Add a report which is based on an older db structure. The example I
  found was:

  SELECT biblionumber,
  ExtractValue(marcxml,'//datafield/@tag/text()[substring(.,1,1) = "5"]') as 'notes'
  FROM biblioitems
  HAVING notes <> ''

- Save the report and go to the list of saved reports. There should be
  an "Update" column in the table, with a message about your newly-added
  report:

  "This report seems obsolete, it uses biblioitems.marcxml field."

- Clicking the "Update SQL" button should trigger a modal window that
  shows the before an after versions of the report. There should be
  no error in the browser console. Unfortunately the diff will not
  display because of a separate bug in svc/convert_report

Signed.off-by: Jessie Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-08-29 14:37:13 -03:00
..
csv
acquisitions_stats.tt Bug 33436: Use template wrapper for breadcrumbs: Reports part 1 2023-04-12 09:26:53 -03:00
bor_issues_top.tt Bug 33436: Use template wrapper for breadcrumbs: Reports part 1 2023-04-12 09:26:53 -03:00
borrowers_out.tt Bug 33436: Use template wrapper for breadcrumbs: Reports part 1 2023-04-12 09:26:53 -03:00
borrowers_stats.tt Bug 33436: Use template wrapper for breadcrumbs: Reports part 1 2023-04-12 09:26:53 -03:00
cash_register_stats.tt Bug 32091: Consistent classes for primary buttons: Reports 2022-11-10 10:27:48 -03:00
cat_issues_top.tt Bug 33437: Use template wrapper for breadcrumbs: Reports part 2 2023-05-05 09:13:26 -03:00
catalogue_out.tt Bug 33437: Use template wrapper for breadcrumbs: Reports part 2 2023-05-05 09:13:26 -03:00
catalogue_stats.tt Bug 33437: Use template wrapper for breadcrumbs: Reports part 2 2023-05-05 09:13:26 -03:00
convert_report.tt
dictionary.tt Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
guided_reports_start.tt Bug 34533: jsdiff library missing from guided reports page 2023-08-29 14:37:13 -03:00
issues_avg_stats.tt Bug 34436: Some breadcrumbs lack <span> for translatability 2023-08-15 11:25:55 +03:00
issues_stats.tt Bug 33438: Use template wrapper for breadcrumbs: Reports part 3 2023-04-21 10:36:22 -03:00
itemslost.tt Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
itemtypes.tt Bug 31667: Merge 'tip' and 'hint' classes 2023-08-15 15:14:06 +03:00
orders_by_budget.tt Bug 33439: Use template wrapper for breadcrumbs: Reports part 4 2023-04-21 10:36:23 -03:00
reports-home.tt Bug 32910: (follow-up) Replace v4 icon names with v6 2023-06-12 11:52:10 -03:00
reserves_stats.tt Bug 33792: reserves_stats: Undo homebranch and holdingbranch preselect 2023-05-23 16:53:59 -03:00
serials_stats.tt Bug 33439: Use template wrapper for breadcrumbs: Reports part 4 2023-04-21 10:36:23 -03:00