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
club
config
hold
letters
mana Bug 22249: Mana - Move comment process in a dedicated sub 2019-07-26 16:08:08 +01:00
members
records
virtualshelves
article_request
authentication
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
bib_profile
checkin
checkout_notes
checkouts Bug 11529: (follow-up) Fix QA issues 2019-08-05 15:03:19 +01:00
convert_report
cover_images
creator_batches
holds Bug 11529: (follow-up) Fix QA issues 2019-08-05 15:03:19 +01:00
import_bib
localization
new_bib Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
renew
report Bug 23390: Introduce placeholder syntax for report column names 2019-08-13 11:46:06 +01:00
split_callnumbers