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

Adds two new views to render OAI-PMH results in collection based sets. #65

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions .github/workflows/build-2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ jobs:
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: Setup Mysql client
- name: Update Packages
run: |
sudo apt-get update
sudo apt-get install -y mysql-client

- name: Set environment variables
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
rest_oai_pmh:
entity_type: node
view_displays:
'oai_pmh:all_repository_items': 'oai_pmh:all_repository_items'
'oai_pmh:collection_sets': 'oai_pmh:collection_sets'
'oai_pmh:collectionless_set': 'oai_pmh:collectionless_set'
support_sets: 1
mapping_source: rdf
repository_name: 'Islandora 8'
Expand All @@ -10,3 +11,4 @@ expiration: '3600'
metadata_map_plugins:
oai_raw: ''
oai_dc: dublin_core_rdf
cache_technique: liberal_cache
208 changes: 206 additions & 2 deletions modules/islandora_oaipmh/config/install/views.view.oai_pmh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ description: ''
tag: ''
base_table: node_field_data
base_field: nid
core: 8.x
display:
default:
display_plugin: default
id: default
display_title: Main
display_title: Master
position: 0
display_options:
access:
Expand Down Expand Up @@ -138,6 +137,8 @@ display:
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
type:
id: type
Expand All @@ -149,6 +150,9 @@ display:
entity_field: type
plugin_id: bundle
group: 1
expose:
operator_limit_selection: false
operator_list: { }
field_external_uri_uri:
id: field_external_uri_uri
table: taxonomy_term__field_external_uri
Expand All @@ -173,6 +177,8 @@ display:
remember_roles:
authenticated: authenticated
placeholder: ''
operator_limit_selection: false
operator_list: { }
is_grouped: false
group_info:
label: ''
Expand Down Expand Up @@ -251,3 +257,201 @@ display:
- 'user.node_grants:view'
- user.permissions
tags: { }
collection_sets:
display_plugin: entity_reference
id: collection_sets
display_title: 'Collection Sets'
position: 1
display_options:
display_extenders: { }
style:
type: entity_reference
options:
search_fields:
title: title
display_description: 'All items with collections grouped into a sets per collection they belong to.'
arguments:
field_member_of_target_id:
id: field_member_of_target_id
table: node__field_member_of
field: field_member_of_target_id
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
plugin_id: numeric
defaults:
arguments: false
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags: { }
collectionless_set:
display_plugin: entity_reference
id: collectionless_set
display_title: 'Collectionless Set'
position: 1
display_options:
display_extenders: { }
style:
type: entity_reference
options:
search_fields:
title: title
display_description: 'Set of items that do not belong to any Collection, to be used with Collection Sets.'
filters:
status:
value: '1'
table: node_field_data
field: status
plugin_id: boolean
entity_type: node
entity_field: status
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
type:
id: type
table: node_field_data
field: type
value:
islandora_object: islandora_object
entity_type: node
entity_field: type
plugin_id: bundle
group: 1
expose:
operator_limit_selection: false
operator_list: { }
field_external_uri_uri:
id: field_external_uri_uri
table: taxonomy_term__field_external_uri
field: field_external_uri_uri
relationship: field_model
group_type: group
admin_label: ''
operator: '!='
value: 'http://purl.org/dc/dcmitype/Collection'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
placeholder: ''
operator_limit_selection: false
operator_list: { }
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: string
field_member_of_target_id:
id: field_member_of_target_id
table: node__field_member_of
field: field_member_of_target_id
relationship: none
group_type: group
admin_label: ''
operator: empty
value:
min: ''
max: ''
value: ''
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
placeholder: ''
min_placeholder: ''
max_placeholder: ''
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: numeric
defaults:
filters: false
filter_groups: false
filter_groups:
operator: AND
groups:
1: AND
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- 'user.node_grants:view'
- user.permissions
tags: { }
15 changes: 7 additions & 8 deletions modules/islandora_oaipmh/islandora_oaipmh.info.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: 'Islandora OAI-PMH Endpoint'
type: module
description: 'Default configuration for an OAI-PMH Endpoint'
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: '^8.9 || ^9'
package: Islandora
dependencies:
- islandora_defaults
- node
- rest_oai_pmh
- taxonomy
- user
- views
- 'drupal:node'
- 'drupal:taxonomy'
- 'drupal:user'
- 'drupal:views'
- 'islandora_defaults:islandora_defaults'
- 'rest_oai_pmh:rest_oai_pmh'