Skip to content
PlayOwl
Money, shops & services · #493

How does a library track borrowed books?

Every book and every library card has its own number. A computer links them when you borrow, and unlinks them when you return.

The big idea: When you borrow, the computer joins your card number to the book's number and sets a due date. When you return the book, it removes the link and the book is free again.

Start exploring
0 of 5 parts done
A child scans a library book at a self-check desk beside a bookcase, How Things Work poster
1Watch it

How the library keeps track

  1. A library lends thousands of books to thousands of people. Mina wants the dinosaur book. How will the library remember that she is the one who has it?
  2. Inside each book is a label with its own number. No other book has that number. Mina's library card has a number of its own too.
  3. Mina scans her card, then the book. The computer joins the two numbers. Now the catalog says: dinosaur book, on loan to Mina.
  4. The computer counts forward from today, here fourteen days, and saves that date with the loan. It is the due date: the day the book should come back.
  5. When Mina slides the book into the return slot, a scanner reads its label again. The computer removes the link to Mina. The book is marked as back.
  6. A mark on the book's spine says where it lives on the shelf. Back it goes, so the next reader can find it. Now Theo borrows it, and the record changes again.
2Look inside

The tools that track a book

Tap each thing to see its job in borrowing and returning.

  • Library card. Your library card carries your member number. Scanning it tells the computer who is borrowing.
  • Book label. A label with the book's own number, as stripes or as a tiny radio tag. No two books in the library share a number.
  • Scanner. The scanner reads the card and the book label and sends the two numbers to the computer.
  • Catalog. The catalog is the library's list of every book: is it on the shelf or on loan, and when is it due back?
  • Due date slip. A slip or a stamp that tells you the due date, so you do not have to remember it.
  • Return slot. Books go back through this slot. A scanner inside reads each label and marks the book as returned.
  • Shelf mark. A letter or number on the spine that matches a place on the shelves, so every book has a home and can be found again.
3Try it

Borrow, return and watch the catalog

Tap a child to choose who is borrowing, then tap a book. Tap a borrowed book to return it. Watch the catalog rows change each time.

Experiment: Mina has borrowed a book. Theo asks for the same one. What does the catalog do?

  1. Tap Mina, then tap a book. Read its catalog row.
  2. Tap Theo, then tap the empty space where that book was.
  3. Tap the book in front of Mina to return it, and read the row again.

What we found: One book can only be in one place. The catalog shows it is on loan and gives the due date, so Theo knows when to come back. When the book is returned, the row is cleared and the book is free again.

Turn on JavaScript to try it yourself.

4Solve a challenge

Run the library desk

Lend the right books, put a returned book back in the right place, and use the catalog to answer a question.

5Go deeper

How a library tracks its books

A library has a problem that a shop does not have. A shop sells a thing once and it is gone. A library lends the same book again and again, and it needs every book to come home. So it has to remember exactly who has each one.

The trick is numbers. Every single book has a label with its own number, and every member has a card with their own number. When you borrow, a scanner reads both. The library's computer writes a small note: this book is with this member, and it is due back on this date.

The due date is easy for a computer to work out. It takes today's date and counts forward by the loan period, often two or three weeks. Each day it can check all the notes and see which books are due soon or late, and send a friendly reminder.

When you return the book, it is scanned again and the note is removed. The catalog now shows the book as in. If someone else asked for it while it was out, the computer saves it for them. A mark on the spine shows where the book lives, so it goes back to the same spot every time. The sign-out sheet comparison is not perfect: a paper sheet has to be read by a person, but the library's computer can search millions of notes in a moment.

Key words

Catalog
The library's searchable list of everything it owns, showing where each item is and whether it is available.
Loan
Borrowing: the library's note that a book is with a member until its due date.
Due date
The day a borrowed item should be returned: the day it was borrowed plus the loan period.
Hold
A request to be next in line for an item that someone else has borrowed.
Shelf mark
The letters or numbers on a book's spine that show where it belongs on the shelves.
Database
An organized collection of records that a computer can search and update.

Check your thinking

  1. What two things does the library scan when you borrow a book?

    Show the answer

    Your library card and the book's label. The card says who you are and the label says which book it is. The computer joins the two.

  2. You return a book. What happens to its row in the catalog?

    Show the answer

    Your name is removed and the book shows as in. The book stays in the catalog. Only the link to you is removed, so the next reader can borrow it.

  3. Today is day 5 and books are lent for 14 days. When is a book borrowed today due back?

    Show the answer

    Day 19. 5 plus 14 is 19. The computer counts forward from today.

  4. Why does every book in a library need a different number, when every carton of the same milk in a shop has the same barcode?

    Show the answer

    The library must know exactly which book each person has. A shop only needs to know what kind of thing was sold. A library needs each book back, so each one needs its own name.

  5. A returned book has a hold on it. What should the system do?

    Show the answer

    Send it to the hold shelf and tell the waiting member. The hold record means someone is next in line, so the book is saved for them.