[Koha] Change "Place Hold" to "Request Item"

2016-07-22 Thread Chad Roseburg
I found the following jQuery in the Koha library for changing the text for
"Place hold":

$(document).ready(function(){
var holdlinks = $("a:contains('Place Hold'),a:contains('Place hold')");
$(holdlinks).text("Request Item");
});

$(window).load(function(){
$("input[value='Place Hold']").attr("value","Request Item");
});

It misses some instances like the at the top of the results page. Does
anyone have
code for this? We're on 3.18. Wonder if this is a case issue

Thank you!


-- 
Chad Roseburg
Asst. Director / IT
Automation Dept.
North Central Regional Library
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Change "Place Hold" to "Request Item"

2016-07-25 Thread Owen Leonard
> It misses some instances like the at the top of the results page.

I think it will work if you move everything into the $(window).load()
function. The "place hold" control at the top of the results page is
generated by JavaScript, so I think the $(document).load() function
fires too soon to catch it.

  -- Owen

-- 
Web Developer
Athens County Public Libraries
http://www.myacpl.org
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Change "Place Hold" to "Request Item"

2016-07-26 Thread Chad Roseburg
Thanks for the suggestion Owen --

I'm working with a test server on 16.05 and it still leaves the "Place
hold" in #selections-toolbar.

On Mon, Jul 25, 2016 at 5:12 AM, Owen Leonard  wrote:

> > It misses some instances like the at the top of the results page.
>
> I think it will work if you move everything into the $(window).load()
> function. The "place hold" control at the top of the results page is
> generated by JavaScript, so I think the $(document).load() function
> fires too soon to catch it.
>
>   -- Owen
>
> --
> Web Developer
> Athens County Public Libraries
> http://www.myacpl.org
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
Chad Roseburg
Asst. Director / IT
Automation Dept.
North Central Regional Library
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Change "Place Hold" to "Request Item"

2016-07-26 Thread Chad Roseburg
pt 2

I moved it as you suggested and changed:
$("input[value='Place Hold']").attr("value","Request Item");

to

$("input[value='Place hold']").attr("value","Request Item");

This gets the selections-menu occurrence. I think that about does it.

Thank you!

Chad


On Mon, Jul 25, 2016 at 5:12 AM, Owen Leonard  wrote:

> > It misses some instances like the at the top of the results page.
>
> I think it will work if you move everything into the $(window).load()
> function. The "place hold" control at the top of the results page is
> generated by JavaScript, so I think the $(document).load() function
> fires too soon to catch it.
>
>   -- Owen
>
> --
> Web Developer
> Athens County Public Libraries
> http://www.myacpl.org
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
Chad Roseburg
Asst. Director / IT
Automation Dept.
North Central Regional Library
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha