Bug 33547 add a 'print slip' button to print the info for a given item, but it would be great to have a 'print slips' action button that could be clicked after we have selected a bunch of items and that would print all slips on the same document.
Created attachment 152407 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/
Created attachment 152408 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/
Created attachment 152975 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/
Created attachment 152976 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/
Tested on https://staff-preservatio.sandboxes.biblibre.eu 1. Select items in the train 2. Click the Print slips link above the table 3. Print slip is generated, one item per page, according to PRES_TRAIN_ITEM template. This works as expected When I click on the Print slips link without having selected items, nothing occurs. Could be done : either disabled the click, or print a warning "no item was selected"
Created attachment 154208 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Created attachment 154209 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
(In reply to Laurence Rault from comment #5) > When I click on the Print slips link without having selected items, nothing > occurs. Could be done : either disabled the click, or print a warning "no > item was selected" Will do here if QA think it's blocker, or on a separate bug report
Created attachment 156972 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Created attachment 156973 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Created attachment 156975 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 156976 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(In reply to Jonathan Druart from comment #8) > (In reply to Laurence Rault from comment #5) > > When I click on the Print slips link without having selected items, nothing > > occurs. Could be done : either disabled the click, or print a warning "no > > item was selected" > > Will do here if QA think it's blocker, or on a separate bug report In my testing the button was disabled when nothing was checked
Created attachment 157591 [details] [review] Bug 34030: Add a "print slips" action links to print in batch Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 157592 [details] [review] Bug 34030: non-table view Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: BULAC - http://www.bulac.fr/ Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 23.11. Nice work everyone, thanks!
Depends on Bug 33547 not in 23.05.x
Is there a test plan/documentation around how to use this? It sounds similar to work we're doing at Bug 33260 but I'm not sure what the Preservation module is and what functionality we should avoid recreating without a test plan.
(In reply to Aleisha Amohia from comment #18) > Is there a test plan/documentation around how to use this? It sounds similar > to work we're doing at Bug 33260 but I'm not sure what the Preservation > module is and what functionality we should avoid recreating without a test > plan. Hi Aleisha, The preservation module has been added by bug 30708. The changes to circ/printslip.tt allow to pass several notices to print to the template, and one notice per page will be printed on the generated document. Have a look at preservation/print_slip.pl if you want to redo it in another script. To test this in master you can: 1. Turn on PreservationModule 2. yarn build 3. Go to /cgi-bin/koha/preservation/settings 4. Select a value for "Status for item added to waiting list:" 5. Click "add new processing", choose a name and use select "Letter template for printing slip" = "Train item slip", submit. 6. Create a train: click "Train" in the nav menu, "New train", fill in the form 7. Go to the waiting list, click "Add to waiting list". Enter several barcodes, submit 8. Click "Add last 2 items to a train" button at the top of the page, select your train, submit, submit again. 9. You should be on the detail view of the train. Select the 2 items in the table and click "Print slips" => You get a PDF document with 2 pages, one item per page! Let me know if you have any more questions!
(In reply to Jonathan Druart from comment #19) > (In reply to Aleisha Amohia from comment #18) > > Is there a test plan/documentation around how to use this? It sounds similar > > to work we're doing at Bug 33260 but I'm not sure what the Preservation > > module is and what functionality we should avoid recreating without a test > > plan. > > Hi Aleisha, > The preservation module has been added by bug 30708. > > The changes to circ/printslip.tt allow to pass several notices to print to > the template, and one notice per page will be printed on the generated > document. > > Have a look at preservation/print_slip.pl if you want to redo it in another > script. > > Let me know if you have any more questions! Thank you Jonathan, that is very helpful!