Skip to content

Commit

Permalink
UIQM-269 Remove default subfield $a for 852 field (#350)
Browse files Browse the repository at this point in the history
* UIQM-269 Remove default subfield  for 852 field

* UIQM-269 update tests with new default 852 value
  • Loading branch information
BogdanDenis committed Aug 23, 2022
1 parent 3d2c3cb commit 6243e46
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [5.1.2] (IN PROGRESS)

* [UIQM-266](https://issues.folio.org/browse/UIQM-266) Edit quickMARC: Undoing a delete field is not restored in the same position.
* [UIQM-269](https://issues.folio.org/browse/UIQM-269) Remove default $a subfield at "852" field when user created "MARC Holdings" record

## [5.1.1](https://github.com/folio-org/ui-quick-marc/tree/v5.1.1) (2022-08-05)

Expand Down
1 change: 0 additions & 1 deletion src/QuickMarcEditor/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ const getCreateMarcRecordDefaultFields = (instanceRecord) => {
}

if (tag === '852') {
field.content = '$a';
field.indicators = ['\\', '\\'];
}

Expand Down
1 change: 0 additions & 1 deletion src/QuickMarcEditor/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,6 @@ describe('QuickMarcEditor utils', () => {
}, {
tag: '852',
id: uuid(),
content: '$a',
indicators: ['\\', '\\'],
}, {
tag: '999',
Expand Down

0 comments on commit 6243e46

Please sign in to comment.