All, In 3.2 item edits screen I know that you can hide some of the fields in the the <div id="cataloguing_additem_newitem"> part of the form by using the frameworks, but can anyone tell me how to hide a column in the <div id="cataloguing_additem_itemlist"> part at the top part of the page? We only have one branch, and so we really don't need the 'Permanent Location" and "Current Location" columns to show up, or if we did, we'd only need one of them. I tried the various "visibility conditions" in the frameworks, but couldn't get them to hide in the top part where the items are listed. I know this is picky, but I want our catalogers to like Koha, so I'm really working on getting my frameworks customized to be the way they want them. Thanks in advance. -- Linda Culberson lculber@mdah.state.ms.us Archives and Records Services Division Ms. Dept. of Archives & History P. O. Box 571 Jackson, MS 39205-0571 Telephone: 601/576-6873 Fax: 601/576-6824
Linda, Since no one's answered you yet, I'll offer some jQuery code to add to your intranetuserjs, with the caveats that I'm on LLEK and that I'm a jQuery neophyte whose naive solution is probably not bulletproof: $("#cataloguing_additem_itemlist th:contains('Permanent location')").remove(); $("#cataloguing_additem_itemlist th:contains('Current location')").remove(); $("#cataloguing_additem_itemlist tbody tr td:nth-child(9)").remove(); $("#cataloguing_additem_itemlist tbody tr td:nth-child(10)").remove(); I hope that someone more experienced with jQuery sees this, laughs at it, jumps in with a more sophisticated solution, and adds it to the http://wiki.koha-community.org/wiki/JQuery_Library jQuery Library . Cheers, Daniel Grobani Library Technology Specialist John A. Graziano Memorial Library Samuel Merritt University -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-changing-the-item-edits-screen-tp4413... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi Daniel, some days ago I wrote to Linda:
Dear Linda: before replying to the list, and if you are experienced with Firebug on Firefox (or its equivalent in Chrome or Safari), try
$('#cataloguing_additem_itemlist th:nth-child(8)').css('display','none'); // 9th column header is at pos 8 $('#cataloguing_additem_itemlist td:nth-child(9)').css('display','none'); $('#cataloguing_additem_itemlist th:nth-child(9)').css('display','none'); // 10th column header is at pos 9 $('#cataloguing_additem_itemlist td:nth-child(10)').css('display','none');
If this is ok for you, we have to wrap this lines into some more javascript code to place it into the intranetuserjs syspref. Let me know. Bye. Stefano
Up to now, no reply from her. But we can compare our solutions. They seem very similar. Of course, both require to be wrapped into $(document).ready(function() { // our code }) Stefano On May 26, 2011, at 00:19 , Daniel Grobani wrote:
Linda,
Since no one's answered you yet, I'll offer some jQuery code to add to your intranetuserjs, with the caveats that I'm on LLEK and that I'm a jQuery neophyte whose naive solution is probably not bulletproof:
$("#cataloguing_additem_itemlist th:contains('Permanent location')").remove(); $("#cataloguing_additem_itemlist th:contains('Current location')").remove(); $("#cataloguing_additem_itemlist tbody tr td:nth-child(9)").remove(); $("#cataloguing_additem_itemlist tbody tr td:nth-child(10)").remove();
I hope that someone more experienced with jQuery sees this, laughs at it, jumps in with a more sophisticated solution, and adds it to the http://wiki.koha-community.org/wiki/JQuery_Library jQuery Library .
Cheers,
Daniel Grobani Library Technology Specialist John A. Graziano Memorial Library Samuel Merritt University
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-changing-the-item-edits-screen-tp4413... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Daniel Grobani -
Linda Culberson -
Stefano Bargioni