Uploaded image for project: 'mod-source-record-manager'
  1. mod-source-record-manager
  2. MODSOURMAN-421

Syntax problem for 561 field in default mapping rules

    XMLWordPrintable

Details

    • Folijet Sprint 110, Folijet Sprint 111
    • 0.5
    • Folijet
    • R1 2021 Bug Fix

    Description

      From ttolstoy

      (sample file attached that you can use for testing - when A-M loads it, the notes in the instance look fine) Please doublecheck

      Per Theo, in the default rules the 561 mapping has the wrong syntax.

      This is the current:
      "561": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Instance note type id",
      "rules": [
      {
      "conditions": [
      {
      "parameter":

      { "name": "Ownership and Custodial History note" }

      ,
      "type": "set_note_type_id"
      }
      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.instanceNoteTypeId"
      },
      {
      "entity": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Ownership and Custodial History",
      "rules": [
      {
      "conditions": [

      { "type": "trim_period" }

      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.note"
      },
      {
      "applyRulesOnConcatenatedData": true,
      "description": "If true, determines that the note should not be visible for others than staff",
      "rules": [
      {
      "conditions": [

      { "type": "set_note_staff_only_via_indicator" }

      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.staffOnly"
      }
      ]
      }
      ],
      Compare that with all the other notes: 
       
      "562": [
      {
      "entity": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Instance note type id",
      "rules": [
      {
      "conditions": [
      {
      "parameter":

      { "name": "Copy and Version Identification note" }

      ,
      "type": "set_note_type_id"
      }
      ]
      }
      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.instanceNoteTypeId"
      },
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Copy and Version Identification Note",
      "rules": [
      {
      "conditions": [

      { "type": "trim_period" }

      ]
      }
      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.note"
      },
      {
      "description": "If true, determines that the note should not be visible for others than staff",
      "rules": [

      { "conditions": [ ], "value": "false" }

      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.staffOnly"
      }
      ]
      }
      ],
      See the the Note Type mapping hanging outside of the entity property?

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ruslan_lavrov Ruslan Lavrov
                abreaux Ann-Marie Breaux
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases