-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig_form.php
83 lines (80 loc) · 3.26 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* Config form include
*
* Included in the configuration page for the plugin to change settings.
*
* @package OaiPmhRepository
* @author John Flatness, Yu-Hsun Lin
* @copyright Copyright 2009-2014 John Flatness, Yu-Hsun Lin
* @license http://www.gnu.org/licenses/gpl-3.0.txt
*/
$view = get_view();
?>
<p><?php echo __('Harvester can access metadata from this site') . ' '; ?>
<a href="<?php echo OAI_PMH_BASE_URL; ?>"><?php echo OAI_PMH_BASE_URL; ?></a></p>
<div class="field">
<div class="two columns alpha">
<label for="oaipmh_repository_name"><?php echo __('Repository name'); ?></label>
</div>
<div class="inputs five columns omega">
<p class="explanation"><?php echo __('Name for this OAI-PMH repository.'); ?></p>
<?php echo $view->formText('oaipmh_repository_name', $repoName);?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<label for="oaipmh_repository_namespace_id"><?php echo __('Namespace identifier'); ?></label>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('This will be used to form globally unique IDs for '
. 'the exposed metadata items. This value is required to be a '
. 'domain name you have registered. Using other values will '
. 'generate invalid identifiers.');
?>
</p>
<?php echo $view->formText('oaipmh_repository_namespace_id', $namespaceID);?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<label for="oaipmh_repository_expose_files"><?php echo __('Expose files'); ?></label>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('Whether the plugin should include identifiers for '
. 'the files associated with items. This provides harvesters '
. 'with direct access to files.');
?>
</p>
<?php echo $view->formCheckbox('oaipmh_repository_expose_files', $exposeFiles, null,
array('checked' => '1', 'unChecked' => '0'));?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('oaipmh_repository_expose_empty_collections',
__('Expose empty collections')); ?>
</div>
<div class='inputs five columns omega'>
<p class="explanation">
<?php echo __('Whether the plugin should expose empty public collections.'); ?>
</p>
<?php echo $view->formCheckbox('oaipmh_repository_expose_empty_collections', true,
array('checked' => (boolean) get_option('oaipmh_repository_expose_empty_collections'))); ?>
</div>
</div>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('oaipmh_repository_expose_item_type',
__('Expose item type')); ?>
</div>
<div class="inputs five columns omega">
<p class="explanation">
<?php echo __('Whether the plugin should expose the item type as Dublin Core Type.'); ?>
</p>
<?php echo $view->formCheckbox('oaipmh_repository_expose_item_type', true,
array('checked' => (boolean) get_option('oaipmh_repository_expose_item_type'))); ?>
</div>
</div>