Library Web Application
Preconfiged Admin: email: vramach@ncsu.edu, password: abcd
Home Page -> I am an admin -> login as the preconfiged admin -> back (this will goes to the List Admins page)
In the List Admins page -> New Admin
Note: Email mush be unique and in correct form.
In the List Admins page -> Member List -> New Member
Note: Email mush be unique and in correct form.
In the List Admins page -> Book List -> New Book
In the List Admins page -> Book List -> Borrow -> Enter member email -> checkout
In the List Admins page -> Member List -> Show (will also show a book list that the member checked out) -> Return
In the List Admins page -> Book List -> Show -> Checkout History
The checkout history is in the following format:
| Order | Member | Checkout Time | Return Time |
| ------ | -------- | --------------------------- | ------------------------- |
| 1 | David | 2015-09-25 22:42:26 -0400 | 2015-09-25 23:40:00 -0400 |
| 2 | Lisa | 2015-09-26 08:23:15 -0400 | - |
In the List Admins page -> Member List -> Show -> Checkout History
In the List Admins page -> Delete
In the List Admins page -> Member List -> Delete When a member is deleted, the checkout history of the books he's checked out shows his emailID as "Anonymous".
In the List Admins page -> Book List -> Delete When a Book is deleted, the checkout history of the members who've checked out the book remains unaffected.
Home Page -> Sign Up Now
Home Page -> I am an member -> login as a member (This will redirect to the List Books page)
In the List Books page -> Borrow -> click the Checkout Button.
In the List Books page -> View My Profile (will also show a checked out book list) -> Return
In the List Books page -> View My Profile (will also show a checked out book list) -> Checkout History
In the List Books page -> Enter any information about the book -> Click Search
rake test test/controllers/admins_controller_test.rb
rake test test/models/admin_test.rb
- Admin cannot delete a member if he/she is still holding a book.
- Admin cannot delete a book if the book status is checked out.
- The preadmin's profile cannot be altered. To test admin's editing function, please log in as normal admins.