Skip to content

rrpod/library_oodd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#LibSys : Library Management System

Preconfigured Admin Credentials:

  • First Name : Predefinedadmin
  • Last Name : Predefinedadmin
  • Email : admin@email.com
  • Password : admin123

Without Logging In : The root URL of the application shows the list of books in the system by default and has the following contents:

  • On clicking on the, List of Books button, in the top portion of the screen, shows the list of books.
  • The user is also able to search for books based on ISBN or title or author or description or status and just view the book details.
  • Login button is provided where user has to enter email ID and password to login to the application.
  • Sign Up button is provided which asks for user's First Name(maximum length 50), Last Name(maximum length 50), email ID, Password(Minimum length 6) and Password Confirmation(Minimum length 6).
    • If any of the above field length requirements are violated and 'Sign Up' button is clicked, the system does not add the user to the system.
    • Otherwise, on clicking on 'Sign Up' the user gets added to the system as a member.

Login as ADMIN:

  • Edit her/his profile details: On successful login, Edit profile option is available in the drop down on clicking on the email ID displayed in the top right portion of the screen.
    • A form is displayed with First Name(maximum length 50), Last Name(maximum length 50), email ID(Not editable), Password(Minimum length 6) and Password Confirmation(Minimum length 6).
    • If any of the above field length requirements are violated and 'Update Profile' button is clicked, the system throws an error 'could not update profile' and new admin is not created.

Manage admins

  • Create new admins: This functionality is available in the 'Manage Admins' drop down list as 'Create New Admin' list item.
    • A form is displayed with First Name(maximum length 50), Last Name(maximum length 50), email ID(Not editable), Password(Minimum length 6) and Password Confirmation(Minimum length 6).
    • If any of the above field length requirements are violated and 'Create Admin' button is clicked, the system throws an error 'could not update profile' and new admin is not created.
  • View the list of all the admins and their profile details (except password) : Click on Manage Admins > View All Admins
  • Delete admins (except herself/himself and the pre-configured Admin) : Click on Manage Admins > View All Admins >Delete option in last table column

Manage books :

  • Add a book to the system: Click on 'New Book' button on top portion of the screen. Be sure to add a unique ISBN number.
  • View the list of all the books: Click on 'List of Books' button on top portion of the screen
  • View the details of a book: Click on 'List of Books' button on top portion of the screen shows the details of books.
  • Edit the details of a book: Click on 'List of Books' button on top portion of the screen shows a table in which the last column has Edit button.
  • Admin can also change the status of a book on behalf of user: Steps:
    • Click on 'List of Books' button on top portion of the screen
    • If book is available admin is given a drop down list of all member email ids
    • Select specific email ID to checkout the book for > Click on 'Checkout' Button
    • Dialog box pops up asking for confirmation Yes/No
    • If Yes is clicked the book is checked out to the selected user
  • View the checkout history of a book: Click on 'List of Books' button on top portion of the screen shows a table in which the last column has 'View Checkout History' button.
  • Delete a book from the system: Click on 'List of Books' button on top portion of the screen shows a table in which the last column has 'Delete' button.

Manage Library Members

  • View the list of all the library members and their profile details (except password): Click on Manage Users > View All Users
  • View the checkout history of a library member: Click on Checkout History Button on top portion of the screen > Enter email ID os the user > Click on Search
  • Delete a library member: Click on Manage Users > View All Users > Delete button in the last column

Login as LIBRARY MEMBER

  • Edit her/his profile details: On successful login, Edit profile option is available in the drop down on clicking on the email ID displayed in the top right portion of the screen. A form is displayed with First Name(maximum length 50), Last Name(maximum length 50), email ID(Not editable), Password(Minimum length 6) and Password Confirmation(Minimum length 6). If any of the above field length requirements are violated and 'Update Profile' button is clicked, the system throws an error 'could not update profile' and new admin is not created.
  • Search books using ISBN or title or author or description or status: Search box is on the top portion of the screen.
  • View the details of a book: When user logs in book details are populated by default. They can also be searched in the search box.
  • Check out a book if its status is ‘Available': Click on List of Books > Action column of the table > Checkout Button > User still remains on the List of Books page > Return option becomes available
  • Return her/his checked out book: Click on List of Books > Action column of the table > Return Button for books whose status is checked out> User is redirected to Checkout History of User page and the details of returned book are visible in the history.
  • View own checkout history: Click on 'Checkout History' button on the top portion of the screen.

Special Test Cases

  • Admin tries to delete a book which is checkout by any library member : system gives an error message "Book has not been returned"
  • Admin tries to delete a member who has a book checked out : system gives an error "Cannot Delete. User has a book to return!"
  • Admin cannot delete itself : The table shows 'Delete Not Applicable'
  • Admin cannot delete pre-configured admin : The table shows 'Delete Not Applicable'
  • First Name/Last Name field length cannot be greater than 50 : Creating member/admin is not allowed by the system. Error displayed "User could not be created. Please check the conditions for each field while creating new user."
  • Password length cannot be less than 6 : Creating user/admin is not allowed by the system. Error displayed "User could not be created. Please check the conditions for each field while creating new user."
  • First Name/Last Name field length cannot be greater than 50 : Updating member/admin is not allowed by the system. Error displayed "Could not update profile. Please check the conditions for each field while updating the user."
  • Password length cannot be less than 6 : Creating user/admin is not allowed by the system. Error displayed "User could not be created. Please check the conditions for each field while creating new user."
  • Password length cannot be less than 6 : Updating user/admin is not allowed by the system. Error displayed "Could not update profile. Please check the conditions for each field while updating the user."
  • Admin deletes a user not holding any book : System maintains the checkout history of the member for the book.
  • Admin deleted a book not checked out by a user : System maintains the checkout history of the book for the member.

Extra Credit Functionality

  • Suggest a book: The “Suggest Book” dropdown is provided for a library member on the top of the page. A library member can suggest a book with ISBN, Title, Author and Description fields. All suggestions can be viewed only by an admin, through the dropdown “Book Suggestions” on the top of the page. An admin can accept or decline the suggestions through the links provided for each and also can edit the book details from the “Update” link provided for each book in the “List of Books”.
  • Notify when book is available: In the List of Books page, the user can view a Link called Notify Me! if a particular book is not available. On clicking it, the user will be notified by email as soon as the book is available. (Please use a valid email Id to test this feature).

About

http://whispering-lowlands-4535.herokuapp.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages