Description
Aleisha Amohia
2023-04-11 00:25:01 UTC
Created attachment 149743 [details] [review] Bug 33478: [WIP] Allow formatting of notices Created attachment 149785 [details] [review] Bug 33478: Add formatting columns to letter table Created attachment 149786 [details] [review] Bug 33478: Schema updates Created attachment 149787 [details] [review] Bug 33478: [WIP] Allow formatting of notices Created attachment 149914 [details] [review] Bug 33478: Add formatting columns to letter table Created attachment 149915 [details] [review] Bug 33478: Add format_notices user permission Created attachment 149916 [details] [review] Bug 33478: Save notice format settings For an individual notice, or for all notices Created attachment 149917 [details] [review] Bug 33478: [WIP] Apply formatting to printed notices Does not yet apply to all notices Created attachment 149918 [details] [review] Bug 33478: Schema updates Created attachment 149999 [details] [review] Bug 33478: Add formatting columns to letter table Created attachment 150000 [details] [review] Bug 33478: Schema updates Created attachment 150001 [details] [review] Bug 33478: Add format_notices user permission Created attachment 150002 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Print tab 5. Confirm format settings now show underneath the notice content box 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works 8. Add a new notice and confirm format settings save successfully 9. Search for a patron, go to More -> Set permissions 10. Ensure they have all Tools permissions EXCEPT for new format_notices user permission 11. Log into the staff interface as this patron 12. Go to Tools -> Notices and slips 13. Edit a notice 14. Go to the Print tab 15. Confirm the format settings DO NOT show underneath the notice content box Sponsored-by: Colorado Library Consortium Created attachment 150003 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 150004 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 150005 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 150006 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 150007 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 150008 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 150009 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 150010 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 150011 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 150012 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied I didn't do a full run through as I hit a few issues. Must fix: - A patron without permissions cannot save print notices. The current settings need to be included as hidden inputs - The permission doesn't prevent url/form manipulation without the permission. This must be checked in the code. - There is an empty value in the Units dropdown for 'AGATE' Should fix: - The DB fields should be enum if they only support a limited range of values - This reveals an consistency - ISSUESLIP is presented in print format, however, it uses the 'email' template. Possibly the settings can be their own section? Otherwise this needs to be addressed - 'Apply format settings to all notices' - I can see the utility here for initially settings things up - but this seems a bit too powerful. A warning at least would be nice - Even if you cannot edit the settings - it would be useful to view the print formatting so you know what you can see - The new form is added to all notices - but it really only applies to slips if I understand correctly? Does this work with bug 33260 for printing notices from the staff interface? It should be clarified if it does not work with gather_print_notices etc. Could fix: - I don't know that a permission is needed here, if you can edit slips I would assume you can edit this portion too, but I assume there is a motivation Created attachment 150265 [details] [review] Bug 33478: Add formatting columns to letter table Created attachment 150266 [details] [review] Bug 33478: Schema updates Created attachment 150267 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Print tab 5. Confirm format settings now show underneath the notice content box 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works 8. Add a new notice and confirm format settings save successfully 9. Search for a patron, go to More -> Set permissions 10. Ensure they have all Tools permissions EXCEPT for new format_notices user permission 11. Log into the staff interface as this patron 12. Go to Tools -> Notices and slips 13. Edit a notice 14. Go to the Print tab 15. Confirm the format settings DO NOT show underneath the notice content box Sponsored-by: Colorado Library Consortium Created attachment 150268 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 150269 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 150270 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 150271 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 150272 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 150273 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 150274 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 150275 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 150276 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 150277 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied (In reply to Nick Clemens from comment #24) > I didn't do a full run through as I hit a few issues. Thank you for testing! Decided to remove the permission as I agree it's not really needed and think that addresses half of these issues. > > Must fix: > - A patron without permissions cannot save print notices. The current > settings need to be included as hidden inputs > - The permission doesn't prevent url/form manipulation without the > permission. This must be checked in the code. Removed permission > - There is an empty value in the Units dropdown for 'AGATE' Fixed in latest patchset > > Should fix: > - The DB fields should be enum if they only support a limited range of > values Fixed in latest patchset > - This reveals an consistency - ISSUESLIP is presented in print format, > however, it uses the 'email' template. Possibly the settings can be their > own section? Otherwise this needs to be addressed Moved to its own section out of the Print section) > - 'Apply format settings to all notices' - I can see the utility here for > initially settings things up - but this seems a bit too powerful. A warning > at least would be nice Added a confirmation box when hitting Save > - Even if you cannot edit the settings - it would be useful to view the > print formatting so you know what you can see I haven't addresses the print preview because you can see a print preview when you go to Print the notice - I know it's not ideal. I can come back to this if I have some time but I don't think it should be a blocker at this point. > - The new form is added to all notices - but it really only applies to > slips if I understand correctly? Does this work with bug 33260 for printing > notices from the staff interface? It should be clarified if it does not work > with gather_print_notices etc. I plan to rebase Bug 33260 on top of this. > > Could fix: > - I don't know that a permission is needed here, if you can edit slips I > would assume you can edit this portion too, but I assume there is a > motivation Removed permission Created attachment 150324 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm format settings are available to edit 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm format settings save successfully Sponsored-by: Colorado Library Consortium Created attachment 150325 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 150326 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 150327 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 150328 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 150329 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 150330 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 150331 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 150332 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 150333 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 150334 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Created attachment 150335 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm format settings are available to edit 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm format settings save successfully Sponsored-by: Colorado Library Consortium Created attachment 150336 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 150337 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 150338 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 150339 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 150340 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 150341 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 150342 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 150343 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 150344 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 150345 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Everything worked fine for me except for Apply formatting to ACCOUNTS_SUMMARY. The formatting stayed the same regardless of what was put under the ACCOUNTS_SUMMARY formatting tab. Created attachment 151548 [details] [review] Bug 33478: Make sure formatting is applied to tables in notices This fixes the formatting not showing on ACCOUNTS_SUMMARY and also applies changes to headings Created attachment 151580 [details] [review] Bug 33478: Add formatting columns to letter table Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151581 [details] [review] Bug 33478: Schema updates Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151582 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm format settings are available to edit 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm format settings save successfully Sponsored-by: Colorado Library Consortium Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151583 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151584 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151585 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151586 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151587 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151588 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151589 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151590 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151591 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151592 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 151593 [details] [review] Bug 33478: Make sure formatting is applied to tables in notices This fixes the formatting not showing on ACCOUNTS_SUMMARY and also applies changes to headings Signed-off-by: Sam Lau <samalau@gmail.com> Still applies. But I am not sure if this is the way to go. Why not just apply css to html notices. And plain text is plain text? Asking QA team for opinions. I'm with Marcel.. the first question I asked myself is why aren't you just using the existing preference for this? There's more preferences than I thought however.. NoticeCSS, SlipCSS and finally IntranetSlipPrinterJS. Rather than adding a plethora of fields to the letters table and require setting these for each and every slip.. I think I'd get behind improvements to the existing preferences and shortcuts to the right preference from the Notices and Slips page. I'd love to see those preferences as CSS from the DB rather than having to point to a hosted sheet.. though that would be a change. Personally.. I'd have * EmailNoticeCSS - CSS stored in the DB for email notice CSS * EmailNoticeCSSHosted - Location of CSS file for email notice CSS (to retain the old NoticeCSS option) * PrintNoticeCSS - CSS stored in the DB for print notice CSS * PrintNoticeCSSHosted - Location of the CSS file for the print notice CSS (to reatin the old SlipCSS option) SMS doesn't support HTML/CSS so no need for that transport type to have these CSS options. What I'd really like to see more use of however, is the notice preview functionality.. we hardly expose that anywhere and that would really benefit here. (In reply to Martin Renvoize from comment #78) > I'm with Marcel.. the first question I asked myself is why aren't you just > using the existing preference for this? ... > Rather than adding a plethora of fields to the letters table and require > setting these for each and every slip.. I actually like this - the ability to set a standard for all notices, or set individual notices as needed without dealing with a large block that affects all notices (and can break everything with typos) > I think I'd get behind improvements > to the existing preferences and shortcuts to the right preference from the > Notices and Slips page. I'd love to see those preferences as CSS from the DB > rather than having to point to a hosted sheet.. though that would be a > change. I don't see this as opposed to that, it allows for easy setting of some styles with no CSS knowledge required, and allows for the preferences to be expanded or added to in the future for those with more expertise to use > What I'd really like to see more use of however, is the notice preview > functionality.. we hardly expose that anywhere and that would really benefit > here. Totally agree, but think this might be its own bug I totally see the logic in trying to find the absolute best way to do this. However, we have prison libraries that are in need of this development sooner than later. They can't email their patrons, because their patrons aren't allowed email access. If we could get some of this suggested changes onto a different bug, I would be very interested in sponsoring that work to make it even better. Is it possible we could get this bug moving in the meantime as long as everything works? - Bob Bennhoff Koha is all about flexibility and customisability. Being able to apply CSS per notice provides that to the libraries. Martin's suggestions for sysprefs for Email and Print Notice CSS sound like lovely ideas - and can be developed separate to this feature, on another bug report. I also agree I'd like to see more use of the Notice Preview functionality - let's work on that on another bug report. There's allowed to be more than one way to do something in Koha. I don't think we should limit customisability, and I don't see the suggestions made as alternatives to this work. Setting back to Signed Off. Must fix: Applying this patch adds a default left justified, 14pt, 8.5 inches style to all notices which overrides anything set in SlipCSS - this will break user slip customizations - the new formatting must not override SlipCSS - especially if it is adding new defaults. This patchset must not affect existing slips. Ideally there would be nothing saved in the DB by default Should fix: Formatting applies to most things, however, some from print.css take precedence - for a hold slip the <h5> doesn't respect the font size I entered - if I enter a font size, I expect the entire notice to respect it - or we need more granular settings here Would fix: As we are storing the form values and using it to generate CSS - we could calculate that on save, and only need a single 'style' field for the slip - this would allow for adding an advanced editor in the future to allow staff to directly enter styles here. Not a blocker per se, but would add less fields and allow future extension. Otherwise each style we want to provide will require a new field Question: For a non-html notice - the formatting is odd. Set OVERDUES_SLIP / Print / HTML Message unchecked Set OVERDUES_SLIP / Format /Text justification: Right, Notice width: 4 Generate the overdue as per test plan Notice is narrow, cuttoff at edge, and not justified Should the style and wrapping div should only be added for html notices? i.e. should the <pre> trags be outside of the div and style, or those dropped entirely when notice is not html? Created attachment 156469 [details] [review] Bug 33478: [WIP] CSS area instead of specific style inputs This patch implements a single style field for the slip to allow for more advanced CSS customisation. This prevents the forcing of default styles which override the SlipCSS syspref settings. There are links to insert selectors as helpers. Created attachment 157368 [details] [review] Bug 33478: Add formatting columns to letter table Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157369 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm format settings are available to edit 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm format settings save successfully Sponsored-by: Colorado Library Consortium Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157370 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157371 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157372 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157373 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157374 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157375 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157376 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157377 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157378 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157379 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157380 [details] [review] Bug 33478: Make sure formatting is applied to tables in notices This fixes the formatting not showing on ACCOUNTS_SUMMARY and also applies changes to headings Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 157381 [details] [review] Bug 33478: Schema updates Created attachment 157382 [details] [review] Bug 33478: CCS textarea instead of specific style inputs This patch implements a single style field for the slip to allow for more advanced CSS customisation. This prevents the forcing of default styles which override the SlipCSS syspref settings. There are links to insert selectors as helpers. To test, go to edit the Format of a notice. There is now a textarea so you can write CSS directly. There are links that insert selectors as CSS for notices needs specific IDs like #receipt and #slip to override print.css etc. Confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Created attachment 157387 [details] [review] Bug 33478: Better selector for body of notices suggest #slip, #receipt, and pre instead of body for css Created attachment 158835 [details] [review] Bug 33478: Add formatting columns to letter table Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 158836 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm format settings are available to edit 6. Change some settings and confirm they save correctly 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm format settings save successfully Sponsored-by: Colorado Library Consortium Signed-off-by: Sam Lau <samalau@gmail.com> Created attachment 158837 [details] [review] Bug 33478: Schema updates Created attachment 158838 [details] [review] Bug 33478: CCS textarea instead of specific style inputs This patch implements a single style field for the slip to allow for more advanced CSS customisation. This prevents the forcing of default styles which override the SlipCSS syspref settings. There are links to insert selectors as helpers. To test, go to edit the Format of a notice. There is now a textarea so you can write CSS directly. There are links that insert selectors as CSS for notices needs specific IDs like #receipt and #slip to override print.css etc. Confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Created attachment 158839 [details] [review] Bug 33478: Better selector for body of notices suggest #slip, #receipt, and pre instead of body for css Created attachment 158840 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 158841 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 158842 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 158843 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 158844 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 158845 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 158846 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 158847 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 158848 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 158849 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied I have reworked this feature to apply on top of the new Preservation Module, which changed the markup for how most notices are sent. Please test that any formatting applies to all notices again, thank you! Created attachment 158856 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Must fix: This is looking nice, it works in basic setups, however, there is an issue if 'TranslateNotices' is enabled, the form value is not passed correctly for multiple languages. So on save sometimes the values are lost. The 'Apply format settings to all notices:' also seems to reflect separate languages in the code - it should be made to work with multiple languages and the title updated. The patches should also be rebased/squashed to reflect the current state (and drop the addition of multiple fields) Please also see bug 33260 comment 39 and move that patch here. Note: The 'style' field is saved for each MTT of the letter - though only used in the print version. I think this is more an architecture issue, some slips are printed from the 'email' template, some are from 'print' I am not blocking here, but we should file a bug for this as it will be confusing and is some duplication in the DB Created attachment 162556 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices This patch implements a single style field for a slip to allow for advanced CSS customisation of printed notices. There are links to insert selectors as helpers. Styles can be applied for an individual notice, or all notices. To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm there is a textarea for CSS, and links to insert helpful selectors for IDs like #receipt and #slip 6. Add some CSS and confirm it saves. 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm CSS settings save successfully 9. The subsequent patches have specific testing plans for each printable notice. For each, confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. 10. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Created attachment 162557 [details] [review] Bug 33478: Schema updates Created attachment 162558 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 162559 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 162560 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 162561 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 162562 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 162563 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 162564 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 162565 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 162566 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Created attachment 162567 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 162568 [details] [review] Bug 33478: Make styles apply per notice Created attachment 162569 [details] [review] Bug 33478: Consider TranslateNotices when saving notice styles This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled. To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language. Confirm the CSS selector helpers are inserted into the textarea as expected. Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices. Looks like a very small rebase is needed after Bug 34478 was pushed. Created attachment 163903 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices This patch implements a single style field for a slip to allow for advanced CSS customisation of printed notices. There are links to insert selectors as helpers. Styles can be applied for an individual notice, or all notices. To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm there is a textarea for CSS, and links to insert helpful selectors for IDs like #receipt and #slip 6. Add some CSS and confirm it saves. 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm CSS settings save successfully 9. The subsequent patches have specific testing plans for each printable notice. For each, confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. 10. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Created attachment 163904 [details] [review] Bug 33478: Schema updates Created attachment 163905 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Created attachment 163906 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Created attachment 163907 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Created attachment 163908 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Created attachment 163909 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Created attachment 163910 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Created attachment 163911 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Created attachment 163912 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Created attachment 163913 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Created attachment 163914 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Created attachment 163915 [details] [review] Bug 33478: Make styles apply per notice Created attachment 163916 [details] [review] Bug 33478: Consider TranslateNotices when saving notice styles This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled. To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language. Confirm the CSS selector helpers are inserted into the textarea as expected. Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices. Created attachment 163924 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices This patch implements a single style field for a slip to allow for advanced CSS customisation of printed notices. There are links to insert selectors as helpers. Styles can be applied for an individual notice, or all notices. To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm there is a textarea for CSS, and links to insert helpful selectors for IDs like #receipt and #slip 6. Add some CSS and confirm it saves. 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm CSS settings save successfully 9. The subsequent patches have specific testing plans for each printable notice. For each, confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. 10. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163925 [details] [review] Bug 33478: Schema updates Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163926 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163927 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163928 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163929 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163930 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163931 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163932 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163933 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163934 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163935 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163936 [details] [review] Bug 33478: Make styles apply per notice Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163937 [details] [review] Bug 33478: Consider TranslateNotices when saving notice styles This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled. To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language. Confirm the CSS selector helpers are inserted into the textarea as expected. Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 163938 [details] [review] Bug 33478: (follow-up) Correct file permission Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164719 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices This patch implements a single style field for a slip to allow for advanced CSS customisation of printed notices. There are links to insert selectors as helpers. Styles can be applied for an individual notice, or all notices. To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm there is a textarea for CSS, and links to insert helpful selectors for IDs like #receipt and #slip 6. Add some CSS and confirm it saves. 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm CSS settings save successfully 9. The subsequent patches have specific testing plans for each printable notice. For each, confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. 10. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164720 [details] [review] Bug 33478: Schema updates Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164721 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164722 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164723 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164724 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164725 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164726 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164727 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164728 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164729 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164730 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164731 [details] [review] Bug 33478: Make styles apply per notice Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164732 [details] [review] Bug 33478: Consider TranslateNotices when saving notice styles This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled. To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language. Confirm the CSS selector helpers are inserted into the textarea as expected. Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164733 [details] [review] Bug 33478: (follow-up) Correct file permission Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164741 [details] [review] Bug 33478: Save notice format settings Save format settings for an individual notice, or for all notices This patch implements a single style field for a slip to allow for advanced CSS customisation of printed notices. There are links to insert selectors as helpers. Styles can be applied for an individual notice, or all notices. To test: 1. Apply the patches, install database updates, update schema if needed, and restart services 2. Go to Tools -> Notices and slips 3. Edit any notice 4. Go to the Format tab 5. Confirm there is a textarea for CSS, and links to insert helpful selectors for IDs like #receipt and #slip 6. Add some CSS and confirm it saves. 7. Test that 'apply these settings to all notices' option works. Test the confirmation box appears when this is checked. 8. Add a new notice and confirm CSS settings save successfully 9. The subsequent patches have specific testing plans for each printable notice. For each, confirm that SlipCSS stylesheet changes are applied first. Specific notice styles should be applied last. 10. Test with a non-HTML notice as well, such as RECALL_REQUESTER_DET. Plain (non_HTML) notices have always come with <pre> tags around them so the text is formatted slightly differently but any CSS from SlipCSS or the notice Format should still hold. Sponsored-by: Colorado Library Consortium Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164742 [details] [review] Bug 33478: Schema updates Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164743 [details] [review] Bug 33478: Apply formatting to ISSUESLIP, ISSUEQSLIP, CHECKINSLIP To test: 1. Check out an item to a patron 2. Click Print in the members toolbar, then Print quick slip 3. Confirm your format settings for ISSUEQSLIP are applied 4. Click Print in the members toolbar, then Print slip 5. Confirm your format settings for ISSUESLIP are applied 6. Return the item 7. When the item is checked in, click the 'Print checkin slip' button 8. Confirm your format settings for CHECKINSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164744 [details] [review] Bug 33478: Apply formatting to HOLD_SLIP To test: 1. Place a hold on a record 2. Check in an item attached to the record 3. When the pop-up for the hold is triggered, confirm hold and print slip 4. Confirm your format settings for HOLD_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164745 [details] [review] Bug 33478: Apply formatting to TRANSFERSLIP To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164746 [details] [review] Bug 33478: Apply formatting to OVERDUES_SLIP To test: 1. Check out an item to a user. Set the due date to a time in the past so it is overdue 2. Click Print in the members toolbar, then Print overdues 3. Confirm your format settings for OVERDUES_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164747 [details] [review] Bug 33478: Apply formatting to ACCOUNT_DEBIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Print button next to your invoice 5. Confirm your format settings for ACCOUNT_DEBIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164748 [details] [review] Bug 33478: Apply formatting to ACCOUNT_CREDIT To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. You'll be redirected to the Transactions tab 4. Click the Pay button next to your invoice and confirm Payment 5. Click the Print button next to your Payment 6. Confirm your format settings for ACCOUNT_CREDIT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164749 [details] [review] Bug 33478: Apply formatting to RECEIPT To test: 1. Enable EnablePointOfSale and UseCashRegisters system preferences in Koha Administration -> Global system preferences 2. Go to Koha Administration -> Cash registers and add a new cash register 3. Go to Koha Administration -> Debit types and add a new debit type. Make sure you check the 'can be sold' option 4. Go to Point of sale 5. Select Add for your item under Items for purchase 6. Fill in Collect payment box and click Confirm 7. When payment is received, click Print receipt 8. Confirm your format settings for RECEIPT are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164750 [details] [review] Bug 33478: Apply formatting to ACCOUNTS_SUMMARY To test: 1. Go to a patron accounting page 2. Create a manual invoice and Save 3. Click the Print button in the patron toolbar 4. Click the 'Print account balance' button 5. Confirm your format settings for ACCOUNTS_SUMMARY are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164751 [details] [review] Bug 33478: Apply formatting to RECALL_REQUESTER_DET To test: 1. Enable UseRecalls system preference and configure all relevant recalls circulation and fines rules 2. Search for a record with only one item 3. Check out this item to Patron A 4. Log into the OPAC as Patron B 5. Search for the item and place a recall 6. Go back to the staff interface 7. Check in the item 8. When the pop-up for the recall is triggered, confirm recall and print slip 9. Confirm your format settings for RECALL_REQUESTER_DET are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164752 [details] [review] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164753 [details] [review] Bug 33478: Make styles apply per notice Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 164754 [details] [review] Bug 33478: Consider TranslateNotices when saving notice styles This patch ensures saving styles per notice still works as expected when the TranslateNotices system preference is enabled. To test, enable the TranslateNotices system preference and attempt to save different CSS for each installed language for one notice. Confirm the correct CSS is saved for the correct language. Confirm the CSS selector helpers are inserted into the textarea as expected. Confirm the 'Apply format settings to all notices for this language' setting works, as in CSS is saved for all relevant language notices. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Created attachment 164755 [details] [review] Bug 33478: (follow-up) Correct file permission Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Whilst I had my initial reservations, I understand the use cases here now and certainly won't block it. The code works as described and whilst we can polish it in the future it's all working well enough. QA scripts are happy, tests are passing.. Passing QA, thanks for following through on this over time. I am struggling a tiny bit with the usability in the editor: Right now the tabs represent different message transports. We now add another tab, but it means something different: Format And then the Format only applies to the Print message transport. Makes me wonder: should it maybe be part of the print section? Maybe as an extended thing that can be "folded out"? Should it stay as a tab, but be renamed "Print format"? I am still going to push this as I think we can adjust display without breaking anything later on. But it would be great to get some feedback. Pushed for 24.05! Well done everyone, thank you! Not backported to 23.11.x (In reply to Katrin Fischer from comment #193) > I am struggling a tiny bit with the usability in the editor: > > Right now the tabs represent different message transports. > We now add another tab, but it means something different: Format > And then the Format only applies to the Print message transport. > > Makes me wonder: should it maybe be part of the print section? Maybe as an > extended thing that can be "folded out"? Should it stay as a tab, but be > renamed "Print format"? > > I am still going to push this as I think we can adjust display without > breaking anything later on. But it would be great to get some feedback. As I was documenting this, I thought the same. I wasn't sure where to put the information, after SMS where it is visually? But it applies only to print notices... At the same level as the transport types even if it's not a transport type? I agree for it to be a subsection of the Print tab would make more sense. I also had trouble using the feature, but that might just be a "me" problem... I tried with a simple "color: red;" with the "headers" selectors and the text stayed black... If we add Bug 33260 as is then this will apply to all transport types when printed. Honestly.. I find this and the new printing code rather confusing for end users.. but I "sort of" get it for some cases. Nick and I are still trying to iterate a bit on the aforementioned bug though to clarify things if we can. OK.. this is quite funny.. This doesn't actually apply to 'print' type notices at all.. those notices are generally printed via gather_print_notices.pl and none of the patches here add the styling additions here to either gather_print_notices.pl or it's corresponding template batch/print-notices.tt. So in fact.. those only really applies to SLIPs which get printed from the UI. It will apply to all other notice message transport types once the printing option has been exposed by bug 33260. Hmm, I also don't understand the regular expression here use to map the styles to the specific notices. `slip.style.replace('[^{]+{', '#slip_' _ slip.id _ ' {')` This will replace all selectors with '#slip_ID'.. so you're selectors will just get nuked and thus the whole notice will be formatted with one style? I found this whilst trying to get styles to properly apply on bug 33260 I've opened bugs and linked them to this one for the outstanding issues above. |