Skip to content

Commit

Permalink
custom_fields: add support in upload form
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Aug 30, 2022
1 parent 3635174 commit 1f859ed
Show file tree
Hide file tree
Showing 8 changed files with 312 additions and 203 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- master
- 'maint-**'
- 'feature/**'

jobs:
Tests:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
/docs/website/build
npm-debug.log*
.history

# OSX files
# =========

*.DS_Store
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"@inveniosoftware/eslint-config-invenio/prettier-config.js"
"@inveniosoftware/eslint-config-invenio/prettier-config.js"
5 changes: 4 additions & 1 deletion src/lib/DepositFormApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export class DepositFormApp extends Component {

const recordSerializer = props.recordSerializer
? props.recordSerializer
: new RDMDepositRecordSerializer(props.config.default_locale);
: new RDMDepositRecordSerializer(
props.config.default_locale,
props.config.custom_fields.vocabularies
);

const apiClient = props.apiClient
? props.apiClient
Expand Down
Loading

0 comments on commit 1f859ed

Please sign in to comment.