Add explanatory texts to the resource-section and name the kind of

allowed values for type of resource
This commit is contained in:
Stefan Rohde-Enslin 2019-09-15 10:15:47 +02:00
parent 9797df24ab
commit 7404f266ed

View File

@ -1055,11 +1055,11 @@ for ($i = 1; $i <= 5; $i++) {
[ [
"resource_media_type{$i}" => [ "resource_media_type{$i}" => [
"required" => false, "required" => false,
"allowedValues" => [], "allowedValues" => ['image', 'text', 'video', 'audio'],
"dependsOn" => [ "dependsOn" => [
"resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'Allowed values: image, text, video, audio',
"name_human_readable" => $basis['resource'] . ', ' . $tlSources['type'], "name_human_readable" => $basis['resource'] . ', ' . $tlSources['type'],
"explica" => "", "explica" => "",
], ],
@ -1069,7 +1069,7 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'e.g. pdf, mp3',
"name_human_readable" => $csvxml_overview['file_format'], "name_human_readable" => $csvxml_overview['file_format'],
"explica" => "", "explica" => "",
], ],
@ -1079,7 +1079,7 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'In case the resource is stored externally: please include the whole path (incl. http or https) to the file. If the resource is uploaded to museum-digital: please put the filename here (e.g. file.pdf)',
"name_human_readable" => $resource_incha['image_filename'], "name_human_readable" => $resource_incha['image_filename'],
"explica" => "", "explica" => "",
], ],
@ -1089,13 +1089,13 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'Use, if you want to give the resource an own name. If not, you might want to repeat the object_title',
"name_human_readable" => $resource_incha['resource_name'], "name_human_readable" => $resource_incha['resource_name'],
"explica" => $resource_incha['bildname_explica'], "explica" => $resource_incha['bildname_explica'],
], ],
"resource_description{$i}" => [ "resource_description{$i}" => [
"required" => false, "required" => false,
"allowedValues" => [], "allowedValues" => ['Use if you want to describe the resource. Might be left empty.'],
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
@ -1109,7 +1109,7 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'The owner should be named. Usually it is the institution uploading the resource.',
"name_human_readable" => $resource_incha['resource_rightsholder'], "name_human_readable" => $resource_incha['resource_rightsholder'],
"explica" => $resource_incha['owner_explica'], "explica" => $resource_incha['owner_explica'],
], ],
@ -1119,7 +1119,7 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_visible{$i}",
], ],
"remark" => '', "remark" => 'Name of the person that created the resource. Might be left empty.',
"name_human_readable" => $resource_incha['creator'], "name_human_readable" => $resource_incha['creator'],
"explica" => $resource_incha['creator_explica'], "explica" => $resource_incha['creator_explica'],
], ],
@ -1139,7 +1139,7 @@ for ($i = 1; $i <= 5; $i++) {
"dependsOn" => [ "dependsOn" => [
"resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}", "resource_media_type{$i}", "resource_fileformat{$i}", "resource_location{$i}", "resource_name{$i}", "resource_owner{$i}", "resource_rights{$i}",
], ],
"remark" => '', "remark" => 'Should the resource be publicly visible? Allowed values are either y and n',
"name_human_readable" => "{$basis['resource']}: {$objekt['visibility']}", "name_human_readable" => "{$basis['resource']}: {$objekt['visibility']}",
"explica" => "", "explica" => "",
], ],