Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'Original Name' field to Media #13

Merged
merged 6 commits into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
sudo: true
dist: trusty
language: php
php:
- 7.2
Expand All @@ -19,12 +18,12 @@ branches:
- /master/

before_install:
- export SCRIPT_DIR=$HOME/CLAW/.scripts
- export SCRIPT_DIR=$HOME/islandora/.scripts
- export DRUPAL_DIR=/opt/drupal
- export COMPOSER_PATH="/home/travis/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/composer"

install:
- git clone https://github.com/Islandora-CLAW/CLAW.git $HOME/CLAW
- git clone https://github.com/Islandora/documentation.git $HOME/islandora
- $SCRIPT_DIR/travis_setup_drupal.sh
- git -C "$TRAVIS_BUILD_DIR" checkout -b travis-testing
- cd $DRUPAL_DIR;
Expand All @@ -42,11 +41,3 @@ script:
- phpcs --standard=Drupal --ignore=*.md --extensions=php,module,inc,install,test,profile,theme,css,info $TRAVIS_BUILD_DIR
- phpcpd --names *.module,*.inc,*.test,*.php $TRAVIS_BUILD_DIR
# - php core/scripts/run-tests.sh --suppress-deprecations --url http://127.0.0.1:8282 --verbose --php `which php` --module "islandora_defaults"

notifications:
irc:
channels:
- "irc.freenode.org#islandora"
on_success: change
on_failure: always
skip_join: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.audio.field_media_of
- field.field.media.audio.field_media_use
- field.field.media.audio.field_mime_type
- field.field.media.audio.field_original_name
- media.type.audio
module:
- file
Expand Down Expand Up @@ -51,6 +52,14 @@ content:
region: content
settings: { }
third_party_settings: { }
field_original_name:
weight: 26
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
name:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- media.type.file
module:
- file
Expand Down Expand Up @@ -51,6 +52,14 @@ content:
region: content
settings: { }
third_party_settings: { }
field_original_name:
weight: 26
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
name:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.media.image.field_media_of
- field.field.media.image.field_media_use
- field.field.media.image.field_mime_type
- field.field.media.image.field_original_name
- field.field.media.image.field_width
- image.style.thumbnail
- media.type.image
Expand Down Expand Up @@ -55,6 +56,14 @@ content:
region: content
settings: { }
third_party_settings: { }
field_original_name:
weight: 26
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
name:
type: string_textfield
weight: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.video.field_media_use
- field.field.media.video.field_media_video_file
- field.field.media.video.field_mime_type
- field.field.media.video.field_original_name
- media.type.video
module:
- file
Expand Down Expand Up @@ -51,6 +52,14 @@ content:
third_party_settings: { }
type: file_generic
region: content
field_original_name:
weight: 26
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
name:
type: string_textfield
weight: 0
Expand Down
13 changes: 13 additions & 0 deletions config/install/core.entity_view_display.media.audio.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.audio.field_media_of
- field.field.media.audio.field_media_use
- field.field.media.audio.field_mime_type
- field.field.media.audio.field_original_name
- media.type.audio
module:
- file
Expand All @@ -33,6 +34,11 @@ content:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
field_gemini_uri:
weight: 100
settings: { }
third_party_settings: { }
region: content
field_media_audio_file:
type: file_audio
weight: 1
Expand Down Expand Up @@ -68,6 +74,13 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
field_original_name:
weight: 101
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
name:
type: string
weight: 0
Expand Down
13 changes: 13 additions & 0 deletions config/install/core.entity_view_display.media.file.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- media.type.file
module:
- file
Expand All @@ -33,6 +34,11 @@ content:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
field_gemini_uri:
weight: 100
settings: { }
third_party_settings: { }
region: content
field_media_file:
label: visually_hidden
settings:
Expand Down Expand Up @@ -65,6 +71,13 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
field_original_name:
weight: 101
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
name:
type: string
weight: 0
Expand Down
13 changes: 13 additions & 0 deletions config/install/core.entity_view_display.media.image.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- field.field.media.image.field_media_of
- field.field.media.image.field_media_use
- field.field.media.image.field_mime_type
- field.field.media.image.field_original_name
- field.field.media.image.field_width
- media.type.image
module:
Expand All @@ -35,6 +36,11 @@ content:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
field_gemini_uri:
weight: 100
settings: { }
third_party_settings: { }
region: content
field_height:
type: number_integer
weight: 5
Expand Down Expand Up @@ -77,6 +83,13 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
field_original_name:
weight: 101
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
field_width:
type: number_integer
weight: 4
Expand Down
13 changes: 13 additions & 0 deletions config/install/core.entity_view_display.media.video.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.media.video.field_media_use
- field.field.media.video.field_media_video_file
- field.field.media.video.field_mime_type
- field.field.media.video.field_original_name
- media.type.video
module:
- file
Expand All @@ -33,6 +34,11 @@ content:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
field_gemini_uri:
weight: 100
settings: { }
third_party_settings: { }
region: content
field_media_of:
type: entity_reference_label
weight: 4
Expand Down Expand Up @@ -71,6 +77,13 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
field_original_name:
weight: 101
label: above
settings: { }
third_party_settings: { }
type: basic_string
region: content
name:
type: string
weight: 0
Expand Down
18 changes: 18 additions & 0 deletions config/install/field.field.media.audio.field_original_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_original_name
- media.type.audio
id: media.audio.field_original_name
field_name: field_original_name
entity_type: media
bundle: audio
label: 'Original Name'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
18 changes: 18 additions & 0 deletions config/install/field.field.media.file.field_original_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_original_name
- media.type.file
id: media.file.field_original_name
field_name: field_original_name
entity_type: media
bundle: file
label: 'Original Name'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
18 changes: 18 additions & 0 deletions config/install/field.field.media.image.field_original_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_original_name
- media.type.image
id: media.image.field_original_name
field_name: field_original_name
entity_type: media
bundle: image
label: 'Original Name'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
18 changes: 18 additions & 0 deletions config/install/field.field.media.video.field_original_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_original_name
- media.type.video
id: media.video.field_original_name
field_name: field_original_name
entity_type: media
bundle: video
label: 'Original Name'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
3 changes: 3 additions & 0 deletions config/install/rdf.mapping.media.audio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ fieldMappings:
properties:
- 'pcdm:fileOf'
mapping_type: rel
field_original_name:
properties:
- 'premis3:originalName'
field_tags:
properties:
- 'schema:additionalType'
Expand Down
3 changes: 3 additions & 0 deletions config/install/rdf.mapping.media.file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ fieldMappings:
properties:
- 'pcdm:fileOf'
mapping_type: rel
field_original_name:
properties:
- 'premis3:originalName'
field_tags:
properties:
- 'schema:additionalType'
Expand Down
3 changes: 3 additions & 0 deletions config/install/rdf.mapping.media.image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ fieldMappings:
properties:
- 'pcdm:fileOf'
mapping_type: rel
field_original_name:
properties:
- 'premis3:originalName'
field_tags:
properties:
- 'schema:additionalType'
Expand Down
3 changes: 3 additions & 0 deletions config/install/rdf.mapping.media.video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ fieldMappings:
properties:
- 'pcdm:fileOf'
mapping_type: rel
field_original_name:
properties:
- 'premis3:originalName'
field_tags:
properties:
- 'schema:additionalType'
Expand Down
Empty file modified config/install/rdf.mapping.node.islandora_object.yml
100755 → 100644
Empty file.