[Koha-devel] Disabling multiple submission on search form

2016-02-15 Thread SUZUKI Arthur
Hello, We are facing the following problem on our installation of Koha. Some impatient users tends to click several times on the "Go" button of the search form on OPAC. Probably in a desperate hope that this will speed up the whole process. However the result is quite opposite, as Zebra is then qu

Re: [Koha-devel] Repeated MARC field in Staff normal view

2016-02-15 Thread Frédéric Demians
> > > > > > > I've tried a few variations of this as well, but always with no success. > Instead it removes the entire normal view from the staff client. If so, it means that your XSL is malformed. Check you logs. The "tag_7xx" template is not designed to be used like you do. Take a look

Re: [Koha-devel] Disabling multiple submission on search form

2016-02-15 Thread SUZUKI Arthur
ERRATUM: You should add onclick="this.disabled=true; this.form.submit(); return true;" as stated in the Sed command. If missing "this.form.submit(); return true;" the trick works only in Firefox and IE (screw you Google...). Best regards, Arthur SUZUKI Service informatique des bibliothèques bIBL

[Koha-devel] Koha::Object validation ?

2016-02-15 Thread Julian Maurice
Hi there, I'm currently working on some enhancements for authorised values (to make it possible to have a hierarchy of values), so I'm using Koha::AuthorisedValue which is a subclass of Koha::Object. I would like to add some sort of validation mechanism just before saving the object into database

Re: [Koha-devel] Koha::Object validation ?

2016-02-15 Thread Jonathan Druart
Hi Julian, You want to overwrite the store method, that's it? You can have a look at Koha::VirtualShelf->store for an example. Jonathan 2016-02-15 14:20 GMT+00:00 Julian Maurice : > Hi there, > > I'm currently working on some enhancements for authorised values (to > make it possible to have a hi

Re: [Koha-devel] Koha::Object validation ?

2016-02-15 Thread Tomas Cohen Arazi
+1! 2016-02-15 12:22 GMT-03:00 Jonathan Druart < jonathan.dru...@bugs.koha-community.org>: > Hi Julian, > > You want to overwrite the store method, that's it? > You can have a look at Koha::VirtualShelf->store for an example. > > Jonathan > > 2016-02-15 14:20 GMT+00:00 Julian Maurice : > > Hi the

Re: [Koha-devel] Koha::Object validation ?

2016-02-15 Thread Julian Maurice
I was thinking about calling $self->before_save() in Koha::Object::store and then define Koha::AuthorisedValues::before_save, but that's kind of the same thing. I'll go with overwriting the store method, thanks ;) Le 15/02/2016 16:22, Jonathan Druart a écrit : > Hi Julian, > > You want to overwri