Koha/svc
Nick Clemens 45ec6ba3a4 Bug 27380: Move get_prepped_report to object and use for svc/reports
This patch moves get_prepped_report to Koha:Report->prep_report
and adds some basic tests

To test:
1 - Using the report created in last test, hit the report svc api like:
http://localhost:8081/cgi-bin/koha/svc/report?id=6&param_name=One&sql_params=One&param_name=Listy|list&sql_params=2345%0D%0A423%0D%0A3%0D%0A2%0D%0A12
2 - Note the use of %0D%0A to separate list params
3 - Test with combinations with and without param_name specified
http://localhost:8081/cgi-bin/koha/svc/report?id=6&sql_params=5&sql_params=2345%0D%0A423%0D%0A3%0D%0A2%0D%0A12

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

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

JD Amended patch: Perltidy prep_report

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-12 12:29:56 +01:00
..
cataloguing Bug 11299: Adjust call to check_cookie_auth 2021-01-14 14:03:49 +01:00
club Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
config
hold Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
letters Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
mana Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
members Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
records Bug 24663: Force authentication in svc/records/preview (?) 2020-09-03 10:40:35 +02:00
virtualshelves Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article_request Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
authentication Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
authorised_values Bug 25728: Use a svc script instead of the REST API endpoint 2020-08-24 11:19:03 +02:00
barcode Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib_framework Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib_profile Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkin Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkout_notes Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkouts Bug 26976: Display 0 if renewalsallowed is not defined 2020-12-04 15:32:56 +01:00
convert_report Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cover_images Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
creator_batches Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
holds Bug 24412: (follow-up) prevent error in svc/holds 2020-11-06 15:55:17 +01:00
import_bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
localization
new_bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
problem_reports Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
renew Bug 24083: (follow-up) Fix params to AddRenewal 2020-11-11 16:09:58 +01:00
report Bug 27380: Move get_prepped_report to object and use for svc/reports 2021-02-12 12:29:56 +01:00
return_claims Bug 27306: Add subtitle to return-claims-table 2021-01-12 16:29:57 +01:00
split_callnumbers Bug 26251: Remove unused routines from svc/split_callnumbers 2020-08-20 10:23:56 +02:00