Bug 18465 - Patron card creator: Print on duplex card printer
Summary: Patron card creator: Print on duplex card printer
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Marc Véron
QA Contact: Testopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 18:26 UTC by Marc Véron
Modified: 2017-04-20 19:10 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Bot Control: ---
When did the bot last check this:
Who signed the patch off:
Text to go in the release notes:


Attachments
Bug 18465 - Patron card creator: Print on duplex card printer (13.49 KB, patch)
2017-04-20 19:09 UTC, Marc Véron
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Véron 2017-04-20 18:26:12 UTC
Card printers with duplex functionality need as input a PDF file where odd pages contain the front side and even pages the back side of the cards.
Comment 1 Chris Nighswonger 2017-04-20 18:31:02 UTC
This would be a very nice. Combined with printable RFID cards, it would make a very useful improvement.
Comment 3 Chris Nighswonger 2017-04-20 18:37:06 UTC
If only the page order matters, this should be doable with little effort.
Comment 4 Marc Véron 2017-04-20 19:09:19 UTC
Created attachment 62498 [details] [review]
Bug 18465 - Patron card creator: Print on duplex card printer

Card printers with duplex functionality need as input a PDF file where odd pages contain
the front side and even pages the back side of the cards.

This patch adds such functionality.

To prepare test:
- In Patron card creator > Templates, prepare a 1 up template (1 column / 1 row) that
  fits to a single card. Give it a name like 'Duplex card template'
  (Attention, Card with and Card height seem to have wrong labels, that will go
  to a separate bug).
- In Patron card creator > Layouts create a layout for the front side and one for
  the back side. Give them names to easily remember (Card front layout, Card back layout)
- Go to Patron card creator > Batches and test both layouts together with the
  1 up template. Save and keepp both test files as reference.

To test:
- Apply patch. Restart memcached and plack.
- Go to Patron card creator > Batches
- Click "Export" for a batch
- In the following screen, note the new field "Select a layout for the back side"
  with a hint what it is used for
- Leave it on 'Back side layout not used', export and compare output with test ooutput
  from preparation. It should be the same
- Select the layout you prepared for the back side.
- Export - this file should contain 2 PDF pages per patron, one first with the
  front side, second with the back side.