-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#106 Fix for metadata field "publication"
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
|
||
const publicationFieldName = (type) => { | ||
switch (type) { | ||
case 'Book Section': return 'Book title'; | ||
case 'Journal Article': return 'Journal title'; | ||
case 'Newspaper Article': return 'Newspaper title'; | ||
case 'Magazine Article': return 'Magazine title'; | ||
case 'Web Page': return 'Website title'; | ||
default: return 'Publication title'; | ||
} | ||
}; | ||
|
||
export { publicationFieldName }; |