forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Externalise metadata editor associated resources panel configuration …
…in schemas and display fields in the dialog using the order defined in the configuration file (geonetwork#3720) * Externalise metadata editor associated resources panel configuration in schemas and display fields in the dialog using the order defined in the configuration file * Externalise metadata editor associated resources panel configuration (#1) * Externalise metadata editor associated resources panel configuration / Add possibility to define config per view. Use the following to customize the config for a view: ``` <directive data-gn-onlinesrc-list="" data-config-id="dummy" data-types="onlinesrc|parent|dataset|service|source|sibling|associated|fcats"/> ``` Also fix: * cache retrieval was not returning same object * add possibility to have multiple config and load them using the API * Externalise metadata editor associated resources panel configuration / Handle depends on and more contextualized error in case of invalid JSON config. * Externalise metadata editor associated resources panel configuration / Better loop on schema and better error report. Fix dependsOn assignement.
- Loading branch information
1 parent
3971947
commit 33d0c08
Showing
10 changed files
with
451 additions
and
839 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
17 changes: 17 additions & 0 deletions
17
schemas/dublin-core/src/main/plugin/dublin-core/config/associated-panel/default.json
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,17 @@ | ||
{ | ||
"config": { | ||
"display": "radio", | ||
"types": [{ | ||
"label": "addOnlinesrc", | ||
"sources": { | ||
"filestore": true, | ||
"thumbnailMaker": true | ||
}, | ||
"icon": "fa gn-icon-onlinesrc", | ||
"process": "onlinesrc-add", | ||
"fields": { | ||
"url": {} | ||
} | ||
}] | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
schemas/iso19110/src/main/plugin/iso19110/config/associated-panel/default.json
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,3 @@ | ||
{ | ||
"config": {} | ||
} |
42 changes: 42 additions & 0 deletions
42
schemas/iso19139/src/main/plugin/iso19139/config/associated-panel/default.json
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,42 @@ | ||
{ | ||
"config": { | ||
"display": "radio", | ||
"types": [{ | ||
"label": "addOnlinesrc", | ||
"sources": { | ||
"filestore": true | ||
}, | ||
"icon": "fa gn-icon-onlinesrc", | ||
"process": "onlinesrc-add", | ||
"fields": { | ||
"protocol": { | ||
"value": "WWW:LINK-1.0-http--link", | ||
"isMultilingual": false, | ||
"required": true | ||
}, | ||
"url": {"isMultilingual": false}, | ||
"name": {}, | ||
"desc": {}, | ||
"function": {"isMultilingual": false}, | ||
"applicationProfile": {"isMultilingual": false} | ||
} | ||
}, { | ||
"label": "addThumbnail", | ||
"sources": { | ||
"filestore": true, | ||
"thumbnailMaker": true | ||
}, | ||
"icon": "fa gn-icon-thumbnail", | ||
"fileStoreFilter": "*.{jpg,JPG,png,PNG,gif,GIF}", | ||
"process": "thumbnail-add", | ||
"fields": { | ||
"url": { | ||
"param": "thumbnail_url", | ||
"isMultilingual": false | ||
}, | ||
"name": {"param": "thumbnail_desc"} | ||
} | ||
}], | ||
"multilingualFields": ["name", "desc"] | ||
} | ||
} |
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
Oops, something went wrong.