Batch processing (location)

Started by RobertG, 18 August 2026, 16:33:25

Previous topic - Next topic

RobertG

Hi,

I'm trying to reorganise my personal library by grouping books by author, and I'd like to specify their location on the shelves in Abook.

Apart from running complex SQL queries directly on the database to populate the idlocation field in the #__abbook table, is there a simpler solution? For example, I have 18 books by a particular author on the 'Office B2' shelf (ID 3), and I'd prefer not to have to edit all 18 books (my library currently contains 468).

Thank you for your advice.

RobertG

Hi,

I found how to select books, but how to update the idlocation field in the sql?
QuoteSELECT a.id, a.idlocation, b.idauth, b.idbook FROM t0dq9_abbook as a INNER JOIN t0dq9_abbookauth as b ON a.id = b.idbook WHERE b.idauth = 113 ORDER BY b.idbook asc;