Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Library Loans

The University library allows staff and students to locate and borrow books for pre-determined periods of time.


Testing

You are required to create the following accounts to allow the system to be tested. All accounts should have the password p455w0rd:

  1. student1
  2. student2
  3. librarian1
  4. librarian2

Stage 1

You will be developing a simple tool to allow libraries to track books borrowed by staff and students.This functionality will be used by the librarians.

Part 1

When a librarian logs in they should see an Add book link or button on the homepage. Clicking this takes them to the Add Book screen where they can add books to the library. This will ask for the following:

  1. The name of the book.
  2. The primary author.
  3. The ISBN-13 number.
  4. The quantity to add.

Each book should be added to its own record (so for example if there were three identical books there would need to be three records.

In addition to the data from the form, the following extra information needs to be added (without asking the user).

  1. The username of the librarian adding the books.
  2. The current date and time.
  3. Each record also needs a unique hash (which is recorded in the book as a barcode).

Part 2

The librarian should also see a Checkout button or link. This takes them to the Book Borrowing screen. The librarian enters the username of the student in one field and the unique hash from the book being borrowed. Clicking on the Borrow buttom links the book hash to the student username.

Part 3

There needs to be another link or button labelled Return. This takes the librarian to a screen similar to the previous one except this will disassociate the book and the student indicating the book as been returned.


Stage 2

If a student logs onto the system they chould be able to see all the books they have currently borrowed. This should include:

  1. The name of the book.
  2. The date it was borrowed.
  3. When the book is due back (assume a 2 week loan period).
  4. If the book is overdue, by how many days.

If a librarian logs in, the home screen should list all the books current being borrowed and highlight any that are overdue.


Extras

Sensors

Rather than entering the ISBN numbers into the system manually use either a USB barcode scanner or a smartphone camera to scan the barcode on the back of the book.

Data

The Google Books API allows you to retrieve book data based in the ISBN number.