Koha/svc
Nick Clemens 90d85eaeb9
Bug 23390: Introduce placeholder syntax for report column names
This patch adds the ability to rename columns in MySQL reports using a syntax:
[[column|alias]]

To test:
 1 - Write a report like:
     SELECT cardnumber FROM borrowers WHERE cardnumber LIKE '%9'
 2 - Run report
 3 - Note you can batch modify the patrons
 4 - Update report:
     SELECT cardnumber AS library_barcode FROM borrowers WHERE cardnumber LIKE '%9'
 5 - Run report
 6 - Note batch options are no longer present
 7 - Apply patch
 8 - Run report, no change
 9 - Update report like:
     SELECT [[cardnumber|library_barcode]] FROM borrowers WHERE cardnumber LIKE '%9'
10 - Run report
11 - Batch options work!
12 - Update report like:
    SELECT cardnumber FROM borrowers WHERE cardnumber LIKE '%9'
13 - Verify batch options still work
14 - Set report 'public'
15 - Verify report can be run via JSON URLs:
     http://kohadev.mydnsname.org:8080/cgi-bin/koha/svc/report?id=1
     http://kohadev.mydnsname.org:8081/cgi-bin/koha/svc/report?id=1

Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-08-13 11:46:06 +01:00
..
cataloguing Bug 19263: Rancor - Add auto-001 widget 2018-10-27 13:26:08 +00:00
club Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00
config Bug 14391: (QA follow-up) Resolve POD warn on svc..systempreferences 2018-11-07 12:29:32 +00:00
hold Bug 8030 - (QA followup) Remove svc file no longer user Use animated gif for waiting as elsewhere Remove confirmation 2016-09-12 08:47:04 +00:00
letters Bug 7862: Preventing warns when creating a notice 2019-05-15 12:10:52 +00:00
mana Bug 22249: Mana - Move comment process in a dedicated sub 2019-07-26 16:08:08 +01:00
members Bug 22483: Restore svc/members/search 2019-03-09 05:16:40 -03:00
records Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
virtualshelves Bug 16476: Do not call CGI->param in list context, some more 2016-05-16 17:11:46 +00:00
article_request Bug 14610 - Add and update scripts 2016-10-26 12:15:14 +00:00
authentication Bug 20016: use Modern::Perl in svc scripts 2018-02-05 09:46:45 -03:00
barcode Bug 23144: (QA follow-up) Fix another POD error in svc/barcode 2019-06-20 09:27:39 +01:00
bib Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
bib_framework Bug 16424: (QA follow-up) Use Modern::Perl 2018-09-28 19:01:51 +00:00
bib_profile Bug 20016: use Modern::Perl in svc scripts 2018-02-05 09:46:45 -03:00
checkin Bug 14576: Allow arbitrary automatic update of location on checkin 2019-04-25 11:36:23 +00:00
checkout_notes Bug 17698: Make patron notes show up on staff dashboard 2018-07-23 15:23:40 +00:00
checkouts Bug 11529: (follow-up) Fix QA issues 2019-08-05 15:03:19 +01:00
convert_report Bug 20495: Remove get_saved_report 2018-07-02 12:06:54 +00:00
cover_images
creator_batches Bug 15766: (follow-up) Fixing layout of description button 2018-10-24 13:52:43 +00:00
holds Bug 11529: (follow-up) Fix QA issues 2019-08-05 15:03:19 +01:00
import_bib Bug 20016: use Modern::Perl in svc scripts 2018-02-05 09:46:45 -03:00
localization Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
new_bib Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
renew Bug 7088: Allow renew on hold items with due date 2019-05-09 14:40:49 +00:00
report Bug 23390: Introduce placeholder syntax for report column names 2019-08-13 11:46:06 +01:00
split_callnumbers Bug 22388: Add missing +x flag to split_callnumbers 2019-02-21 15:54:20 +00:00