34 |
if ( column_exists( 'issuingrules', 'categorycode' ) ) { |
35 |
if ( column_exists( 'issuingrules', 'categorycode' ) ) { |
37 |
INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value ) |
38 |
INSERT INTO circulation_rules ( categorycode, branchcode, itemtype, rule_name, rule_value ) |
38 |
SELECT categorycode, branchcode, itemtype, \'$column\', COALESCE( $column, '' ) |
39 |
SELECT IF(categorycode='*', NULL, categorycode), IF(branchcode='*', NULL, branchcode), IF(itemtype='*', NULL, itemtype), \'$column\', COALESCE( $column, '' ) |