Browse Source

Updates settings and view for filehash^2.

pull/912/head
Rosie Le Faive 2 years ago
parent
commit
541620493b
  1. 2
      composer.json
  2. 21
      modules/islandora_core_feature/config/install/filehash.settings.yml
  3. 159
      modules/islandora_core_feature/config/install/views.view.file_checksum.yml

2
composer.json

@ -19,7 +19,7 @@
"islandora/jsonld": "^2", "islandora/jsonld": "^2",
"stomp-php/stomp-php": "4.* || ^5", "stomp-php/stomp-php": "4.* || ^5",
"drupal/jwt": "^1.0.0-beta5", "drupal/jwt": "^1.0.0-beta5",
"drupal/filehash": "^1.1 || ^2", "drupal/filehash": "^2",
"drupal/prepopulate" : "^2.2", "drupal/prepopulate" : "^2.2",
"drupal/eva" : "^2.0", "drupal/eva" : "^2.0",
"drupal/features" : "^3.7", "drupal/features" : "^3.7",

21
modules/islandora_core_feature/config/install/filehash.settings.yml

@ -1,5 +1,24 @@
algos: algos:
sha1: sha1 blake2b_128: '0'
blake2b_160: '0'
blake2b_224: '0'
blake2b_256: '0'
blake2b_384: '0'
blake2b_512: '0'
md5: '0' md5: '0'
sha1: sha1
sha224: '0'
sha256: '0' sha256: '0'
sha384: '0'
sha512_224: '0'
sha512_256: '0'
sha512: '0'
sha3_224: '0'
sha3_256: '0'
sha3_384: '0'
sha3_512: '0'
dedupe: 0 dedupe: 0
rehash: false
original: false
dedupe_original: false
mime_types: { }

159
modules/islandora_core_feature/config/install/views.view.file_checksum.yml

@ -1,14 +1,14 @@
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
enforced:
module:
- islandora_core_feature
module: module:
- file - file
- filehash - filehash
- rest - rest
- serialization - serialization
enforced:
module:
- islandora_core_feature
id: file_checksum id: file_checksum
label: 'File Checksum' label: 'File Checksum'
module: views module: views
@ -16,71 +16,24 @@ description: 'Exposes a REST endpoint for getting the checksum of a File'
tag: '' tag: ''
base_table: file_managed base_table: file_managed
base_field: fid base_field: fid
core: 8.x
display: display:
default: default:
display_plugin: default
id: default id: default
display_title: Master display_title: Master
display_plugin: default
position: 0 position: 0
display_options: display_options:
access:
type: none
options: { }
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
pager:
type: mini
options:
items_per_page: 10
offset: 0
id: 0
total_pages: null
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
tags:
previous: ‹‹
next: ››
style:
type: serializer
row:
type: 'entity:file'
options:
relationship: none
view_mode: default
fields: fields:
sha1: sha1:
id: sha1 id: sha1
table: filehash table: file_managed
field: sha1 field: sha1
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
entity_type: file
entity_field: sha1
plugin_id: field
label: '' label: ''
exclude: false exclude: false
alter: alter:
@ -92,7 +45,7 @@ display:
external: false external: false
replace_spaces: false replace_spaces: false
path_case: none path_case: none
trim_whitespace: false trim_whitespace: true
alt: '' alt: ''
rel: '' rel: ''
link_class: '' link_class: ''
@ -106,7 +59,7 @@ display:
more_link: false more_link: false
more_link_text: '' more_link_text: ''
more_link_path: '' more_link_path: ''
strip_tags: false strip_tags: true
trim: false trim: false
preserve_tags: '' preserve_tags: ''
html: false html: false
@ -122,13 +75,55 @@ display:
hide_empty: false hide_empty: false
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
plugin_id: standard click_sort_column: value
filters: { } type: filehash
sorts: { } settings: { }
header: { } group_column: value
footer: { } group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
pager:
type: mini
options:
offset: 0
items_per_page: 10
total_pages: null
id: 0
tags:
next: ››
previous: ‹‹
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: none
options: { }
cache:
type: tag
options: { }
empty: { } empty: { }
relationships: { } sorts: { }
arguments: arguments:
fid: fid:
id: fid id: fid
@ -137,6 +132,9 @@ display:
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
entity_type: file
entity_field: fid
plugin_id: file_fid
default_action: 'not found' default_action: 'not found'
exception: exception:
value: all value: all
@ -151,8 +149,8 @@ display:
summary_options: summary_options:
base_path: '' base_path: ''
count: true count: true
items_per_page: 25
override: false override: false
items_per_page: 25
summary: summary:
sort_order: asc sort_order: asc
number_of_records: 0 number_of_records: 0
@ -164,31 +162,46 @@ display:
validate_options: { } validate_options: { }
break_phrase: false break_phrase: false
not: false not: false
entity_type: file filters: { }
entity_field: fid style:
plugin_id: file_fid type: serializer
row:
type: 'entity:file'
options:
relationship: none
view_mode: default
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header: { }
footer: { }
display_extenders: { } display_extenders: { }
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts:
- 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
- request_format - request_format
- url - url
- url.query_args - url.query_args
tags: { } tags: { }
rest_export_1: rest_export_1:
display_plugin: rest_export
id: rest_export_1 id: rest_export_1
display_title: 'REST export' display_title: 'REST export'
display_plugin: rest_export
position: 1 position: 1
display_options: display_options:
display_extenders: { }
path: checksum/%file
pager: pager:
type: some type: some
options: options:
items_per_page: 10
offset: 0 offset: 0
items_per_page: 10
style: style:
type: serializer type: serializer
options: options:
@ -198,6 +211,8 @@ display:
type: data_field type: data_field
options: options:
field_options: { } field_options: { }
display_extenders: { }
path: checksum/%file
auth: auth:
- basic_auth - basic_auth
- jwt_auth - jwt_auth
@ -205,7 +220,9 @@ display:
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts:
- 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
- request_format - request_format
- url - url
tags: { } tags: { }

Loading…
Cancel
Save