Lines 968-974
CREATE TABLE `import_batches` ( -- information about batches of marc records tha
Link Here
|
968 |
`num_records` int(11) NOT NULL default 0, -- number of records in the file |
968 |
`num_records` int(11) NOT NULL default 0, -- number of records in the file |
969 |
`num_items` int(11) NOT NULL default 0, -- number of items in the file |
969 |
`num_items` int(11) NOT NULL default 0, -- number of items in the file |
970 |
`upload_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- date and time the file was uploaded |
970 |
`upload_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- date and time the file was uploaded |
971 |
`overlay_action` enum('replace', 'create_new', 'use_template', 'ignore') NOT NULL default 'create_new', -- how to handle duplicate records |
971 |
`overlay_action` enum('replace', 'create_new', 'use_template', 'ignore','appendmarctag') NOT NULL default 'create_new', -- how to handle duplicate records |
972 |
`nomatch_action` enum('create_new', 'ignore') NOT NULL default 'create_new', -- how to handle records where no match is found |
972 |
`nomatch_action` enum('create_new', 'ignore') NOT NULL default 'create_new', -- how to handle records where no match is found |
973 |
`item_action` enum('always_add', 'add_only_for_matches', 'add_only_for_new', 'ignore', 'replace') NOT NULL default 'always_add', -- what to do with item records |
973 |
`item_action` enum('always_add', 'add_only_for_matches', 'add_only_for_new', 'ignore', 'replace') NOT NULL default 'always_add', -- what to do with item records |
974 |
`import_status` enum('staging', 'staged', 'importing', 'imported', 'reverting', 'reverted', 'cleaned') NOT NULL default 'staging', -- the status of the imported file |
974 |
`import_status` enum('staging', 'staged', 'importing', 'imported', 'reverting', 'reverted', 'cleaned') NOT NULL default 'staging', -- the status of the imported file |
Lines 976-981
CREATE TABLE `import_batches` ( -- information about batches of marc records tha
Link Here
|
976 |
`record_type` enum('biblio', 'auth', 'holdings') NOT NULL default 'biblio', -- type of record in the batch |
976 |
`record_type` enum('biblio', 'auth', 'holdings') NOT NULL default 'biblio', -- type of record in the batch |
977 |
`file_name` varchar(100), -- the name of the file uploaded |
977 |
`file_name` varchar(100), -- the name of the file uploaded |
978 |
`comments` mediumtext, -- any comments added when the file was uploaded |
978 |
`comments` mediumtext, -- any comments added when the file was uploaded |
|
|
979 |
`marctag` mediumtext, -- marc tag for ex: 100a, 700a |
979 |
PRIMARY KEY (`import_batch_id`), |
980 |
PRIMARY KEY (`import_batch_id`), |
980 |
KEY `branchcode` (`branchcode`) |
981 |
KEY `branchcode` (`branchcode`) |
981 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
982 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |