[Bug 8412] New: add color icon set
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Priority: P5 - low Change sponsored?: --- Bug ID: 8412 CC: gmcharlt@gmail.com Assignee: nengard@gmail.com Summary: add color icon set Severity: enhancement Classification: Unclassified OS: All Reporter: nengard@gmail.com Hardware: All Status: ASSIGNED Version: master Component: System Administration Product: Koha 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. I'll add this tip to a blog post and to the manual once this set of icons has been pushed to Koha. Obviously this patch just has images, no code. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #1 from Nicole C. Engard <nengard@gmail.com> --- Created attachment 10758 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10758&action=edit 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. I'll add this tip to a blog post and to the manual once this set of icons has been pushed to Koha. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Ian Walls <koha.sekjal@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |koha.sekjal@gmail.com --- Comment #2 from Ian Walls <koha.sekjal@gmail.com> --- I can see how low impact this is in order to add the feature of search/sort by color. But adding 146 pngs that are just basic solid colors seems... redundant to me. Why not use CSS to take the hex code, and render a region (of adjustable size) in that color? It would work as a MARC framework plugin, most likely, and could be connected to a color picker tool (I'm positive JQuery has one or more pre-canned). Not trying to over complicate things, just keep Koha lean and efficient. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #3 from Nicole C. Engard <nengard@gmail.com> --- Authorized values need images to go with them - we can have fewer images if you want - but I don't know a thing about how to make the system do what you want it to do cause it would require editing how images are attached to item types and other authorized values and how they show in the search results. This seemed the easiest way and they're very very small image files. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #4 from Owen Leonard <oleonard@myacpl.org> --- I'm not so concerned about the file size, but I do think there are too many color choices. I think a light and dark version of each color is probably enough: light green, dark green, light blue, dark blue, etc. 10 variations on "green" is probably overkill for most people. It would probably also be helpful to offer SQL for doing a mass insert of these values into collection codes. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #5 from Nicole C. Engard <nengard@gmail.com> --- My thinking was law libraries and the different shades of law books :) but here is a smaller set of images, I'd like to allow people to download the entire site of images via the wiki maybe or something if that helps. As for the SQL do you mean as a tip on the patch? I can totally do that, I can also add a new authorized value for Colors, but then that has to be moved to LOC or CCOODE if you plan to use one of those for holding color info. Keep an eye out - new patch coming in a few minutes. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10758|0 |1 is obsolete| | --- Comment #6 from Nicole C. Engard <nengard@gmail.com> --- Created attachment 11381 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11381&action=edit 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. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11381|0 |1 is obsolete| | --- Comment #7 from Nicole C. Engard <nengard@gmail.com> --- Created attachment 11382 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11382&action=edit 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. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11382|0 |1 is obsolete| | --- Comment #8 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 11509 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11509&action=edit [SIGNED-OFF] Bug 8412: add color icon set Patch only adds image files in a new directory, so it's a safe change. Number of files have been reduced and SQL snippet attached to the patch, as requested by Owen. No reasons to not signoff. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |julian.maurice@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA CC| |jonathan.druart@biblibre.co | |m --- Comment #9 from Jonathan Druart <jonathan.druart@biblibre.com> --- QA Comment: This patch adds a color icon set for opac and intranet. Marked as Passed QA. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact| |jonathan.druart@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.poulain@biblibre.com --- Comment #10 from Paul Poulain <paul.poulain@biblibre.com> --- mmm... do we really need this patch ? There is an option to provide a complete/external URL. Shouldn't your library just have their own "ccode-that-are-colors" on their own location and setup ccode accordingly ? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #11 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #10)
mmm... do we really need this patch ? There is an option to provide a complete/external URL. Shouldn't your library just have their own "ccode-that-are-colors" on their own location and setup ccode accordingly ?
I just discover that the option exist for itemtypes.pl, but not for authorised_values. I don't see why (and it should probably be fixed) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #12 from Nicole C. Engard <nengard@gmail.com> --- Not all libraries have a place to host their own images, or know how to host their own images, so adding these makes it easy for those types of people. And once again, it's just a few small images, it's not a big drain on the system so I'm not sure why we wouldn't add them. As for why it's not showing in authorized values ... does anyone know why that would happen? I put the images where I always do. Nicole -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #13 from Nicole C. Engard <nengard@gmail.com> --- Paul, I reapplied the patch to my system and I see the colors tab when editing authorized values, so can you explain what problem you're seeing? Nicole -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #14 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #13)
Paul,
I reapplied the patch to my system and I see the colors tab when editing authorized values, so can you explain what problem you're seeing? The problem is just that i'm not seeing the link for an external image on authorized values, as there is one on itemtypes. It's not related to your patch at all.(In reply to comment #12)
Not all libraries have a place to host their own images, or know how to host their own images, so adding these makes it easy for those types of people. And once again, it's just a few small images, it's not a big drain on the system so I'm not sure why we wouldn't add them. I put the images where I always do. Until now, images where always showing something that was understandable & useful for most libraries, so it's common interest to have them shipped with Koha. Those "image=color" are completely meaningless for me (& probably most french libraries)
Are they related to a color scheme that US libraries usually understand, or are they specific to ONE library ? If they are specific to one library, I think we should not add them If they are meaningfull for many (like : "most libraries use yellow for 1XX dewey, orange for 2XX, red for 3XX, ...") , I'll push the patch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 --- Comment #15 from Nicole C. Engard <nengard@gmail.com> --- Lots of libraries report that patrons come to the desk and say do you know that book about dogs with the yellow cover (or something like that). There have been articles in library journals about cataloging colors to make this kind of searching easier. One library I have found that does this is : http://portia.nesl.edu/screens/well_its_red.html click the color and you get a search for books with that color in the cover. This is a specialized feature, but one that many liked the idea of when I tweeted about it originally and like I said one that many libraries have expressed an interest in in general (not Koha specific libraries only). Nicole -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com --- Comment #16 from Kyle M Hall <kyle@bywatersolutions.com> ---
Are they related to a color scheme that US libraries usually understand, or are they specific to ONE library ? If they are specific to one library, I think we should not add them If they are meaningfull for many (like : "most libraries use yellow for 1XX dewey, orange for 2XX, red for 3XX, ...") , I'll push the patch
I don't think this is only specific and useful to a single library. It seems like something that could be a feature for a large number of libraries ( e.g. law firm libraries ). Other libraries may find uses for this feature that we haven't even thought of! Perhaps a library or two color code sections of shelving, in which case this feature would allow a library to give simple feedback on which area an item would be located in. In the end, it doesn't affect existing functionality, and can be safely ignored by those who are not interested in it, so why take away something that might be useful? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master Version|master |rel_3_10 --- Comment #17 from Paul Poulain <paul.poulain@biblibre.com> --- Patch pushed to master Final comment: definitely, I'm not a big fan of this patch. I feel it could have been written another way. However, it's highly not intrusive, so easy to remove if another option for picking a color is written. So I've pushed the patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8412 Suzanne Fayle <sfayle@roseman.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sfayle@roseman.edu --- Comment #18 from Suzanne Fayle <sfayle@roseman.edu> --- This feature would be of use to us for sure. But I'd like to see more colors available. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org