Uploaded image for project: 'ui-circulation'
  1. ui-circulation
  2. UICIRC-304

Change "Edit patron notice template page" to support multiple-item templates

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • None
    • None
    • EPAM-Veg Sprint 23, EPAM-Veg Sprint 24
    • 5
    • Vega

    Description

      Mustache syntax provided below as a draft is ideal, and what my early prototypes was using as well. Loops of content will need to be addressed in the template by writing the loop as seen below (short term), and also through the UI so that it's simpler for average user that might not be familiar with writing code (long term).

      DRAFT:
      Template example:

      Dear {{user.firstName}},
      You have checked out the following item(s):
      
      {{#loans}}
      Title: {{item.title}}, Due date: {{loan.dueDate}}, Renewal remaining {{loan.numberOfRenewalsRemaining}};
      {{/loans}}
      
      Regards,
      Opentown Libraries
      www.opentownlibraries.com
      

      Notice example:

      Dear Alex,
      
      You have checked out the following item(s):
      
      Title: Age of TV heroes, Due date: 07/30/2019 10:00, Renewal remaining: 3;
      Title: Interesting Times, Due date: 08/30/2019 23:59, Renewal remaining: unlimited;
      Title: 14 cows for America, Due date: 08/15/2019 15:00, Renewal remaining: 2;
      
      Regards,
      Opentown Libraries
      www.opentownlibraries.com
      

      There will be three types of loops containing multiples regarding content for all notices:

      • Loan with item details
      • Fee/fine - sometimes with item details
      • Request (not as frequently, nor is it a concern if first drafts don't include this)

      For UI treatment, two possible prototypes are shown below:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                maxim_didenko Maxim Didenko
                Tur Dmytro Tur
                Darcy Branchini Darcy Branchini
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases