Re: [Koha] Hidding branch

2017-09-25 Thread Luis Moises Rojas
Thanks to ALL.
It works.
$("#select_library option[value='branch:Branchcode']").hide();

On Sun, Sep 24, 2017 at 10:31 PM, Hugh Rundle 
wrote:

> Hi Luis
>
> Kelly's solution will hide items from those branches, but not the option
> in the pulldown menu itself. You can remove the option in the pulldown
> putting this line in OPACUserJS:
>
> $("#branchloop option[value='branch:BRANCHCODE']").hide();
>
> In the JQuery Library there is another possibility listed, though it
> appears this may no longer work in more recent versions:
>
> $("#select_library option[value='branch:BRANCHCODE']").hide();
>
> See: https://wiki.koha-community.org/wiki/JQuery_Library#Hide_
> branch_from_search_pulldown
>
> cheers
>
>
> Hugh Rundle
> Acting Manager
> Community Learning & Participation
>
> Brimbank City Council
> Brimbank Community and Civic Centre - 301 Hampshire Road, Sunshine
>
> T +61 3 9249 4285
> M +61 437 734 108
> F +61 3 9249 4351
>
> www.brimbank.vic.gov.au
>
> -Original Message-
> From: Koha [mailto:koha-boun...@lists.katipo.co.nz] On Behalf Of Kelly
> McElligott
> Sent: Saturday, 23 September 2017 4:39 AM
> To: Luis Moises Rojas
> Cc: Comunidad Koha
> Subject: Re: [Koha] Hidding branch
>
> Hi,
> You will need to put both home branch and holding branch in the system
> preferences for Opachiddenitems - see my example.
>
> homebranch: [CAT]
> holdingbranch: [CAT]
>
>
> Kelly
>
> On Fri, Sep 22, 2017 at 2:25 PM, Luis Moises Rojas  >
> wrote:
>
> > Hello everybody,
> >
> > I am using the OpacHiddenItems because i do not want the some branches
> > to be displayed when the user (using OPAC) select branches for a
> > search this is the code
> > homebranch: [homebranch1, homebranch2]
> >
> > I have tested with branches code and branches name and nothing happen,
> > branches still appears.
> >
> > Thanks
> >
> > --
> > *Luis Moisés Rojas P.*
> > ___
> > Koha mailing list  http://koha-community.org Koha@lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
> >
>
>
>
> --
> Kelly McElligott
> Educator
> ByWater Solutions
> bywatersolutions.com
> Phone:(888)900-8944 <(888)%20900-8944>
> What is Koha? <http://bywatersolutions.com/what-is-koha/>
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
*Luis Moisés Rojas P.*
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Hidding branch

2017-09-24 Thread Hugh Rundle
Hi Luis

Kelly's solution will hide items from those branches, but not the option in the 
pulldown menu itself. You can remove the option in the pulldown putting this 
line in OPACUserJS:

$("#branchloop option[value='branch:BRANCHCODE']").hide();

In the JQuery Library there is another possibility listed, though it appears 
this may no longer work in more recent versions:

$("#select_library option[value='branch:BRANCHCODE']").hide();

See: 
https://wiki.koha-community.org/wiki/JQuery_Library#Hide_branch_from_search_pulldown

cheers


Hugh Rundle
Acting Manager
Community Learning & Participation

Brimbank City Council
Brimbank Community and Civic Centre - 301 Hampshire Road, Sunshine

T +61 3 9249 4285
M +61 437 734 108
F +61 3 9249 4351

www.brimbank.vic.gov.au

-Original Message-
From: Koha [mailto:koha-boun...@lists.katipo.co.nz] On Behalf Of Kelly 
McElligott
Sent: Saturday, 23 September 2017 4:39 AM
To: Luis Moises Rojas
Cc: Comunidad Koha
Subject: Re: [Koha] Hidding branch

Hi,
You will need to put both home branch and holding branch in the system 
preferences for Opachiddenitems - see my example.

homebranch: [CAT]
holdingbranch: [CAT]


Kelly

On Fri, Sep 22, 2017 at 2:25 PM, Luis Moises Rojas 
wrote:

> Hello everybody,
>
> I am using the OpacHiddenItems because i do not want the some branches 
> to be displayed when the user (using OPAC) select branches for a 
> search this is the code
> homebranch: [homebranch1, homebranch2]
>
> I have tested with branches code and branches name and nothing happen, 
> branches still appears.
>
> Thanks
>
> --
> *Luis Moisés Rojas P.*
> ___
> Koha mailing list  http://koha-community.org Koha@lists.katipo.co.nz 
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
Kelly McElligott
Educator
ByWater Solutions
bywatersolutions.com
Phone:(888)900-8944 <(888)%20900-8944>
What is Koha? <http://bywatersolutions.com/what-is-koha/>
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Hidding branch

2017-09-22 Thread Kelly McElligott
Hi,
You will need to put both home branch and holding branch in the system
preferences for Opachiddenitems - see my example.

homebranch: [CAT]
holdingbranch: [CAT]


Kelly

On Fri, Sep 22, 2017 at 2:25 PM, Luis Moises Rojas 
wrote:

> Hello everybody,
>
> I am using the OpacHiddenItems because i do not want the some branches to
> be displayed when the user (using OPAC) select branches for a search
> this is the code
> homebranch: [homebranch1, homebranch2]
>
> I have tested with branches code and branches name and nothing happen,
> branches still appears.
>
> Thanks
>
> --
> *Luis Moisés Rojas P.*
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>



-- 
Kelly McElligott
Educator
ByWater Solutions
bywatersolutions.com
Phone:(888)900-8944 <(888)%20900-8944>
What is Koha? 
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Hidding branch

2017-09-22 Thread Philippe Blouin

No sure, but have you tried

homebranch: ["homebranch1", "homebranch2"]

with quotes, to make it legal YAML ?   That'd be my first take. (Maybe 
you're already doing it, just not showingg in your example?)


Philippe Blouin,
Responsable du développement informatique

Tél.  : (833) 465-4276, poste 230
philippe.blo...@inlibro.com 

inLibro | pour esprit libre | www.inLibro.com 
On 09/22/2017 02:25 PM, Luis Moises Rojas wrote:

Hello everybody,

I am using the OpacHiddenItems because i do not want the some branches to
be displayed when the user (using OPAC) select branches for a search
this is the code
homebranch: [homebranch1, homebranch2]

I have tested with branches code and branches name and nothing happen,
branches still appears.

Thanks



___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha