@hdace Hi, I've been thinking about your request to associate an image with each lot, using an image extracted from an object in the batch, without having to do it by hand.
I saw on your site that you started doing it "by hand" and the result is superb! https://rchsdigitalcollections.epistrophypictures.com/index.php/Browse/lots
If you spend 2-3 minutes manually assigning an image for 666 batches, you will spend about 30 hours of work π
You can do this in several ways, more or less conventional.
The most conventional method would be to import from an Excel file that associates a lot identifier with a media identifier, if you already have this easy-to-create relationship... But this requires first doing an exportation of the listing of images' identifiers of the objects contained in each lot and sorting them to keep only one by lot.
The other less conventional method would be to create a script that executes a SQL query to retrieve the identifier of the first public image (or "primary") of the first public object that is in a lot, and to create a new row in the ca_object_lots_x_object_representations table, without going through the providence official tools... There is always a risk in wanting to tamper with the database, unless you make a backup copy just before, in case it goes wrong... (it should demand less than 30h of work, except in case of crash π)