Skip to content

Commit

Permalink
UIQM-262: FE: Derive/Edit MARC bibliographic record: Improve Leader p…
Browse files Browse the repository at this point in the history
…osition 08 error message (#340)
  • Loading branch information
BogdanDenis committed Aug 5, 2022
1 parent 5da1c92 commit 01eb9dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [UIQM-263](https://issues.folio.org/browse/UIQM-263) Cannot access a MARC bib because creator has been deleted. Handling a 404 error.
* [UIQM-260](https://issues.folio.org/browse/UIQM-260) Fix Add MARC holdings: 852 field > cannot enter text
* [UIQM-267](https://issues.folio.org/browse/UIQM-267) MARC Holdings - Leader position 18 accept a space and \ as a valid value
* [UIQM-262](https://issues.folio.org/browse/UIQM-262) FE: Derive/Edit MARC bibliographic record: Improve Leader position 08 error message

## [5.1.0](https://github.com/folio-org/ui-quick-marc/tree/v5.1.0) (2022-07-08)

Expand Down
5 changes: 4 additions & 1 deletion src/QuickMarcEditor/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ export const LEADER_EDITABLE_BYTES = {
[MARC_TYPES.AUTHORITY]: [5, 17, 18],
};

const NON_BREAKING_SPACE = '\u00A0';

export const LEADER_VALUES_FOR_POSITION = {
[MARC_TYPES.BIB]: {
5: ['a', 'c', 'd', 'n', 'p'],
6: ['a', 'c', 'd', 'e', 'f', 'g', 'i', 'j', 'k', 'm', 'o', 'p', 'r', 't'],
7: ['a', 'b', 'c', 'd', 'i', 'm', 's'],
8: ['\\', ' ', NON_BREAKING_SPACE, 'a'],
},
[MARC_TYPES.HOLDINGS]: {
5: ['c', 'd', 'n'],
6: ['u', 'v', 'x', 'y'],
17: ['1', '2', '3', '4', '5', 'm', 'u', 'z'],
18: ['\\', ' ', '\u00A0', 'i', 'n'],
18: ['\\', ' ', NON_BREAKING_SPACE, 'i', 'n'],
},
[MARC_TYPES.AUTHORITY]: [],
};
Expand Down

0 comments on commit 01eb9dd

Please sign in to comment.