[28/30] Adding sample data for Label and Patron Card Creators
authorChris Nighswonger <cnighswonger@foundations.edu>
Thu, 7 Jan 2010 03:53:41 +0000 (22:53 -0500)
committerChris Nighswonger <cnighswonger@foundations.edu>
Mon, 11 Jan 2010 23:21:18 +0000 (18:21 -0500)
Also removing obsoleted sample labels data.

installer/data/mysql/en/optional/sample_creator_data.sql [new file with mode: 0644]
installer/data/mysql/en/optional/sample_creator_data.txt [new file with mode: 0644]
installer/data/mysql/en/optional/sample_labels.sql [deleted file]
installer/data/mysql/en/optional/sample_labels.txt [deleted file]

diff --git a/installer/data/mysql/en/optional/sample_creator_data.sql b/installer/data/mysql/en/optional/sample_creator_data.sql
new file mode 100644 (file)
index 0000000..bcd610a
--- /dev/null
@@ -0,0 +1,34 @@
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+
+LOCK TABLES `creator_layouts` WRITE;
+/*!40000 ALTER TABLE `creator_layouts` DISABLE KEYS */;
+INSERT INTO `creator_layouts` VALUES (17,'CODE39',1,'BIBBAR','Label Test',0,'TR',3,'POINT',0,'L','title, author, isbn, issn, itemtype, barcode, callnumber','<opt></opt>','Labels'),(18,'CODE39',1,'BAR','DEFAULT',0,'TR',3,'POINT',0,'L','title, author, isbn, issn, itemtype, barcode, callnumber','<opt></opt>','Labels'),(19,'CODE39',1,'BAR','DEFAULT',0,'TR',3,'POINT',0,'L','title, author, isbn, issn, itemtype, barcode, callnumber','<opt></opt>','Labels'),(20,'CODE39',1,'BAR','Test Layout',0,'TR',10,'POINT',0,'L','barcode','<opt page_side="F" units="POINT">
+  <images name="image_1" Dx="72" Ox="0" Oy="0" Sx="0" Sy="0" Tx="4.5" Ty="63">
+    <data_source image_name="none" image_source="patronimages" />
+  </images>
+  <text>&lt;firstname&gt; &lt;surname&gt;</text>
+  <text enable="1" font="TR" font_size="10" llx="100" lly="100" text_alignment="L" />
+  <text>Branch: &lt;branchcode&gt;</text>
+  <text enable="1" font="TR" font_size="10" llx="100" lly="75" text_alignment="L" />
+  <text>Expires: August 31, 2010</text>
+  <text font="TR" font_size="6" llx="115" lly="65" text_alignment="L" />
+</opt>
+','Patroncards');
+/*!40000 ALTER TABLE `creator_layouts` ENABLE KEYS */;
+UNLOCK TABLES;
+
+
+LOCK TABLES `creator_templates` WRITE;
+/*!40000 ALTER TABLE `creator_templates` DISABLE KEYS */;
+INSERT INTO `creator_templates` VALUES (1,1,'Avery 5160 | 1 x 2-5/8','3 columns, 10 rows of labels',8.5,11,2.63,1,0.139,0,0.35,0.23,3,10,0.13,0,'INCH','Labels'),(7,13,'Demco WS14942260','1\" X 1.5\" Spine Label | Setup for up to four lines of text',8.5,11,1.5,1,0.236,0,0.5,0.25,5,10,0.0625,0,'INCH','Labels'),(12,14,'Demco WS14942260','1\" X 1.5\" Spine Label | Setup for five lines of text',8.5,11,1.5,1,0.139,0,0.53,0.3,5,10,0.0625,0,'INCH','Labels'),(22,0,'DEFAULT TEMPLATE 01','Default description',0,5,0,0,0,0,0,0,0,0,0,0,'POINT','Labels'),(23,16,'HB-PC0001','A template for home brewed patron card forms',8.5,11,3.1875,1.9375,0,0,0.6875,0.875,2,4,0.4375,0.1875,'INCH','Patroncards');
+/*!40000 ALTER TABLE `creator_templates` ENABLE KEYS */;
+UNLOCK TABLES;
+
+LOCK TABLES `printers_profile` WRITE;
+/*!40000 ALTER TABLE `printers_profile` DISABLE KEYS */;
+INSERT INTO `printers_profile` VALUES (1,'Library Laser',1,'Bypass',-2,9,3,0,'POINT','Labels'),(11,'Library Laser',1,'Tray 1',0,0,0,0,'POINT','Labels'),(16,'Test Printer 01',23,'Test Bin',0,0,0,0,'POINT','Patroncards');
+/*!40000 ALTER TABLE `printers_profile` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
diff --git a/installer/data/mysql/en/optional/sample_creator_data.txt b/installer/data/mysql/en/optional/sample_creator_data.txt
new file mode 100644 (file)
index 0000000..0c7f62f
--- /dev/null
@@ -0,0 +1 @@
+Sample Label and Patron Card Data
diff --git a/installer/data/mysql/en/optional/sample_labels.sql b/installer/data/mysql/en/optional/sample_labels.sql
deleted file mode 100644 (file)
index c0fdd13..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
--- Label Templates
-LOCK TABLES `labels_templates` WRITE;
-/*!40000 ALTER TABLE `labels_templates` DISABLE KEYS */;
-INSERT INTO `labels_templates` VALUES
-(1,0,'Avery 5160 | 1 x 2-5/8',  '3 columns, 10 rows of labels',                                                 8.5,    11,     2.63,   1,      0.139,  0,      0.35,   0.23,   3,      10,     0.13,   0,      'INCH'),
-(2,0,'Gaylord 8511 Spine Label','Prints only the left-hand column of a Gaylord 8511.',                          8.5,    11,     1,      1.25,   0.6,    0.5,    0,      0,      1,      8,      0,      0,      'INCH'),
-(3,0,'Avery 5460 vertical',     '',                                                                             3.625,  5.625,  1.5,    0.75,   0.38,   0.35,   2,      7,      2,      1,      0.25,   0,      'INCH'),
-(4,0,'Avery 5460 spine labels', '',                                                                             5.625,  3.625,  0.75,   1.5,    0.35,   0.31,   7,      2,      1,      0,      0.25,   0,      'INCH'),
-(5,0,'Avery 8163',              '2rows x 5 rows',                                                               8.5,    11,     4,      2,      0,      0,      0.5,    0.17,   2,      5,      0.2,    0.01,   'INCH'),
-(6,0,'cards',                   'Avery 5160 | 1 x 2-5/8 : 1 x 2-5/8\"  [3x10] : equivalent: Gaylord JD-ML3000', 8.5,    11,     2.75,   1.05,   0,      0,      0.25,   0,      3,      10,     0.2,    0.01,   'INCH'),
-(7,0,'Demco WS14942260',        '1\" X 1.5\" Spine Label',                                                      8.5,    11,     1.5,    1,      0.236,  0,      0.4,    0.25,   5,      10,     0.0625, 0,      'INCH');
-/*!40000 ALTER TABLE `labels_templates` ENABLE KEYS */;
-UNLOCK TABLES;
-LOCK TABLES `labels_layouts` WRITE;
-/*!40000 ALTER TABLE `labels_layouts` DISABLE KEYS */;
-INSERT INTO `labels_layouts` VALUES
-(1,'CODE39','BIBBAR',   'biblio and barcode',   0,      'TR',7,0,'L','title, author, itemcallnumber'),
-(2,'CODE39','BIB',      'spine',                0,      'TR',3,1,'L','itemcallnumber'),
-(3,'CODE39','BARBIB',   'barcode and biblio',   0,      'TR',3,1,'L','title, author, itemcallnumber');
-/*!40000 ALTER TABLE `labels_layouts` ENABLE KEYS */;
-UNLOCK TABLES;
diff --git a/installer/data/mysql/en/optional/sample_labels.txt b/installer/data/mysql/en/optional/sample_labels.txt
deleted file mode 100644 (file)
index 2018fc6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-Some sample labels:
-
-Avery 5160 | 1 x 2-5/8
-Gaylord 8511 Spine Label
-Avery 5460 - vertical
-Avery 5460 - spine labels
-Avery 8163 - 2rows x 5 rows
-cards Avery 5160 | 1 x 2-5/8 : 1 x 2-5/8"  [3x10] : equivalent: Gaylord JD-ML3000
-Demco WS14942260 | 1" X 1.5" Spine Label