From 819fdb2ca010d1fdf079fa91ae99bf3eea231436 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 26 Nov 2015 13:45:02 -0400 Subject: [PATCH 1/2] ISLANDORA-1362 Put config variable in admin form. --- includes/admin.form.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/admin.form.inc b/includes/admin.form.inc index 9f64cb6d..ce126fd0 100644 --- a/includes/admin.form.inc +++ b/includes/admin.form.inc @@ -86,6 +86,12 @@ function islandora_repository_admin(array $form, array &$form_state) { '#description' => t('Sparql is the preferred language for querying the resource index; however, some features in the implementation of Sparql in Mulgara may not work properly. If you are using the default triple store with Fedora this should be left on to maintain legacy behaviour.'), '#default_value' => variable_get('islandora_risearch_use_itql_when_necessary', TRUE), ), + 'islandora_require_obj_upload' => array( + '#type' => 'checkbox', + '#title' => t('Require a file upload during ingest'), + '#description' => t('During the ingest workflow, make the OBJ file upload step mandatory.'), + '#default_value' => variable_get('islandora_require_obj_upload', TRUE), + ), ), 'islandora_namespace' => array( '#type' => 'fieldset', From 3245be01f9b942c62834c538ac424b4c2874fc74 Mon Sep 17 00:00:00 2001 From: Rosemary Le Faive Date: Sat, 5 Dec 2015 14:13:49 -0400 Subject: [PATCH 2/2] Add new variable to uninstall hook. --- islandora.install | 1 + 1 file changed, 1 insertion(+) diff --git a/islandora.install b/islandora.install index 075e81a2..2ac37e17 100644 --- a/islandora.install +++ b/islandora.install @@ -55,6 +55,7 @@ function islandora_uninstall() { 'islandora_namespace_restriction_enforced', 'islandora_pids_allowed', 'islandora_risearch_use_itql_when_necessary', + 'islandora_require_obj_upload', ); array_walk($variables, 'variable_del'); }