]> git.koha-community.org Git - koha.git/commit
Bug 8256: Teach webservice to select reports by name
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 15 Jun 2012 18:43:03 +0000 (14:43 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 10 Jul 2012 09:59:44 +0000 (11:59 +0200)
commit19264af3f4cb75f8111b9d095efde6fd44038cb3
treecb7e4ba1ac75b5ac6d8022f03173900428609e37
parent9f231c4dd907f6187488fd38549b4c9d95fb6693
Bug 8256: Teach webservice to select reports by name

Adds the ability to pass a hash to C4::Reports::Guided::get_saved_report
which specifies a name or id to select the report.

Test plan:
1. Create a report (or choose an existing one), and mark it public
2. Run the report using the web service: [IntranetBaseURL]/cgi-bin/koha/svc/report?id=whatever
3. Confirm you get the expected results
4. Run the report by name using the web service: [IntranetBaseURL]/cgi-bin/koha/svc/report?name=[Report name] (keep spaces in the name)
5. Confirm you get the same results
6. Run the report using the public web service: [OPACBaseURL]/cgi-bin/koha/svc/report?id=whatever
7. Confirm you get the same results
8. Run the report by name using the public web service: [OPACBaseURL]/cgi-bin/koha/svc/report?name=[Report name] (keep spaces in the name)
9. Confirm you get the same results
10. Sign off

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
- Adding, editing and deleting reports works
- id parameter works
- new name parameter works
- public and non-public works

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Reports/Guided.pm
opac/svc/report
svc/report