[Evergreen-dev] Batch copy deletes

Josh Stompro stomproj at gsuite.larl.org
Thu Dec 19 13:54:07 EST 2024


We are using copy_delete_from_csv.pl from Jason Stephenson's
evergreen_utilites repo at
https://github.com/Dyrcona/evergreen_utilities

There is some setup to do that is described in the Readme for the repo if I
remember correctly.

You feed the script a list of copy barcodes in csv format.

cat copiestodelete.csv | ./copy_delete_from_csv.pl

There is also a script for deleting copies in a copy bucket there.  Might
be useful if you already have the copies in buckets.

The scripts do force deleting empty bibs, which works for us because we
have the system preference set to not do that by default.  (Our cataloger
will sometimes delete all the on order copies before adding the real copies
which would trigger the bib to be deleted if we had that preference set.)
We only want to delete empty bibs as part of our withdraw process.

It uses delete_copy from
https://gitlab.com/LARL/evergreen-larl/-/blob/main/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm#L547

Josh










On Wed, Dec 11, 2024 at 1:13 PM Tiffany Little via Evergreen-dev <
evergreen-dev at list.evergreen-ils.org> wrote:

> Good afternoon,
>
> I was working on a script, and then realized maybe I didn't need to
> reinvent the wheel on this. Does anyone have a script or process that they
> use for mass deleting copies?
>
> We have a library with 35K Discard/Weed copies that need to be deleted.
> Since the deletion needs to cascade to call number, bib, etc I wanted to
> make sure I was covering all my bases.
>
> Thanks!
> Tiffany
>
>
>
> [image: logo with link to Georgia Public Library Service website]
> <https://georgialibraries.org/>
>
> Tiffany Little
>
> *PINES Bibliographic Projects Manager*
>
> ------------------------------
>
> Georgia Public Library Service
>
> 2872 Woodcock Blvd, Suite 250 | Atlanta, GA 30341
>
> (404) 235-7161 | tlittle at georgialibraries.org
>
> [image: logo with link to Georgia Public Library Service Facebook page]
> <https://www.facebook.com/georgialibraries>[image: logo with link to
> Georgia Public Library Service Instagram page]
> <https://www.instagram.com/georgialibraries/>[image: logo with link to
> Georgia Public Library Service LinkedIn page]
> <https://www.linkedin.com/company/georgia-public-library-service/>[image:
> logo with link to Georgia Public Library Service Threads page]
> <https://www.threads.net/@georgialibraries>
>
> Join our email list <http://georgialibraries.org/subscription> for
> stories of Georgia libraries making an impact in our communities.
> _______________________________________________
> Evergreen-dev mailing list
> Evergreen-dev at list.evergreen-ils.org
> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-dev/attachments/20241219/328a4632/attachment.htm>


More information about the Evergreen-dev mailing list