Skip to content

Commit a69f217

Browse files
committed
feat: Add AUTHORITY_RESOURCE_TYPE to BFLITE_URIS and update search action for new authority resource type
1 parent 492030f commit a69f217

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/common/constants/bibframe.constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const TYPE_URIS = {
3333
WORK: BFLITE_URIS.WORK,
3434
HUB: BFLITE_URIS.HUB,
3535
AUTHORITY: BFLITE_URIS.AUTHORITY,
36+
AUTHORITY_RESOURCE_TYPE: BFLITE_URIS.AUTHORITY_RESOURCE_TYPE,
3637
};
3738

3839
export const CONSTRAINTS: Constraints = {

src/common/constants/bibframeMapping.constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const BFLITE_URIS = {
55
WORK: 'http://bibfra.me/vocab/lite/Work',
66
HUB: 'http://bibfra.me/vocab/lite/Hub',
77
AUTHORITY: '_authority',
8+
AUTHORITY_RESOURCE_TYPE: 'http://bibfra.me/vocab/lite/Authority',
89
NAME: 'http://bibfra.me/vocab/lite/name',
910
LABEL: 'http://bibfra.me/vocab/lite/label',
1011
LINK: 'http://bibfra.me/vocab/lite/link',

src/views/Search/hooks/useSearchActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const useSearchActions = () => {
7777
*/
7878
const onClickNewAuthority = useCallback(() => {
7979
onCreateNewResource({
80-
resourceTypeURL: TYPE_URIS.AUTHORITY as ResourceTypeURL,
80+
resourceTypeURL: TYPE_URIS.AUTHORITY_RESOURCE_TYPE as ResourceTypeURL,
8181
queryParams: {
8282
type: ResourceType.authority,
8383
},

0 commit comments

Comments
 (0)