Lines 98-104
CREATE TABLE `auth_types` (
Link Here
|
98 |
DROP TABLE IF EXISTS `authorised_values`; |
98 |
DROP TABLE IF EXISTS `authorised_values`; |
99 |
CREATE TABLE `authorised_values` ( -- stores values for authorized values categories and values |
99 |
CREATE TABLE `authorised_values` ( -- stores values for authorized values categories and values |
100 |
`id` int(11) NOT NULL auto_increment, -- unique key, used to identify the authorized value |
100 |
`id` int(11) NOT NULL auto_increment, -- unique key, used to identify the authorized value |
101 |
`category` varchar(16) NOT NULL default '', -- key used to identify the authorized value category |
101 |
`category` varchar(32) NOT NULL default '', -- key used to identify the authorized value category |
102 |
`authorised_value` varchar(80) NOT NULL default '', -- code use to identify the authorized value |
102 |
`authorised_value` varchar(80) NOT NULL default '', -- code use to identify the authorized value |
103 |
`lib` varchar(200) default NULL, -- authorized value description as printed in the staff client |
103 |
`lib` varchar(200) default NULL, -- authorized value description as printed in the staff client |
104 |
`lib_opac` varchar(200) default NULL, -- authorized value description as printed in the OPAC |
104 |
`lib_opac` varchar(200) default NULL, -- authorized value description as printed in the OPAC |
Lines 291-297
CREATE TABLE `borrower_attribute_types` ( -- definitions for custom patron field
Link Here
|
291 |
`opac_display` tinyint(1) NOT NULL default 0, -- defines if this field is visible to patrons on their account in the OPAC (1 for yes, 0 for no) |
291 |
`opac_display` tinyint(1) NOT NULL default 0, -- defines if this field is visible to patrons on their account in the OPAC (1 for yes, 0 for no) |
292 |
`password_allowed` tinyint(1) NOT NULL default 0, -- defines if it is possible to associate a password with this custom field (1 for yes, 0 for no) |
292 |
`password_allowed` tinyint(1) NOT NULL default 0, -- defines if it is possible to associate a password with this custom field (1 for yes, 0 for no) |
293 |
`staff_searchable` tinyint(1) NOT NULL default 0, -- defines if this field is searchable via the patron search in the staff client (1 for yes, 0 for no) |
293 |
`staff_searchable` tinyint(1) NOT NULL default 0, -- defines if this field is searchable via the patron search in the staff client (1 for yes, 0 for no) |
294 |
`authorised_value_category` varchar(10) default NULL, -- foreign key from authorised_values that links this custom field to an authorized value category |
294 |
`authorised_value_category` varchar(32) default NULL, -- foreign key from authorised_values that links this custom field to an authorized value category |
295 |
`display_checkout` tinyint(1) NOT NULL default 0,-- defines if this field displays in checkout screens |
295 |
`display_checkout` tinyint(1) NOT NULL default 0,-- defines if this field displays in checkout screens |
296 |
`category_code` VARCHAR(10) NULL DEFAULT NULL,-- defines a category for an attribute_type |
296 |
`category_code` VARCHAR(10) NULL DEFAULT NULL,-- defines a category for an attribute_type |
297 |
`class` VARCHAR(255) NOT NULL DEFAULT '',-- defines a class for an attribute_type |
297 |
`class` VARCHAR(255) NOT NULL DEFAULT '',-- defines a class for an attribute_type |
Lines 3495-3501
CREATE TABLE items_search_fields (
Link Here
|
3495 |
label VARCHAR(255) NOT NULL, |
3495 |
label VARCHAR(255) NOT NULL, |
3496 |
tagfield CHAR(3) NOT NULL, |
3496 |
tagfield CHAR(3) NOT NULL, |
3497 |
tagsubfield CHAR(1) NULL DEFAULT NULL, |
3497 |
tagsubfield CHAR(1) NULL DEFAULT NULL, |
3498 |
authorised_values_category VARCHAR(16) NULL DEFAULT NULL, |
3498 |
authorised_values_category VARCHAR(32) NULL DEFAULT NULL, |
3499 |
PRIMARY KEY(name), |
3499 |
PRIMARY KEY(name), |
3500 |
CONSTRAINT items_search_fields_authorised_values_category |
3500 |
CONSTRAINT items_search_fields_authorised_values_category |
3501 |
FOREIGN KEY (authorised_values_category) REFERENCES authorised_values (category) |
3501 |
FOREIGN KEY (authorised_values_category) REFERENCES authorised_values (category) |