Skip to content

Commit

Permalink
Merge pull request #9 from dannylamb/issue-854
Browse files Browse the repository at this point in the history
First pass at DSID -> Term mapping
  • Loading branch information
mjordan authored Dec 10, 2018
2 parents 6bfed5a + b383ac4 commit a1f255b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
5 changes: 5 additions & 0 deletions migrate/tags.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vid,name,description,external_uri
islandora_media_use,"RELS-EXT File","A RELS-EXT file from an Islandora 7.x instance",http://islandora.ca/ontology/relsext
islandora_media_use,"Dublin Core File","Dublin Core Elements 1.1",http://purl.org/dc/elements/1.1
islandora_media_use,"MODS File","Metadata Object Description Schema",http://www.loc.gov/mods/v3
islandora_media_use,"FITS File","Technical metadata generated by FITS",http://hul.harvard.edu/ois/xml/ns/fits/fits_output
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,27 @@ process:
migration: islandora_basic_image
source: PID
no_stub: true
field_tags:
field_media_use:
-
plugin: static_map
source: DSID
map:
OBJ: 'Preservation Master'
OBJ: http://pcdm.org/use#OriginalFile
PDFA: http://pcdm.org/use#PreservationMasterFile
OCR: http://pcdm.org/use#ExtractedText
TN: http://pcdm.org/use#ThumbnailImage
MEDIUM_SIZE: http://pcdm.org/use#ServiceFile
JP2: http://pcdm.org/use#IntermediateFile
RELS-EXT: http://islandora.ca/ontology/relsext
DC: http://purl.org/dc/elements/1.1
MODS: http://www.loc.gov/mods/v3
TECHMD: http://hul.harvard.edu/ois/xml/ns/fits/fits_output
default_value: Datastream
-
plugin: entity_lookup
value_key: name
value_key: field_external_uri
bundle_key: vid
bundle: tags
bundle: islandora_media_use
entity_type: taxonomy_term
ignore_case: true
bundle:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
langcode: en
status: true
dependencies:
enforced:
module:
- islandora_migrate_7x_claw_feature
id: islandora_basic_image_tags
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags: islandora_tags
migration_group: islandora_7x
label: '7.x Tags Migration from CSV'
source:
plugin: csv
path: modules/contrib/migrate_7x_claw/migrate/tags.csv
header_row_count: 1
keys:
- external_uri
process:
name: name
vid: vid
description: description
field_external_uri:
plugin: urlencode
source: external_uri
destination:
plugin: 'entity:taxonomy_term'
migration_dependencies:
required: { }
optional: { }

0 comments on commit a1f255b

Please sign in to comment.