|
|
@ -76,8 +76,7 @@ function fedora_repository_image_tagging_form($form_state, $pid) { |
|
|
|
'title' => $tag_title_text |
|
|
|
'title' => $tag_title_text |
|
|
|
))), |
|
|
|
))), |
|
|
|
); |
|
|
|
); |
|
|
|
if (fedora_repository_check_perm('modify fedora datastreams', $pid) || |
|
|
|
if (fedora_repository_check_perm('modify fedora datastreams', $pid)) { |
|
|
|
fedora_repository_check_perm('edit tags datastream', $pid)) { |
|
|
|
|
|
|
|
// Delete button for each existing tag. |
|
|
|
// Delete button for each existing tag. |
|
|
|
$form_tag['delete'] = array( |
|
|
|
$form_tag['delete'] = array( |
|
|
|
'#type' => 'imagebutton', |
|
|
|
'#type' => 'imagebutton', |
|
|
@ -87,8 +86,7 @@ function fedora_repository_image_tagging_form($form_state, $pid) { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (fedora_repository_check_perm('modify fedora datastreams', $pid) || |
|
|
|
if (fedora_repository_check_perm('modify fedora datastreams', $pid)) { |
|
|
|
fedora_repository_check_perm('edit tags datastream', $pid)) { |
|
|
|
|
|
|
|
$form['tags-wrapper']['addtag'] = array( |
|
|
|
$form['tags-wrapper']['addtag'] = array( |
|
|
|
'#type' => 'textfield', |
|
|
|
'#type' => 'textfield', |
|
|
|
'#title' => t('New Tag'), |
|
|
|
'#title' => t('New Tag'), |
|
|
|