@ -240,14 +239,14 @@ function fedora_repository_ingest_form_validate($form, &$form_state) {
if (!empty($file)) {
if (!empty($file)) {
if (!in_array($dformat, $allowedMimeTypes)) {
if (!in_array($dformat, $allowedMimeTypes)) {
form_set_error('ingest-file-location', t('The uploaded file\'s mimetype (' . $dformat . ') is not associated with this Content Model. The allowed types are ' .
form_set_error('ingest-file-location', t('The uploaded file\'s mimetype (' . $dformat . ') is not associated with this Content Model. The allowed types are ' .
implode(' ', $allowedMimeTypes)));
implode(' ', $allowedMimeTypes)));
file_delete($file);
file_delete($file);
return;
return;
}
}
elseif (!$cm->execIngestRules($file, $dformat)) {
elseif (!$cm->execIngestRules($file, $dformat)) {
drupal_set_message(t('Error following Content Model Rules'), 'error');
drupal_set_message(t('Error following Content Model Rules'), 'error');
foreach (ContentModel::$errors as $err) {
foreach (ContentModel::$errors as $err) {
drupal_set_message($err, 'error');
drupal_set_message(check_plain($err), 'error');
}
}
}
}
}
}
@ -400,7 +399,7 @@ function add_stream_form_submit($form, &$form_state) {
'islandora:largeimages' => 'Sample large image content model (requires <a href="http://sourceforge.net/projects/djatoka/">Djatoka</a> and <a href="http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22">Kakadu</a>.)',
'islandora:largeimages' => 'Sample large image content model (requires <a href="http://sourceforge.net/projects/djatoka/">Djatoka</a> and <a href="http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22">Kakadu</a>.)',
)
)
as $available_demo => $available_demo_desc) {
as $available_demo => $available_demo_desc) {
try {
try {
@ -1643,7 +1640,7 @@ function fedora_repository_demo_objects_form_submit($form, &$form_state) {
if (!empty($form_state['values']['demo_collections']['islandora:largeimages'])) {
if (!empty($form_state['values']['demo_collections']['islandora:largeimages'])) {
@ -1685,7 +1682,6 @@ function fedora_repository_required_fedora_objects() {
'dsversion' => 2,
'dsversion' => 2,
'cmodel' => 'fedora-system:ContentModel-3.0',
'cmodel' => 'fedora-system:ContentModel-3.0',
),
),
array(
array(
'pid' => 'islandora:root',
'pid' => 'islandora:root',
'label' => 'Islandora Top-level Collection',
'label' => 'Islandora Top-level Collection',
@ -1701,7 +1697,7 @@ function fedora_repository_required_fedora_objects() {
'mimetype' => 'image/png',
'mimetype' => 'image/png',
),
),
),
),
),
),
),
),
),
),
);
);
@ -2085,9 +2081,7 @@ function theme_add_to_basket_link($pid, $type = 'object') {
*/
*/
if (!_is_added_to_basket($pid)) {
if (!_is_added_to_basket($pid)) {
return l(
return l(
theme('image', drupal_get_path('module', 'Fedora_Repository') . '/images/' . $save, t("Add to basket"), t("Add this @object to my basket", array('@object' => $object))),
theme('image', drupal_get_path('module', 'Fedora_Repository') . '/images/' . $save, t("Add to basket"), t("Add this @object to my basket", array('@object' => $object))), "fedora/repository/addToBasket/" . $path, array('html' => TRUE)