[Koha-devel] Changing the lost card value

Cab Vinton bibliwho at gmail.com
Mon Oct 18 15:55:49 CEST 2021


I think another option would be the Patron Import tool:
...tools/import_borrowers.pl

Cheers,

Cab Vinton, Director
Plaistow Public Library
Plaistow, NH

On Mon, Oct 18, 2021 at 9:43 AM Jonathan Druart
<jonathan.druart at bugs.koha-community.org> wrote:
>
> Hi Stephen,
>
> You can use
>   Koha::Patrons->find(42)->lost(0)->store;
> to set borrowers.lost to 0 for patron with borrowernumber=42.
>
> Cheers,
> Jonathan
>
> Le lun. 18 oct. 2021 à 12:47, Stephen Graham <s.graham4 at herts.ac.uk> a écrit :
> >
> > Sorry if this is a basic question. I’ve searched through the Koha::Patron and C4::Members perldoc and had a quick look through the memberentry.pl code to see how this handles it, but I can’t seem to work out how it done. I want to change the value of the lost card field to zero. I can see the “lost” field in the borrowers table, so could update the value directly via SQL, but there must be a Koha method that I can use to do this? Any help/advice much appreciated!
> >
> >
> >
> > Cheers, Stephen
> >
> >
> >
> > --------------------------------------
> >
> > Stephen Graham
> >
> > Library Technology Consultant
> >
> > Library and Computing Services
> >
> >
> >
> > University of Hertfordshire
> >
> > Hatfield, Hertfordshire, AL10 9AB
> >
> >
> >
> > Tel: +44(0)1707 286111
> >
> > Ext: 77751
> >
> > Email: s.graham4 at herts.ac.uk
> >
> > Website: herts.ac.uk
> >
> >
> >
> > _______________________________________________
> > Koha-devel mailing list
> > Koha-devel at lists.koha-community.org
> > https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> > website : https://www.koha-community.org/
> > git : https://git.koha-community.org/
> > bugs : https://bugs.koha-community.org/
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : https://www.koha-community.org/
> git : https://git.koha-community.org/
> bugs : https://bugs.koha-community.org/


More information about the Koha-devel mailing list