Field mappings: Date picker ###TODAY### logic does not work

Description

Overview: Bug from UIDATIMP-407; the ###TODAY### logic for the datepicker does not work properly

NOTE: Once fixed in Instance, check the 2 dates in the Item record "Condition" accordion also

Steps to Reproduce:

  1. Log into FOLIO-snapshot-load as diku_admin

  2. Go to Settings/Data import/Field mapping profiles

  3. Create a new field mapping profile

    • Name: Date picker instance test

    • Incoming record = MARC Bibliographic and FOLIO record type = Instance

    • Only fill in the "Cataloged date" field by using the dropdown and selecting "Today" (which will fill in the field with ###TODAY###

    • Save the new field mapping profile

  4. Go to Settings/Data import/Action profiles and create a new action profile

    • Name: Date picker create instance

    • Action = Create, Record = Instance

    • In associated field mapping profiles, find the field mapping profile you just created and link it

    • Save the new profile

  5. Go to Settings/Data import/Job profiles and create a new job profile

    • Name: Date picker test

    • Match: None

    • Action: Find the action profile you just created and link it

  6. Go to Data Import and upload the attached file

  7. On the choose jobs page, pick the "Date picker test" profile and run the job

  8. Open the data import log and find the HRID or UUID of one of the titles in the file

  9. Go to Inventory, change your search option to HRID or UUID and search for the title

  10. Check the Cataloged date in the Instance

Expected Results: It should be today's date

Actual Results: It's -

Additional Information: See attached MARC file

NOTE After this and UIDATIMP-510 are both fixed, change the Catalog date in your field mapping profile to 902$a; else ###TODAY### and load the file again. 902$a has no data, so in Inventory, the Catalog date should still be today's date.

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Volodymyr RohachJune 1, 2020 at 11:37 AM

Hi ! Thank you!

Ann-Marie BreauxJune 1, 2020 at 10:07 AM

Hi Tested on folio-snapshot with mapping of ###TODAY### and 902$z; else ###TODAY### and both worked fine. All looks good! Closing this ticket

Ann-Marie BreauxMay 4, 2020 at 2:43 PM

This may be a MOD logic issue rather than a UI issue. If yes, please switch to the correct project. Thank you!

cc:

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Folijet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 4, 2020 at 9:21 AM
Updated October 26, 2020 at 2:25 AM
Resolved June 1, 2020 at 10:07 AM
TestRail: Cases
TestRail: Runs