Hi Bev<br><br>Thanks for sharing this script, I've been wondering abut how to sort this and it's worked really well here on our install :-)<br><br>I've found a couple of examples of the word 'Cart' remaining after I've added this to the opac syspref though and I'm not sure how to get to them to convert to our chosen label. Would you be able to help? <br>
<br>They are:<br><br> in the drop down list 'Add to:' at the top of the brief results list <a href="http://koha/cgi-bin/koha/opac-search.pl">http://koha/cgi-bin/koha/opac-search.pl</a><br><br> the header for the pop up <a href="http://koha/cgi-bin/koha/opac-basket.pl">http://koha/cgi-bin/koha/opac-basket.pl</a><br>
<br>Hopefully,<br>Jos<br><br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">From: Church, Beverly <<a target="_top" href="http://gmane.org/get-address.php?address=bchurch%2ddH%2fyH1cuEJxBDgjK7y7TUQ%40public.gmane.org" rel="nofollow">bchurch@...</a>><br>
Subject: <a target="_top" rel="nofollow" href="http://news.gmane.org/find-root.php?message_id=%3cAANLkTim7JUMnpoRbKepSiofKn%5fMUkoPAUv%5fKLCqHiMuS%40mail.gmail.com%3e">Re: cart button - change or remove</a><br>
Newsgroups: <a href="http://news.gmane.org/gmane.comp.misc.koha" target="_top">gmane.comp.misc.koha</a><br>
Date: 2010-11-25 13:42:47 GMT
(1 week, 23 hours and 55 minutes ago)<br><p>
</p>Hi Elaine,<br><br>Here's a script I found which lets you use
the system preference "opacuserjs" to rename the cart function. This
script below changes "Cart" to "Book Bag" but you can use choose any
other label:<br><br>$("a.addtocart").text('Add to Book Bag');<br><br>// redefining messages to use "book bag"<br>MSG_BASKET_EMPTY = _("Your book bag is currently empty");<br>MSG_RECORD_IN_BASKET = _("This item is already in your book bag");<br>
MSG_RECORD_ADDED = _("This item has been added to your book bag");<br>MSG_NRECORDS_ADDED = _(" item(s) added to your book bag");<br>MSG_NRECORDS_IN_BASKET = _("already in your book bag");<br>
MSG_NO_RECORD_ADDED = _("No item was added to your book bag");<br>MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your book bag?");<br><br> $(".container > h1:contains('Your Cart')").html("Your Book Bag");<br>
$("span.addto").click( function(){<br> $("select#addto > option:contains('Cart')").html("Book Bag");<br> });<br><br>top_button_convert = function() {<br> basketcount = $("#basketcount").html();<br>
$("#cartmenulink").html(<br>'<i></i><span><i></i><span></span><img
src="/opac-tmpl/prog/images/cart.gif" width="14" height="14" alt=""
border="0" /> Book Bag<span id="basketcount">' + basketcount +
'</span></span>'<br>
);<br>};<br> top_button_convert(); // run once <br> $("a.addtocart").click( function(){<br> top_button_convert(); // run on given clicks<br> });<br> <br><br>You need to enter the above script between the following beginning and opening lines:<br>
<br><span>$(document).ready(function(){</span><br><br><br><span>});</span><span></span><br><span></span></blockquote>