[Koha] How to limit number of copies?

George gwilliams at nekls.org
Thu Jun 29 02:07:58 NZST 2023


Victor,

I'd recommend opening a bug on Bugzilla saying that a system preference 
should be added to set the maximum number of copies that can be added to 
a bibliographic record when someone uses the "Add multiple copies of 
this item" button on additem.pl.

In the meantime, if you put this jQuery in the intranetuserJS system 
preference, it will set the limit to 10 copies:

//Home > Cataloging > Edit TITLE > items 
(cataloguing/additem.pl?biblionumber=n)
   //Limit the number of copies that can be added to a biblio using the 
"Add multiple copies of this item" button
     $('#cat_additem 
#number_of_copies').attr('type','number').attr('max','10');

And I'll add that jQuery to the jQuery library in just a few minutes.

George

On 6/27/2023 7:00 PM, koha-request at lists.katipo.co.nz wrote:
> Message: 3
> Date: Tue, 27 Jun 2023 15:36:17 -0300
> From: Victor Barroso Oliveira<vbovictor at gmail.com>
> To: Koha<koha at lists.katipo.co.nz>
> Subject: [Koha] How to limit number of copies?
> Message-ID:
> 	<CACyxk604FQOuDbdUVN5pyVvkabRNxGhWZUyWsWvjrr2VppQEvQ at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Hello,
> In Koha it is possible to Add an instance or choose to "Add Multiple
> Copies" simultaneously to a record.
> So far so good. More..... I had a situation where an employee mistakenly
> typed 800,000 copies for a record.
> As a result, when Koha started its automatic Indexing routine, it consumed
> all of the server's memory and crashed system access. When I tried to
> delete the 800,000 copies in batch, the system crashed. It took slow
> deletion from 5,000 to 5,000 to reach 800,000.
> Considering the aforementioned case, would any colleague know if we can
> limit the quantity in the option "Add Multiple Copies"?
> Thanks,
> Victor

-- 
George Williams
Pronouns: he/him
Next Search Catalog Coordinator
Send NEXT support e-mails to nexthelp at nekls.org

NEKLS Office: 785-838-4090
Toll Free: 888-296-6963
Fax: 785-838-3989
Next After-Hours: 785-813-1356

For specific support issues, please use:
Next Catalog Support: nexthelp at nekls.org
Courier Support: chandwork at nekls.org
Technology Support: tech at nekls.org

4317 W 6th St, Lawrence, KS, 66049


More information about the Koha mailing list