-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from openeuropa/EWPP-3721
EWPP-3721: CircaBC integration.
- Loading branch information
Showing
35 changed files
with
2,555 additions
and
51 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
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,18 @@ | ||
# Open Europa Media CircaBC | ||
|
||
This module integrates with CircaBC to create Document media based on CircaBC | ||
documents. It does so by adding a third option to the Document media file type field, next to Local and Remote. | ||
|
||
## Installation | ||
|
||
* Install the module | ||
* Add the settings configuration that contains the URL of the CircaBC instance. For example: | ||
|
||
``` | ||
$settings['circabc'] = [ | ||
'url' => 'https://webgate.acceptance.ec.europa.eu/circabc-ewpp', | ||
]; | ||
``` | ||
|
||
* Add the CircaBC ID field to the Document media form display. It will not be visible, but it's required on the form. | ||
* Move the `File type` field to the top on the Document media form display. |
20 changes: 20 additions & 0 deletions
20
...oe_media_circabc/config/install/field.field.media.document.oe_media_circabc_reference.yml
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,20 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.media.oe_media_circabc_reference | ||
- media.type.document | ||
module: | ||
- oe_media_circabc | ||
id: media.document.oe_media_circabc_reference | ||
field_name: oe_media_circabc_reference | ||
entity_type: media | ||
bundle: document | ||
label: 'CircaBC Reference' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: oe_media_circabc_circabc_reference |
18 changes: 18 additions & 0 deletions
18
modules/oe_media_circabc/config/install/field.storage.media.oe_media_circabc_reference.yml
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,18 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- media | ||
- oe_media_circabc | ||
id: media.oe_media_circabc_reference | ||
field_name: oe_media_circabc_reference | ||
entity_type: media | ||
type: oe_media_circabc_circabc_reference | ||
settings: { } | ||
module: oe_media_circabc | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
19 changes: 19 additions & 0 deletions
19
modules/oe_media_circabc/config/schema/oe_media_circabc.schema.yml
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,19 @@ | ||
field.value.oe_media_circabc_circabc_reference: | ||
type: mapping | ||
label: Default value | ||
mapping: | ||
uuid: | ||
type: uuid | ||
label: UUID | ||
size: | ||
type: integer | ||
label: Size | ||
mime: | ||
type: string | ||
label: Mime type | ||
filename: | ||
type: string | ||
label: File name | ||
|
||
field.widget.settings.oe_media_circabc_default_widget: | ||
type: field.widget.settings.string_textfield |
76 changes: 76 additions & 0 deletions
76
...bc/modules/oe_media_circabc_mock/fixtures/nodes/5d634abd-fec1-452a-ae0b-62e4cf080506.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,76 @@ | ||
{ | ||
"id": "5d634abd-fec1-452a-ae0b-62e4cf080506", | ||
"name": "sample_pdf_FR.pdf", | ||
"type": "{http://www.alfresco.org/model/content/1.0}content", | ||
"service": "library", | ||
"parentId": "de048a2c-b350-45eb-a8aa-c5e5d4ba8335", | ||
"properties": { | ||
"modifier": "test_user", | ||
"initialVersion": "true", | ||
"expiration_date": "", | ||
"title": "", | ||
"locale": "fr", | ||
"content": "contentUrl=store://2023/10/25/7/55/8424044c-2e13-454c-b6bf-9eeb4a921511.bin|mimetype=null|size=3028|encoding=UTF-8|locale=en_GB_|id=3759", | ||
"reference": "", | ||
"issue_date": "2023-12-06T19:04Z", | ||
"security_ranking": "NORMAL", | ||
"translations": "2", | ||
"modified": "2023-12-07T08:50Z", | ||
"locked": "false", | ||
"store-identifier": "SpacesStore", | ||
"multilingual": "true", | ||
"creator": "test_user", | ||
"autoVersion": "true", | ||
"node-uuid": "5d634abd-fec1-452a-ae0b-62e4cf080506", | ||
"created": "2023-10-25T05:55Z", | ||
"author": "", | ||
"autoVersionOnUpdateProps": "false", | ||
"isVersion": "false", | ||
"workingCopy": "false", | ||
"encoding": "UTF-8", | ||
"store-protocol": "workspace", | ||
"currentUserHasAccess": "true", | ||
"versionLabel": "1.5", | ||
"originalContainerId": "de048a2c-b350-45eb-a8aa-c5e5d4ba8335", | ||
"size": "3028", | ||
"name": "sample_pdf_FR.pdf", | ||
"mimetype": "application/pdf", | ||
"mimetypeName": "", | ||
"status": "DRAFT", | ||
"node-dbid": "4641" | ||
}, | ||
"title": { | ||
"de": "", | ||
"fi": "", | ||
"pt": "", | ||
"bg": "", | ||
"lt": "", | ||
"lv": "", | ||
"hr": "", | ||
"fr": "Test sample file FR", | ||
"hu": "", | ||
"sk": "", | ||
"sl": "", | ||
"ga": "", | ||
"sv": "", | ||
"mt": "", | ||
"el": "", | ||
"en": "", | ||
"it": "", | ||
"es": "", | ||
"et": "", | ||
"cs": "", | ||
"pl": "", | ||
"da": "", | ||
"ro": "", | ||
"nl": "" | ||
}, | ||
"description": {}, | ||
"permissions": { | ||
"LibAccess": "ALLOWED" | ||
}, | ||
"notifications": "inherit", | ||
"favourite": false, | ||
"hasSubFolders": false, | ||
"hasGuestAccess": true | ||
} |
75 changes: 75 additions & 0 deletions
75
...bc/modules/oe_media_circabc_mock/fixtures/nodes/e74e3bc0-a639-4e04-a839-3bbd60ed5688.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,75 @@ | ||
{ | ||
"id": "e74e3bc0-a639-4e04-a839-3bbd60ed5688", | ||
"name": "sample_pdf.pdf", | ||
"type": "{http://www.alfresco.org/model/content/1.0}content", | ||
"service": "library", | ||
"parentId": "de048a2c-b350-45eb-a8aa-c5e5d4ba8335", | ||
"properties": { | ||
"modifier": "test_user", | ||
"initialVersion": "true", | ||
"title": "", | ||
"locale": "en", | ||
"content": "contentUrl=store://2023/10/25/7/55/b8524c7c-3dea-4a62-a038-69f0ebf6c39b.bin|mimetype=application/pdf|size=3028|encoding=UTF-8|locale=en_GB_|id=2895", | ||
"security_ranking": "PUBLIC", | ||
"translations": "2", | ||
"modified": "2023-10-25T05:55Z", | ||
"keyword": "[]", | ||
"locked": "false", | ||
"store-identifier": "SpacesStore", | ||
"multilingual": "true", | ||
"owner": "test_user", | ||
"creator": "test_user", | ||
"autoVersion": "true", | ||
"node-uuid": "e74e3bc0-a639-4e04-a839-3bbd60ed5688", | ||
"created": "2023-10-25T05:55Z", | ||
"author": "", | ||
"autoVersionOnUpdateProps": "false", | ||
"isVersion": "false", | ||
"workingCopy": "false", | ||
"encoding": "UTF-8", | ||
"store-protocol": "workspace", | ||
"currentUserHasAccess": "true", | ||
"versionLabel": "1.0", | ||
"originalContainerId": "de048a2c-b350-45eb-a8aa-c5e5d4ba8335", | ||
"size": "3028", | ||
"name": "sample_pdf.pdf", | ||
"mimetype": "application/pdf", | ||
"mimetypeName": "Adobe PDF Document", | ||
"status": "FINAL", | ||
"node-dbid": "4630" | ||
}, | ||
"title": { | ||
"de": "", | ||
"fi": "", | ||
"pt": "", | ||
"bg": "", | ||
"lt": "", | ||
"lv": "", | ||
"hr": "", | ||
"fr": "", | ||
"hu": "", | ||
"sk": "", | ||
"sl": "", | ||
"ga": "", | ||
"sv": "", | ||
"mt": "", | ||
"el": "", | ||
"en": "Test sample file", | ||
"it": "", | ||
"es": "", | ||
"et": "", | ||
"cs": "", | ||
"pl": "", | ||
"da": "", | ||
"ro": "", | ||
"nl": "" | ||
}, | ||
"description": {}, | ||
"permissions": { | ||
"LibAccess": "ALLOWED" | ||
}, | ||
"notifications": "inherit", | ||
"favourite": false, | ||
"hasSubFolders": false, | ||
"hasGuestAccess": true | ||
} |
Oops, something went wrong.