adding label manager sql
Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
parent
6e2564450e
commit
e92f1d752c
2 changed files with 27 additions and 24 deletions
|
@ -912,11 +912,11 @@ CREATE TABLE `itemtypes` (
|
||||||
DROP TABLE IF EXISTS `labels`;
|
DROP TABLE IF EXISTS `labels`;
|
||||||
CREATE TABLE `labels` (
|
CREATE TABLE `labels` (
|
||||||
`labelid` int(11) NOT NULL auto_increment,
|
`labelid` int(11) NOT NULL auto_increment,
|
||||||
`batch_id` varchar(10) NOT NULL,
|
`batch_id` varchar(10) NOT NULL default '1',
|
||||||
`itemnumber` varchar(100) NOT NULL default '',
|
`itemnumber` varchar(100) NOT NULL default '',
|
||||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`labelid`)
|
PRIMARY KEY (`labelid`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=12143 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `labels_conf`
|
-- Table structure for table `labels_conf`
|
||||||
|
@ -926,21 +926,25 @@ DROP TABLE IF EXISTS `labels_conf`;
|
||||||
CREATE TABLE `labels_conf` (
|
CREATE TABLE `labels_conf` (
|
||||||
`id` int(4) NOT NULL auto_increment,
|
`id` int(4) NOT NULL auto_increment,
|
||||||
`barcodetype` char(100) default '',
|
`barcodetype` char(100) default '',
|
||||||
`title` tinyint(1) default 0,
|
`title` int(1) default '0',
|
||||||
`isbn` tinyint(1) default 0,
|
`itemtype` int(1) default '0',
|
||||||
`itemtype` tinyint(1) default 0,
|
`barcode` int(1) default '0',
|
||||||
`barcode` tinyint(1) default 0,
|
`dewey` int(1) default '0',
|
||||||
`dewey` tinyint(1) default 0,
|
`class` int(1) default '0',
|
||||||
`class` tinyint(1) default 0,
|
`subclass` int(1) default '0',
|
||||||
`author` tinyint(1) default 0,
|
`itemcallnumber` int(1) default '0',
|
||||||
`papertype` char(100) default '',
|
`author` int(1) default '0',
|
||||||
`startrow` int(2) default NULL,
|
`issn` int(1) default '0',
|
||||||
`subclass` tinyint(1) default '0',
|
`isbn` int(1) default '0',
|
||||||
`itemcallnumber` tinyint(1) default '0',
|
`startlabel` int(2) NOT NULL default '1',
|
||||||
`printingtype` char(10) default NULL,
|
`printingtype` char(32) default 'BAR',
|
||||||
`guidebox` tinyint(1) default NULL,
|
`layoutname` char(20) NOT NULL default 'TEST',
|
||||||
PRIMARY KEY (`id`)
|
`guidebox` int(1) default '0',
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
`active` tinyint(1) default '1',
|
||||||
|
`fonttype` char(10) default NULL,
|
||||||
|
`subtitle` int(1) default NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `labels_templates`
|
-- Table structure for table `labels_templates`
|
||||||
|
@ -949,8 +953,8 @@ CREATE TABLE `labels_conf` (
|
||||||
DROP TABLE IF EXISTS `labels_templates`;
|
DROP TABLE IF EXISTS `labels_templates`;
|
||||||
CREATE TABLE `labels_templates` (
|
CREATE TABLE `labels_templates` (
|
||||||
`tmpl_id` int(4) NOT NULL auto_increment,
|
`tmpl_id` int(4) NOT NULL auto_increment,
|
||||||
`tmpl_code` char(100) default '',
|
`tmpl_code` char(100) character set utf8 collate utf8_unicode_ci default '',
|
||||||
`tmpl_desc` char(100) default '',
|
`tmpl_desc` char(100) character set utf8 collate utf8_unicode_ci default '',
|
||||||
`page_width` float default '0',
|
`page_width` float default '0',
|
||||||
`page_height` float default '0',
|
`page_height` float default '0',
|
||||||
`label_width` float default '0',
|
`label_width` float default '0',
|
||||||
|
@ -962,11 +966,10 @@ CREATE TABLE `labels_templates` (
|
||||||
`colgap` float default '0',
|
`colgap` float default '0',
|
||||||
`rowgap` float default '0',
|
`rowgap` float default '0',
|
||||||
`active` int(1) default NULL,
|
`active` int(1) default NULL,
|
||||||
`units` char(20) default 'PX',
|
`units` char(20) character set utf8 collate utf8_unicode_ci default 'PX',
|
||||||
`fontsize` int(4) default NULL,
|
`fontsize` int(4) NOT NULL default '3',
|
||||||
PRIMARY KEY (`tmpl_id`)
|
PRIMARY KEY (`tmpl_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `letter`
|
-- Table structure for table `letter`
|
||||||
|
|
|
@ -74,7 +74,7 @@ if ( $op eq "do_search" ) {
|
||||||
# $startfrom * $resultsperpage,
|
# $startfrom * $resultsperpage,
|
||||||
# $resultsperpage, $orderby );
|
# $resultsperpage, $orderby );
|
||||||
|
|
||||||
use Data::Dumper;
|
#use Data::Dumper;
|
||||||
my $searchquery=$marclist[0];
|
my $searchquery=$marclist[0];
|
||||||
my ($error, $marcresults) = SimpleSearch($searchquery);
|
my ($error, $marcresults) = SimpleSearch($searchquery);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue