]> git.koha-community.org Git - koha.git/commit
Bug 8412: add color icon set
authorNicole C. Engard <nengard@bywatersolutions.com>
Fri, 3 Aug 2012 15:17:53 +0000 (11:17 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 12:38:06 +0000 (14:38 +0200)
commit07287ec065a1eb599baa61cab93c5705cbe24a29
treeb4be442cff052eed79411a9ab82415e79fc2cd27
parentda262047be427fc0c15f16ca602c3c9d7f8bee47
Bug 8412: add color icon set

My goal here is to make it so that libraries can use
one of the authorized values (shelving location or
collection code) to store the color of the material
and then make that searchable on the advanced search
page.

To do this for collection codes you'd need to add
the following jqueries:

intranetuserjs

$(document).ready(function(){
$("#advsearch-tab-ccode a:contains('Collection')").text("Color");
$("#holdings th:contains('Collection')").text("Color");
});

opacuserjs

$(document).ready(function(){
$("#advsearch-tab-ccode a:contains('Collection')").text("Color");
$('#item_ccode').text("Color");
});

And update the frameworks to change the 952$8 label to say Color.

The following SQL could be used to add these colors to the CCODE
authorized value category if you planned on using these this way.
If you wanted to use these colors for another authorized value
you'd have to edit this to use that category:

insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','000000','Black','','colors/000000.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','66cc66','Bright Green','','colors/66cc66.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','99cc33','Olive','','colors/99cc33.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','3333cc','Dark Blue','','colors/3333cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','006600' ,'Dark Green','','colors/006600.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','6600cc','Plum','','colors/6600cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','6666cc','Purple','','colors/6666cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','9999cc','Light Purple','','colors/9999cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','660000' ,'Burgundy','','colors/660000.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','663333' ,'Brown','','colors/663333.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','990000' ,'Red','','colors/990000.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','996633' ,'Tan','','colors/996633.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','999999' ,'Gray','','colors/999999.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cc66cc','Pink','','colors/cc66cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cc99cc','Bubble Gum','','colors/cc99cc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cc3333' ,'Orange','','colors/cc3333.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cc6666' ,'Peach','','colors/cc6666.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cc9999' ,'Rose','','colors/cc9999.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','cccc00' ,'Gold','','colors/cccc00.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','ffff33' ,'Yellow','','colors/ffff33.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','ffffcc','Cream','','colors/ffffcc.png');
insert into authorised_values (category, authorised_value, lib,
 lib_opac, imageurl) values ('CCODE','ffffff','White','','colors/ffffff.png');

I'll add this tip to a blog post and to the manual once this
set of icons has been pushed to Koha.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
44 files changed:
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/000000.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/006600.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/3333cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/660000.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/6600cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/663333.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/6666cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/66cc66.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/990000.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/996633.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/999999.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/9999cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/99cc33.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cc3333.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cc6666.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cc66cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cc9999.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cc99cc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/cccc00.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/ffff33.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/ffffcc.png [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/img/itemtypeimg/colors/ffffff.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/000000.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/006600.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/3333cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/660000.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/6600cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/663333.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/6666cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/66cc66.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/990000.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/996633.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/999999.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/9999cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/99cc33.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cc3333.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cc6666.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cc66cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cc9999.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cc99cc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/cccc00.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/ffff33.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/ffffcc.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/itemtypeimg/colors/ffffff.png [new file with mode: 0644]