From edd54d9fad44a1ebf56a1cd176ca2feb3531fa58 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 29 Oct 2007 16:45:10 -0500 Subject: [PATCH] fixing itemtype image, sample data, improving Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 1 + installer/data/en/optional/sample_itemtypes.sql | 4 ++-- .../itemtypeimg/{Video disc.gif => Video-disc.gif} | Bin 3 files changed, 3 insertions(+), 2 deletions(-) rename koha-tmpl/opac-tmpl/prog/itemtypeimg/{Video disc.gif => Video-disc.gif} (100%) diff --git a/C4/Search.pm b/C4/Search.pm index eeb893312c..09b324d28f 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -963,6 +963,7 @@ sub searchResults { my $old_term = $term; if ( length($term) > 3 ) { $term =~ s/(.*=|\)|\(|\+|\.|\?|\[|\])//g; + $term =~ s/\\//g; #FIXME: is there a better way to do this? $oldbiblio->{'title'} =~ s/$term/$&<\/span>/gi; diff --git a/installer/data/en/optional/sample_itemtypes.sql b/installer/data/en/optional/sample_itemtypes.sql index cd54d4ab53..36bb6fd567 100644 --- a/installer/data/en/optional/sample_itemtypes.sql +++ b/installer/data/en/optional/sample_itemtypes.sql @@ -1,8 +1,8 @@ INSERT INTO `itemtypes` VALUES ('BKS', 'Books, Booklets, Workbooks',5,0,0,'Non-fiction.gif',''); INSERT INTO `itemtypes` VALUES ('CF', 'CD-ROMs, DVD-ROMs, General Online Resources',5,0,0,'CDM.gif',''); INSERT INTO `itemtypes` VALUES ('SR', 'Audio Cassettes, CDs',5,0,0,'AVNF.gif',''); -INSERT INTO `itemtypes` VALUES ('VR', 'DVDs, VHS',5,0,0,'Video disk.gif',''); +INSERT INTO `itemtypes` VALUES ('VR', 'DVDs, VHS',5,0,0,'Video-disc.gif',''); INSERT INTO `itemtypes` VALUES ('AR', 'Models',5,0,1,'EASY.gif',''); -INSERT INTO `itemtypes` VALUES ('KT', 'Kits',5,0,0,'Kit.gif',''); +INSERT INTO `itemtypes` VALUES ('KT', 'Kits',5,0,0,'KIT.gif',''); INSERT INTO `itemtypes` VALUES ('IR', 'Binders',5,0,0,'Faculty Course Materials.gif',''); INSERT INTO `itemtypes` VALUES ('SER', 'Serials',5,0,0,'MZ.gif',''); diff --git a/koha-tmpl/opac-tmpl/prog/itemtypeimg/Video disc.gif b/koha-tmpl/opac-tmpl/prog/itemtypeimg/Video-disc.gif similarity index 100% rename from koha-tmpl/opac-tmpl/prog/itemtypeimg/Video disc.gif rename to koha-tmpl/opac-tmpl/prog/itemtypeimg/Video-disc.gif -- 2.39.5