File: config.php

package info (click to toggle)
opendb 0.81p18-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,716 kB
  • ctags: 6,787
  • sloc: php: 50,213; sql: 3,098; sh: 272; makefile: 54; xml: 48
file content (139 lines) | stat: -rw-r--r-- 6,267 bytes parent folder | download
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/* 	OpenDb - Open Media Lending Database
	Copyright (C) 2001,2002 by Jason Pell

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

//
// Administrator Config file
//

// defines the menu link in the main system tools page.
$menu_link_name = 'Types';
$type_description = 'System Status Type';

$_COLUMN_DESC = array(
			's_status_type'=>'Status Type',
			'description'=>'Description',
			'img'=>'Image',
			'insert_ind'=>'Insert Indicator',
			'update_ind'=>'Update Indicator',
			'delete_ind'=>'Delete Indicator',
			'change_owner_ind'=>'Change Owner Indicator',
			'min_display_user_type'=>'Minimum Display User',
			'min_create_user_type'=>'Minimum Create User',
			'new_owner_instance_ind'=>'Owner Instance Indicator',
			'new_not_owner_instance_ind'=>'Non-Owner Instance Indicator',
			'borrow_ind'=>'Borrow Indicator',
			'status_comment_ind'=>'Status Comment Indicator',
			'default_ind'=>'Default Indicator',
			'closed_ind'=>'Closed Indicator');
			
$_COLUMN_HELP = array(
	'insert_ind'=>array(
		'If change_owner_ind = \'Y\', this indicator cannot be set to \'Y\'.',
		'If \'Y\', items can be directly inserted, otherwise items can '.
		'only be updated to this type (As long as update_ind = \'Y\')'),

	'update_ind'=>array(
		'If \'Y\', existing items can be updated to this type. If \'N\', then items can only '.
		'be directly inserted. (As long as insert_ind = \'Y\')'),
	
	'delete_ind'=>array(
		'Item instances of this type can be deleted.'),
		
	'change_owner_ind'=>array(
		'Item instances of this type can have their owner changed.'),
	
	'min_display_user_type'=>array(
		'Specifies the minimum user type, who can see list/display items of this '.
			'status.  For instance, if this column is set to \'A\', then only Admininstrator\'s '.
			'can list/display items of this status.  Items of this type owned by the user will be '.
			'visible to the user, and the user can still create items of this type, (Pursuant to any '.
			'restrictions enforced by min_create_user_type)',
		
		'User Types in OpenDb are hierarchical:',
		array(
			'G - Guest (Lowest)',
			'B - Borrower',
			'N - Normal',
			'A - Admin (Highest)'),
			
		'If a reservation is attempted for an item with a status_type, that has a '.
			'min_display_user_type set, which does not fit in with that of the current '.
			'user, the reservation will be aborted.',
		
		'If user is not a valid min_display_user_type or min_create_user_type user type the status will not '.
			'be displayed in Stats, Whatsnew or Search page.  This has an interesting side effect, if this '.
			'indicator is modified, after users add items of this type.  These items will no longer be '.
			'visible via Stats, but the items themselves can be found indirectly (not via status type list of values) '.
			'in listings.php.  For performance reasons no extra validation will be done, to check for the existence '.
			'of user items, if both min_display_user_type and min_create_user_type are modified to a user type above '.
			'users with items in this type.'),
	
	'min_create_user_type'=>array(
		'If change_owner_ind = \'Y\', this must be set to \'N\'.',
		'Specifies the minimum user type, who can insert items of this type, or '.
			'update existing items to this type.'.
			
		'User Types in OpenDb are hierarchical:',
		array(
			'G - Guest (Lowest)',
			'B - Borrower',
			'N - Normal',
			'A - Admin (Highest)')),

	'new_owner_instance_ind'=>array(
		'If change_owner_ind = \'Y\', this must be set to \'Y\' (may be changed for final implementation!).',
		'If \'Y\', then multiple instances of the title/s_item_type combination are allowed.',
		'If this column is \'N\', then a check will be made for whether the owner has any instances '.
			'of this item, if so, the New Copy operation will unavailable.'),

	'new_not_owner_instance_ind'=>array(
		'If change_owner_ind = \'Y\', this must be set to \'Y\' (may be changed for final implementation!).',
		'If \'Y\' then the New Copy functionality will be available to other owners. '.
			'A owner who does not currently have an instance of this item, will be allowed to create '.
			'one. However if the owner already has a copy, then the new_owner_instance_ind column '.
			'will control whether the New Copy functionality is available.'),
	
	'borrow_ind'=>array(
		'If change_owner_ind = \'Y\', this must be set to \'N\'.',
		'If \'Y\', items can be reserved/checked out/checked in.',
 		'If \'N\', items can not be reserved, but can be [quick] checked out.',
		'If \'B\', items can not be [quick] checked out.  If item checked out, it cannot be updated to '.
			'a s_status_type with borrow_ind = \'B\'',
		
		'If \'X\', items can not be reserved/[quick] checked out/checked in.  Items cannot have any borrowed '.
			'records (active or otherwise).  An item with borrowed item records cannot be updated to a '.
			's_status_type with borrow_ind = \'X\'',
		),

	'default_ind'=>array(
		'Only one Status Type should be \'Y\'.  Will be checked by default, for new item operations, etc'),

	'status_comment_ind'=>array(
		'If \'Y\' or \'H\', status_comment\'s can be recorded in the item_instance table, and displayed '.
			'in the item_display.php Instance Info section.',
	
		'If \'H\', then the comment will be shown in item_display.php, only when the owner of the '.
			'item_instance, or an administrator is viewing the record.'),
		
	'closed_ind'=>array(
		'This column, allows s_status_type records to be used in existing records, but no new '.
			'records can be created with this type, and existing records can not have their status '.
			'changed to types with closed_ind = \'Y\'')
	);
?>