rero / rero-ils

Integrated Library System flavour of Invenio by RERO+.
http://ils.test.rero.ch
GNU Affero General Public License v3.0
73 stars 25 forks source link

Periodically delete orphan harvested documents #3776

Closed PascalRepond closed 2 days ago

PascalRepond commented 1 week ago

How it works

Bibliomedia batches are now harvested:true, but it prevents the document manual deletion when these batches are retracted and the item is returned.

Improvement suggestion

Add a periodic task that automatically deletes documents when they are harvested:true and are not linked to any other resource. Make sure that it does not delete ebooks; it shouldn't as they have holdings but no items.