Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new action to explicitly keep field only from preferred or from other #26

Open
ammsalme opened this issue Apr 13, 2016 · 4 comments
Open
Assignees

Comments

@ammsalme
Copy link
Contributor

No description provided.

@ammsalme
Copy link
Contributor Author

Also action to keep field based on the source of record - incoming/db tms.

@natlibfi-arlehiko natlibfi-arlehiko added this to the 3.0.0 milestone Dec 1, 2016
@natlibfi-arlehiko natlibfi-arlehiko self-assigned this Dec 1, 2016
@natlibfi-arlehiko
Copy link
Contributor

How should the field by selected? By a tag regex (.e.g. 6.., 650)?

@ammsalme
Copy link
Contributor Author

ammsalme commented Dec 1, 2016

Field selection by tag regex, yeah.

@natlibfi-arlehiko
Copy link
Contributor

Definition

{
  "100": {
    "action": "selectExclusive",
    "options": {
      "preferred": true
    }
  }
}

Action selectExclusive will retain the matching fields only from one of the records (The opposite record's fields matching the pattern will be discarded).
Either option preferred or other must be set to denote from which record the matching fields are selected.

Examples

Field selected from the other record:

{
  "245": {
    "action": "selectExclusive",
    "options": {
      "other": true
    }
  }
}

Field selected from the otherrecord:

{
  "245": {
    "action": "selectExclusive",
    "options": {
      "preferred": false
    }
  }
}

@natlibfi-arlehiko natlibfi-arlehiko removed this from the 3.0.0 milestone Jun 26, 2017
@natlibfi-arlehiko natlibfi-arlehiko removed their assignment Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants