Koha/patroncards
Marc Véron b51f2baa7c Bug 14138: Patroncard: Warn user if PDF creation fails
Change patroncards/create-pdf.pl to redirect with an error message
instead of writing an invalid pdf that does not open in pdf viewer.

To test:
- Apply patch

- Test that pdf creator behaves as before (with valid batches and
  patron lists)

- While testing, copy pdf link address from window with title 'Click
  the following link(s) to download...'

- Open another staff client browser tab

- Paste link to browser address field, change batch id rsp. patron
  list id to an invalid value and submit

- The window should redirect to cgi-bin/koha/patroncards/create-pdf.pl
  and display an error message

- Bonus test 1: Create an empty patron list and test patron card
  creation. You should get an error message as appropriate.

- Bonus test 2: Use a link with params like the following:
  ...create-pdf.pl?borrower_number=61&template_id=2&layout_id=1&start_card=1
  Verify that you can create a pdf with a valid borrower_number and that
  you get the error message with an invalid borrower number

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

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-07-15 15:00:56 +00:00
..
add_user_search.pl Bug 16459: Add patron to a patron card requires catalogue permission 2016-07-08 12:46:25 +00:00
create-pdf.pl Bug 14138: Patroncard: Warn user if PDF creation fails 2016-07-15 15:00:56 +00:00
edit-batch.pl Bug 16154: CGI->multi_param - Assign a list 2016-04-26 23:16:43 +00:00
edit-layout.pl Bug 15414: Silencing warns triggered by creating a new layout in patron card creator 2016-04-29 11:35:39 +00:00
edit-profile.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
edit-template.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
image-manage.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
manage.pl Bug 15573: String and translatability fix to Patron Card Creator 2016-01-27 05:36:52 +00:00
print.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00