From: Owen Leonard Date: Tue, 7 Apr 2009 19:48:16 +0000 (-0500) Subject: More fixes for Bug 3044 X-Git-Tag: ontop~278 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=e183ac099a1f6a363513d33271dec30785f23413;p=koha.git More fixes for Bug 3044 Hiding the results page's "Add to Cart" links with CSS and revealing them with javascript; Writing the "Add to Cart" link to the opac-detail page with js using the biblionumber embedded in the Export form. Signed-off-by: Galen Charlton --- diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index ec96b30527..557e173fec 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1135,6 +1135,7 @@ width: 100%; .actions a.addtocart { background : url("../../images/cart-small.gif") center left no-repeat; padding-left : 13px; + display : none; } .actions a.addtoshelf { diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 97da43257b..8f2a339b62 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -24,7 +24,8 @@ }); KOHA.Google.GetCoverFromIsbn(); $(".tagbutton").click(KOHA.Tags.add_tag_button); - }); + $("#action").append("
  • Add to Your Cart
  • "); +}); //]]>