Main Koha release repository
https://koha-community.org
07287ec065
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> |
||
---|---|---|
acqui | ||
admin | ||
authorities | ||
basket | ||
C4 | ||
catalogue | ||
cataloguing | ||
circ | ||
debian | ||
docs | ||
errors | ||
etc | ||
install_misc | ||
installer | ||
Koha | ||
koha-tmpl | ||
labels | ||
members | ||
misc | ||
offline_circ | ||
opac | ||
patroncards | ||
reports | ||
reserve | ||
reviews | ||
rotating_collections | ||
selenium | ||
serials | ||
services | ||
skel | ||
sms | ||
suggestion | ||
svc | ||
t | ||
tags | ||
test | ||
tmp/modified_authorities | ||
tools | ||
virtualshelves | ||
xt | ||
.htaccess | ||
.mailmap | ||
about.pl | ||
changelanguage.pl | ||
edithelp.pl | ||
fix-perl-path.PL | ||
help.pl | ||
INSTALL | ||
install-CPAN.pl | ||
INSTALL.debian | ||
INSTALL.fedora7 | ||
INSTALL.opensuse | ||
INSTALL.ubuntu | ||
INSTALL.ubuntu.12.04 | ||
INSTALL.ubuntu.lucid | ||
koha_perl_deps.pl | ||
kohaversion.pl | ||
LICENSE | ||
mainpage.pl | ||
Makefile.PL | ||
MANIFEST.SKIP | ||
README | ||
README.robots | ||
rewrite-config.PL |
Koha is a free software integrated library system. Koha is distributed under the GNU GPL version 2 or later. Please read the file LICENSE for more details. To install or upgrade Koha, please see the INSTALL file appropriate to your platform. Report bugs at http://bugs.koha-community.org/ Visit the Koha Project website at http://www.koha-community.org/