new_books

+------------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+------+-----+-------------------+----------------+ | nbid | int(10) | NO | PRI | NULL | auto_increment | | sys_no | varchar(255) | NO | | | | | isbn | varchar(255) | NO | | | | | author | varchar(255) | NO | | | | | title | varchar(255) | NO | MUL | | | | call_num | varchar(255) | NO | | | | | class | varchar(1) | NO | | | | | added | timestamp | NO | | CURRENT_TIMESTAMP | | | up_to_date | int(1) | NO | | 1 | | +------------+--------------+------+-----+-------------------+----------------+

This table contains lists of books currently on the “Recent Acquisitions” shelf for use in generating the New Books page.

When Access Services puts out a fresh cart of books, they run the New Books update tool, which is only accessible from computers in the staff IP range. It does the follow:

  1. Marks the whole table as out of date (up_to_date field = 0)
  2. Grabs a list of all books currently on the shelf
  3. Adds any new ones
  4. Updates the entries for any still on the shelf (up_to_date field = 1)
  5. Deletes any entries whose up_to_date values is still 0 to prune out of date copies.