-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_form.php
47 lines (47 loc) · 2.57 KB
/
config_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="field">
<div class="two columns alpha">
<?php echo get_view()->formLabel('reassign_files_local_reassign', __('Enable Reassign in Item Editor')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php
echo __('Check this if you want to have a reassign functionality on the "Files" tab inside the admin item editor. '.
'If you frequently move files from one item to another, this could be helpful. However, if reassigning files '.
'is a rather uncommon procedure, especially in huge Omeka databases, it is advisable to keep this '.
'setting turned off and conduct it through the global reassign screen located in the left menu bar.');
?>
</p>
<?php echo get_view()->formCheckbox('reassign_files_local_reassign', null, array('checked' => $localReassign)); ?>
</div>
<div class="two columns alpha">
<?php echo get_view()->formLabel('reassign_files_delete_orphaned_items', __('Auto-Delete Orphaned Items')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php
echo __('Check this if you want to automatically delete items that become "orphaned" after reassigning their files to other items.<br>'.
'This will affect only those items that afterwards<br>'.
'<ul>'.
'<li>do not have an item type assigned,</li>'.
'<li>do not have any associated files left,</li>'.
'<li>are neither subject nor object in a relationship (in case the "Item Relations" plugin is installed),</li>'.
'<li>and contain at the most a title, but no other metadata whatsoever (i.e. entered text).</li>'.
'</ul>'.
'<em>Please note:</em> This is often the case for files that were bulk-added through the "Dropbox" plugin.');
?>
</p>
<?php echo get_view()->formCheckbox('reassign_files_delete_orphaned_items', null, array('checked' => $deleteOrphanedItems)); ?>
</div>
<div class="two columns alpha">
<?php echo get_view()->formLabel('reassign_files_delete_orphaned_items_now', __('One-Time Orphaned Items Check')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php
echo __('Check this to initiate the search for orphaned items and their deletion <em>now</em> and exactly <em>once</em>.<br>'.
'This will be carried out as soon as you click on "Save Changes".');
?>
</p>
<?php echo get_view()->formCheckbox('reassign_files_delete_orphaned_items_now', null, array('checked' => false)); ?>
</div>
</div>