From ec6b8724afa3d1d335628e21f0b0b7e5185145fd Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Mon, 15 Apr 2024 17:48:46 -0400 Subject: [PATCH] Bug 35925: Adjust default purchase suggestion notices to use TT 1. Apply patch 2. reset_all (or start your testing environment in the first place) 3. Set syspref EmailPurchaseSuggestions to "email address of library" 4. Under Administration > Libraries, enter an email address for at least one library 5. Go to "my account", and enter a Primary email and Phone number 6. Go to the Acquisitions module > Suggestions page 7. Click "New purchase suggestion", and fill in values for, at minimum: Bibliographic information: Title Author Copyright date ISBN/ISSN Publisher Publication place Collection title Document type Reason for suggestion Notes Acquisition information: Library (set to the library you entered an email for in step 4) Copies 8. Submit the suggestion 9. Set the suggestion status to "Rejected" a. Check the checkbox next to the suggestion b. Set the "Mark selected as" drop-down (below the table) to Rejected c. Select a value for the "Reason" drop-down d. Click the Submit button 10. Set the suggestion status to "Accepted" (as above) 11. Set the suggestion status to "Ordered" (as above) 12. Return to "my account" and open the Notices tab --> There should be notices suggestion declined, suggestion accepted, suggestion ordered, and (depending on settings) new suggestion* 13. Open each notice, and confirm the all information was filled in correctly * New suggestion will be there if you're using default KTD settings/data and logged in as the root user. If it is not there, query the database (by command line or SQL report) to see the generated notice text: SELECT * FROM message_queue WHERE letter_code = 'NEW_SUGGESTION' --- .../mysql/en/mandatory/sample_notices.yml | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index 9675b3eb4f..6c1f80cee7 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1962,17 +1962,17 @@ tables: message_transport_type: email lang: default content: - - "Dear <> <>," + - "Dear [% borrower.firstname %] [% borrower.surname %]," - "" - - "You have suggested that the library acquire <> by <>." + - "You have suggested that the library acquire [% suggestion.title %] by [% suggestion.author %]." - "" - "The library has reviewed your suggestion today. The item will be ordered as soon as possible. You will be notified by mail when the order is completed, and again when the item arrives at the library." - "" - - "If you have any questions, please email us at <>." + - "If you have any questions, please email us at [% branch.branchemail %]." - "" - "Thank you," - "" - - "<>" + - "[% branch.branchname %]" - module: suggestions code: AVAILABLE @@ -2007,26 +2007,30 @@ tables: - "

Suggestion pending approval

" - "

Suggested by

" - "
    " - - "
  • <> <>
  • " - - "
  • <>
  • " - - "
  • <>
  • " - - "
  • <>
  • " + - "
  • [% borrower.firstname %] [% borrower.surname %]
  • " + - "
  • [% borrower.cardnumber %]
  • " + - " [%- IF borrower.phone -%]" + - "
  • [% borrower.phone %]
  • " + - " [%- END -%]" + - " [%- IF borrower.email -%]" + - "
  • [% borrower.email %]
  • " + - " [%- END -%]" - "
" - "

" - "

Title suggested

" - "
    " - - "
  • Library: <>
  • " - - "
  • Title: <>
  • " - - "
  • Author: <>
  • " - - "
  • Copyright date: <>
  • " - - "
  • Standard number (ISBN, ISSN or other): <>
  • " - - "
  • Publisher: <>
  • " - - "
  • Collection title: <>
  • " - - "
  • Publication place: <>
  • " - - "
  • Quantity: <>
  • " - - "
  • Item type: <>
  • " - - "
  • Reason for suggestion: <>
  • " - - "
  • Notes: <>
  • " + - "
  • Library: [% branch.branchname %]
  • " + - "
  • Title: [% suggestion.title %]
  • " + - "
  • Author: [% suggestion.author %]
  • " + - "
  • Copyright date: [% suggestion.copyrightdate %]
  • " + - "
  • Standard number (ISBN, ISSN or other): [% suggestion.isbn %]
  • " + - "
  • Publisher: [% suggestion.publishercode %]
  • " + - "
  • Collection title: [% suggestion.collectiontitle %]
  • " + - "
  • Publication place: [% suggestion.place %]
  • " + - "
  • Quantity: [% suggestion.quantity %]
  • " + - "
  • Item type: [% suggestion.itemtype %]
  • " + - "
  • Reason for suggestion: [% suggestion.patronreason %]
  • " + - "
  • Notes: [% suggestion.note %]
  • " - "
" - "

" @@ -2039,19 +2043,19 @@ tables: message_transport_type: email lang: default content: - - "Dear <> <>," + - "Dear [% borrower.firstname %] [% borrower.surname %]," - "" - - "You have suggested that the library acquire <> by <>." + - "You have suggested that the library acquire [% suggestion.title %] by [% suggestion.author %]." - "" - "We are pleased to inform you that the item you requested has now been ordered. It should arrive soon, at which time it will be processed for addition into the collection." - "" - "You will be notified again when the book is available." - "" - - "If you have any questions, please email us at <>" + - "If you have any questions, please email us at [% branch.branchemail %]" - "" - "Thank you," - "" - - "<>" + - "[% branch.branchname %]" - module: suggestions code: REJECTED @@ -2062,19 +2066,19 @@ tables: message_transport_type: email lang: default content: - - "Dear <> <>," + - "Dear [% borrower.firstname %] [% borrower.surname %]," - "" - - "You have suggested that the library acquire <> by <>." + - "You have suggested that the library acquire [% suggestion.title %] by [% suggestion.author %]." - "" - "The library has reviewed your request today, and has decided not to accept the suggestion at this time." - "" - - "The reason given is: <>" + - "The reason given is: [% suggestion.reason %]" - "" - - "If you have any questions, please email us at <>." + - "If you have any questions, please email us at [% branch.branchemail %]." - "" - "Thank you," - "" - - "<>" + - "[% branch.branchname %]" - module: suggestions code: TO_PROCESS -- 2.34.1