Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Islandora Workbench uses YAML files to configure its operations. These files are documented in detail already, so for the purposes of this sample ingest we will use this config file: (update AG .xlsx link below after publish) 


task: create
host: "https://islandora.traefik.me/"
username: xxxx
password: xxxx
media_type: file
input_csv: 'AG.xlsxhttps://wiki.lyrasis.org/download/attachments/273351526/AG%20Photos.xlsx?version=1&modificationDate=1674548260923&api=v2'
id_field: PID
csv_field_templates:
- field_rights: "http://rightsstatements.org/vocab/CNE/1.0/"
- field_member_of: 103
- field_model: 13
- field_resource_type: 25
- field_display_hints: 21
default_file_mimetype: 'image/tiff'
default_file_extension: ".tif"
use_node_title_for_media: 1
allow_adding_terms: true

...

For this exercise we’ll be using a sample collection of 100 photographs. You can make a copy of the spreadsheet to try this exercise locally. 

List of Fields

Label

Machine Name

Field Type

Vocabulary

Identifier

field_identifier

Text(plain)


Title


Text(plain)


Description

field_description_long

Text(formatted, long)


Abstract

field_abstract

Text(formatted, long)


Date (EDTF)

field_edtf_date

EDTF


Date

field_date_display

Text(plain)


Date Created

field_edtf_date_created

EDTF


Subject

field_subject

Entity Reference

Subject

Geographic Subject

field_geographic_subject

Entity Reference

Geographic Subject

Genre

field_genre

Entity Reference

Genre

Extent

field_extent

Text(plain)


Source

field_source

Text(plain)


Language

field_language

Entity Reference

Language

Contact Us

field_rights_contact

Text(formatted, long)


Rights

field_rights

Link


Resource Type

field_resource_type

Entity Reference

Resource Type

Linked Agent

field_linked_agent

Typed Relation

Family, Corporate Body, Person



Each of these fields will need to exist in your Islandora 2.0 installation prior to running Workbench or the operation will fail. Any fields that don’t already exist can be created using the Drupal interface. The name of the field in the CSV must match the machine name of the field in Drupal. Each field has a corresponding type that will also need to be set. This will be covered in detail in the next step.

...

Islandora Workbench uses YAML files to configure its operations. These files are documented in detail already, so for the purposes of this sample ingest we will use this config file: (update newspaper.xlsx link below after publish) 


task: create
host: "https://islandora.traefik.me/"
username: xxx
password: xxxxxxxx
input_csv: 'newspaper.xlsxhttps://wiki.lyrasis.org/download/attachments/273351526/Newspaper_fixed.xlsx?version=1&modificationDate=1674548425416&api=v2'
id_field: id
csv_field_templates:
- field_rights: "http://rightsstatements.org/vocab/CNE/1.0/"
- field_display_hints: 21
use_node_title_for_media: 1
allow_adding_terms: true
list_missing_drupal_fields: true

...

For this exercise we’ll be using a sample collection of100 of 100 newspaper issues and pages. You can make a copy of the spreadsheet to try this exercise locally. 

The first two columns are ‘id’ and ‘parent_id’. Each item is created one at a time, so the first item (a newspaper issue) serves as the parent for the subsequent items (pages). Field_weight is used to set the order of the pages, and field_member_of is used to put the issues in the top-level collection.

List of Fields

Label

Machine Name

Field Type

Vocabulary


parent_id



Weight

field_weight

Number(integer)


Member Of

field_member_of

Entity Reference


Model

field_model

Entity Reference


Identifier

field_identifier

Text(plain)


Title


Text(plain)


Description

field_description_long

Text(formatted, long)


Abstract

field_abstract

Text(formatted, long)


Date Issued

field_edtf_date_issued

EDTF


Date (EDTF)

field_edtf_date

EDTF


Date

field_date_display

Text(plain)


Date Created

field_edtf_date_created

EDTF


Volume

field_volume_num

Text(plain)


Issue

field_issue_num

Text(plain)


Subject

field_subject

Entity Reference

Subject

Geographic Subject

field_geographic_subject

Entity Reference

Geographic Subject

Genre

field_genre

Entity Reference

Genre

Extent

field_extent

Text(plain)


Source

field_source

Text(plain)


Language

field_language

Entity Reference

Language

Contact Us

field_rights_contact

Text(formatted, long)


Rights

field_rights

Link


Resource Type

field_resource_type

Entity Reference

Resource Type

Linked Agent

field_linked_agent

Typed Relation

Family, Corporate Body, Person



Each of these fields will need to exist in your Islandora 2.0 installation prior to running Workbench or the operation will fail. Any fields that don’t already exist can be created using the Drupal interface. The name of the field in the CSV must match the machine name of the field in Drupal. Each field has a corresponding type that will also need to be set. This will be covered in detail in the next step.

...