Skip to content

Commit

Permalink
Merge pull request #13 from seth-shaw-unlv/issue-1276
Browse files Browse the repository at this point in the history
Add 'Original Name' field to Media
  • Loading branch information
mjordan authored Oct 23, 2019
2 parents 1d33fbf + 5192cdd commit bb64d5b
Show file tree
Hide file tree
Showing 18 changed files with 176 additions and 11 deletions.
15 changes: 4 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,19 +18,21 @@ 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;
- COMPOSER_MEMORY_LIMIT=-1 php -d memory_limit=-1 $COMPOSER_PATH config repositories.local path "$TRAVIS_BUILD_DIR"
- COMPOSER_MEMORY_LIMIT=-1 php -d memory_limit=-1 $COMPOSER_PATH require "drupal/search_api_solr:^2.7"
- $COMPOSER_PATH clearcache
- COMPOSER_MEMORY_LIMIT=-1 php -d memory_limit=-1 $COMPOSER_PATH require "islandora/islandora_defaults:dev-travis-testing as dev-8.x-1.x" --prefer-source --update-with-dependencies
- cd web;
- ls modules/contrib/islandora/modules/islandora_core_feature/config/install/;
- (drush -y --uri=127.0.0.1:8282 en islandora_core_feature; drush -y --uri=127.0.0.1:8282 fim islandora_core_feature)
- (drush -y --uri=127.0.0.1:8282 en islandora_defaults; drush -y --uri=127.0.0.1:8282 entity:updates; drush -y --uri=127.0.0.1:8282 pmu islandora_defaults; drush -y --uri=127.0.0.1:8282 en islandora_defaults)
- drush -y --uri=127.0.0.1:8282 fim islandora_defaults
Expand All @@ -42,11 +43,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.

0 comments on commit bb64d5b

Please sign in to comment.