[Koha] Multiple Statements

Eric Bégin eric.begin at inLibro.com
Mon Aug 11 22:01:32 NZST 2014


You are on the right track Chrispin ;)

Do not put the $(document).ready and this should work.

Can you try the following :

   $("#auth legend:contains('Log in to your account')").text("Log in to your library account");
   $("#auth label[for='userid']").html("Library Card Number:");
   $("#auth label[for='password']").html("PIN:");

   var holdlinks = $("a:contains('Place Hold'),a:contains('Place hold')");
   $(holdlinks).text("Get It Now!");

   $("input[value='Place Hold']").attr("value","Get  It Now!");
   $("a:contains('Browse Shelf')").text("See Similar Items");

Hope that helps,

Eric

On 2014-08-10 04:07, Chrispin Simasiku Sitali wrote:
> Greetings to all,
>
> How would I add multiple statements in opacuserjs. e.g.
>
> $(document).ready(function(){
>    $("#auth legend:contains('Log in to your account')").text("Log in to your
> library account");
>    $("#auth label[for='userid']").html("Library Card Number:");
>    $("#auth label[for='password']").html("PIN:");
> });
>
>
>    $(document).ready(function(){
>    var holdlinks = $("a:contains('Place Hold'),a:contains('Place hold')");
>    $(holdlinks).text("Get It Now!");
>    });
>    $(window).load(function(){
>    $("input[value='Place Hold']").attr("value","Get  It Now!");
>
>
>
>
>   $(document).ready(function(){
>      $("a:contains('Browse Shelf')").text("See Similar Items");
>    });
>
> Please help. Teaching myself all this!
>
> Sitali Chrispin Simasiku
>



More information about the Koha mailing list