'#title' => t('Allow control groups select in datastream ingest'),
'#description' => t('Whether or not we should allow the user to select which control group to ingest a stream as, or to follow the old paradigm--to add stream IDed as XML as inline, and everything else as managed.'),
'#description' => t('The file to upload. (Only for Managed and Inline)')
'#description' => t('The file to upload. (Only for Managed and Inline)')
);
);
$form['fieldset']['ds_reference'] = array(
'#type' => 'textfield',
if (variable_get('fedora_control_group_control_during_ingest', FALSE)) {
'#title' => t('Datastream reference'),
$form['fieldset']['ds_reference'] = array(
'#size' => 48,
'#type' => 'textfield',
'#description' => t('A URL reference to resolve for the contents of the datastream. (Required for External and Redirect, but will still work for Managed and Inline.)'),
'#title' => t('Datastream reference'),
);
'#size' => 48,
'#description' => t('A URL reference to resolve for the contents of the datastream. (Required for External and Redirect, but will still work for Managed and Inline.)'),
);
}
$form['#redirect'] = "fedora/repository/$pid/";
$form['#redirect'] = "fedora/repository/$pid/";
$form['fieldset']['submit'] = array(
$form['fieldset']['submit'] = array(
'#type' => 'submit',
'#type' => 'submit',
@ -716,18 +727,21 @@ class formClass {
'#weight' => -1,
'#weight' => -1,
);
);
}
}
$form['fieldset']['control_group'] = array(
'#type' => 'select',
if (variable_get('fedora_control_group_control_during_ingest', FALSE)) {
'#description' => t('The manner in which the datastream will be stored. "Inline XML" must be XML and will be placed directly into the FOXML for the object. "Managed" datastreams are made to live on the filesystem as discrete files in the Fedora data directory. Both "Redirect" and "External" streams are URL references; the difference being the redirect stream instruct clients to perform an HTTP redirect, such that the data does not pass though Fedora (useful for streaming). External streams are mediated (by which I mean loaded and streamed from) the Fedora server.'),
'R' => t('Redirect datastream'),
'#weight' => 0,
),
);
'#description' => t('The manner in which the datastream will be stored. "Inline XML" must be XML and will be placed directly into the FOXML for the object. "Managed" datastreams are made to live on the filesystem as discrete files in the Fedora data directory. Both "Redirect" and "External" streams are URL references; the difference being the redirect stream instruct clients to perform an HTTP redirect, such that the data does not pass though Fedora (useful for streaming). External streams are mediated (by which I mean loaded and streamed from) the Fedora server.'),