From 866f08e840b832e14eff5e5b5edd9f45f9958e05 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 28 Aug 2019 15:46:37 +0200 Subject: [PATCH] Fix array structure in availableFields.php --- values/availableFields.php | 44 +++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/values/availableFields.php b/values/availableFields.php index a5c3258..5116952 100644 --- a/values/availableFields.php +++ b/values/availableFields.php @@ -92,6 +92,26 @@ $availableFields = [ "name_human_readable" => $museum['museum_name'], "explica" => $museum['musnam_explica'], ], + ], + "other_object_title" => [ + "other_object_title" => [ + "required" => false, + "format" => 'text/utf8', + "allowedValues" => 'freetext', + "dependsOn" => 'object_other_title_kind_of', + "remark" => 'If the field object_other_title is used. It has to be specified where this alternative title is used. Specification should be done within the field: object_other_title_kind_of', + "name_human_readable" => 'Weitere Objektbezeichnung', + "explica" => '', + ], + "object_other_title_kind_of" => [ + "required" => false, + "format" => 'text/utf8', + "allowedValues" => 'de: "Wissenschaft", "Alltagssprache", "Umgangssprache", "Dialekt"
hu: "Tudományos", "Köznyelvi", "Nyelvjárás"', + "dependsOn" => 'object_other_title', + "remark" => 'This field has to be used togehter with object_other_title', + "name_human_readable" => 'Weitere Objektbezeichnung, in: ', + "explica" => '', + ], ] ]; @@ -117,30 +137,6 @@ for ($i = 1; $i <= 2; $i++) { } -$availableFields = [ - - "other_object_title" => [ - "other_object_title" => [ - "required" => false, - "format" => 'text/utf8', - "allowedValues" => 'freetext', - "dependsOn" => 'object_other_title_kind_of', - "remark" => 'If the field object_other_title is used. It has to be specified where this alternative title is used. Specification should be done within the field: object_other_title_kind_of', - "name_human_readable" => 'Weitere Objektbezeichnung', - "explica" => '', - ], - "object_other_title_kind_of" => [ - "required" => false, - "format" => 'text/utf8', - "allowedValues" => 'de: "Wissenschaft", "Alltagssprache", "Umgangssprache", "Dialekt"
hu: "Tudományos", "Köznyelvi", "Nyelvjárás"', - "dependsOn" => 'object_other_title', - "remark" => 'This field has to be used togehter with object_other_title', - "name_human_readable" => 'Weitere Objektbezeichnung, in: ', - "explica" => '', - ], - ] -]; - return; $allowed = array(