Add the field "item.loanType" to the Item Object in the Notice context - in mod-circ

Description

Please add the field "item.loanType" to the Item Object in the Notice context, for these notice categories:
Loan + Request + Automated fee/fine charge + Automated fee/fine adjustment

Scenario:

  • Given: I have received an email, the notice template of which contains the token “item.loanType” + the field Temporary loan type is populated,

  • When: I look at the text of that token in the live email,

  • Then: I see the plain text name of the Temporary loan type, as can be seen in the UI of Inventory.
    Example: In the email, I see “Reading room”, and NOT the UUID.

Scenario:

  • Given: I have received an email, the notice template of which contains the token “item.loanType” + the field Temporary loan type is not populated,

  • When: I look at the text of that token in the live email,

  • Then: I see the plain text name of the Permanent loan type, as can be seen in the UI of Inventory.
    Example: In the email, I see “Can circulate”, and NOT the UUID.

Environment

None

Potential Workaround

None

Attachments

4

Checklist

hide

TestRail: Results

Activity

Show:

julie.bickleMarch 11, 2023 at 5:13 PM

I confirm this works in Snapshot.

Nika MindadzeMarch 9, 2023 at 12:09 PM

tested works as expected

Vignesh KalyanasundaramMarch 8, 2023 at 11:53 AM
Edited

I have tested notices for checkin,checkout,Item recalled,Page Request,Hold Request,Recall request. As Item object already have the loanType, Without code change, we are getting loantype in Email. Hence moving this ticket to QA. Attached few snapshots of sample emails received.

cc :  

 

 

julie.bickleMarch 7, 2023 at 11:45 AM
Edited

Hi , that is correct: Check out and check in notices only work with the multiples loans tokens.
You can find more info about the notice triggers in the wiki.

Vignesh KalyanasundaramMarch 7, 2023 at 11:28 AM
Edited

After further investigation, we noticed that if we add the item token in between {{{}#loans}} {{{}/loans}} , then we got the item token value including loan type in email for checkin and checkout. (Added the screenshot of template as well). But if we add the token without {{{}#loans}} {{{}/loans}}, then the values are blank. Can you please confirm what is the right way to do it. Thanks.

cc :  

 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Volaris

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 29, 2022 at 8:10 AM
Updated March 22, 2023 at 5:13 AM
Resolved March 11, 2023 at 5:13 PM
TestRail: Cases
TestRail: Runs