Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 98

Software Requirements

Specification
for

>Library management system<

Version 1.0 approved

>Prepared by <Mohammed Hassan

>Super M soft for information technology <

>10-04-2019<
1. Introduction
The following section provides an overview the software requirements specifications
(SRS) for the library management system.

1.1 Purpose
The purpose of SRS is to determine both functional and non-functional requirements
of Library management system. Also the document provides as overall description
about the library management system with UML analysis models.

1.2 Scope
The Library management system is software which helps librarians to save books &
members data.
Also it will help the workers to know the borrowing details per day.

1.3 Actors including in the LMS:


Software admin Someone who responsible for maintain, update and
checking error of the software.
Member Someone who borrows books from library.
Author Someone who write books.
Publisher Someone who publish books to the library.
System user Someone who manage the system.

2. Overall Descriptions
2.1 Product perspective
The software described in this SRS is the software for a library system. The system merges
various hardware and software elements.

2.2 Product functions


System user will be able to save authors data to the system.

System user will be able to save publishers data to the system.

System user will be able to save members data to the system.

System user will be able to save books data to the system.

System user will be able to save borrowing data to the system.

System user will be able to save received books to the system.


2.3 User characteristics
System user will add, edit and delete authors, publishers, members and books data.

Also will be able to save borrowing and received books from members.

System admin will responsible for maintain, update and checking errors of the software.

2.4 Constraints
The software is constrained by the shared internet connection which should be reliable. Also
the capacity of the database, so it should have a big free space.

2.5 Assumptions and dependences


One assumption about the software is that it will always be used on desktop computers &
laptops so all the actors included in the software should be aware of the computers &
English language.
3. System Requirement Specification
3.3 Functional Requirements
This section Function Requirements contains the specification of functional requirement of
the system. Below tables are the lists of functional requirements.

3.3.1 Manage Shelves [MS]


Requirement ID Requirement Description
1- MS The system must allow the admin to “add” the
shelf description.
2- MS The system must allow the admin to “update” the
selected shelf description.
3- MS The system must allow the admin to “remove” the
selected shelf.
Table 1 Functional Requirement of Manage Shelves

3.3.2 Manage Categories [MC]


Requirement ID Requirement Description
1- MC The system must allow the admin to “add” the
category data.
2- MC The system must allow the admin to “update” the
selected category data.
3- MC The system must allow the admin to “remove” the
selected category.
Table 2 Functional Requirement of Manage Categories

3.3.3 Manage Publishers [MP]


Requirement ID Requirement Description
1- MP The system must allow the admin to “add” the
publisher data.
2- MP The system must allow the admin to “update” the
selected publisher data.
3- MP The system must allow the admin to “remove” the
selected publisher.
Table 3 Functional Requirement of Manage Publishers

3.3.4 Manage Authors [MA]


Requirement ID Requirement Description
1- MA The system must allow the admin to “add” the
author data.
2- MA The system must allow the admin to “update” the
selected author data.
3- MA The system must allow the admin to “remove” the
selected author.
Table 4 Functional Requirement of Manage Authors
3.3.5 Manage Books [MB]
Requirement ID Requirement Description
1- MB The system must allow the admin to “add” the
book data.
2- MB The system must allow the admin to “add” new
book quantity.
3- MB The system must allow the admin to “update” the
selected book data.
4- MB The system must allow the admin to “remove” the
selected book.
Table 5 Functional Requirement of Manage Books

3.3.6 Generate Books Requests and Returns [GBRR]


Requirement ID Requirement Description
1- GBRR The system must allow the admin to select member for
the book request and generate the orders according to
this member data.
2- GBRR The system must allow the admin to generate books
returns according to member data.
3- GBRR The system must allow the admin to “update” the
books requests.
Table 6 Functional Requirement of Generate Books Request

3.3.7 Manage Members [MM]


Requirement ID Requirement Description
1- MM The system must allow the admin to “add” the
member data.
2- MM The system must allow the admin to “update” the
selected member data.
3- MM The system must allow the admin to “remove” the
selected member.
Table 7 Functional Requirement of Manage Members

3.2 Non-Functional Requirements


Non-functional requirements are requirements that specify criteria of the developed
system. This can be used to judge the operation of the system, rather than specific
behaviors. This is contrasted with functional requirements that define the specific behaviors
or function of the system.
3.2.1 Performance Requirements
Requirement ID Requirement Description
1- PR The system must respond the business operation
in less than 3 seconds for user (admin).
2- PR The system should be compatible with all modern
browsers.
3- PR The system should response the operation
messages to the users within 2 seconds.
4- PR The system should be reliable.
Table 8 Performance Requirement of the system

3.2.2 Safety and Security Requirements


System cannot affect, harm, damage to user. It also cannot damage user’s computer while
accessing the system over a network.

Requirement ID Requirement Description


1- SSR The system must handle safe login and logout
through session.
2- SSR Hashing technology should be used to handle the
secure login for users.
3- SSR The database should be secured from SQL
injection to prevent leak or loss of information.
4- SSR The system could use SSL (Secure Socket Layer)
certificates to secure the data being transmitted.
Table 9 Safety and Security Requirements

3.2.3 Reliability
System should be designed in a modular manner to ease in software maintenance. By
designing modularly, we are able to reduce coupling allowing each module to perform a
specific function.

Requirement ID Requirement Description


1- R This program should be reliable and provide
catching of exceptions so that unintended results do
not occur such as system crashes, or data validation
failures.
Table 10 Reliability Requirements of the system

3.2.4 Other Software Quality Attributes


3.2.4.1 Usability

 The system should have user-friendly interface.


3.2.4.2 Availability
 The system must be available 24/7, with no more than 20 minutes down time
per day.
4. System Design
4.1 UML Diagram
For this project only 5 diagram of UML diagram will be used. They are Use Case,
Collaboration, Sequence, Activity, and Entity Relationship Diagram.

4.2 High Level Use Case Diagram of Library Management System

Add shelf Edit shelf


Add category
Login
Extend Extend Del. shelf
Extend
Edit category
Extend

Manage shelves Extend


Del. category

Extend

Add publisher
Manage Extend
categories
Edit publisher
Extend

Del. publisher
Manage Extend
publishers
Extend
Add author

Extend
Manage authors Edit author

Extend

Del. author Add book


Admin
Extend
Manage books Extend
.Add qty
Extend

Manage Extend
Edit book
members

Del. book
Generate Extend
books
Extend
requests and Add member
returns Extend
Gen. book request
Extend
Extend
Edit member
Extend
Gen. book return
Del. Member
Edit order data
Figure 1 High Level Use Case Diagram of Library Management
System
4.3 Login Dashboard
4.3.1 Use Case Diagram of Login

Login

include

Admin
Create session

Figure 2 Use Case Diagram of Login Dashboard

4.3.2 Collaboration Diagram of Login

Login collaboration diagram

Enter 1.0
username/password )(ValidateUser 1.1
Create 1.3
)admin, password( :LoginUI LoginController: )(Session
Validate response 1.1.1
DirectDashboard 1.4
ValidateUser(admin,Return
password) 1.2
true 1.2.1
Admin

Users:

Figure 3 Collaboration Diagram of Login


4.3.3 Sequence Diagram of Login

Login Sequence diagram

Admin LoginUI: LoginController: Users:

Enter username/password
)admin, password(
)(ValidateUser
ValidateUser(admin, password)

Return true

RedirectToDashboard )( Create session

Figure 4 Sequence Diagram of Login


4.3.4 Activity Diagram of Login

Login Activity Diagram

Admin System

Enter login data

No

Submit form
Validation

No

Yes
Valid User

Create user session

Display Dashboard

Figure 5 Activity Diagram of Login


4.4 Manage Shelves
4.4.1 Use Case Diagram of Manage Shelves

Add shelf
extend

extend Edit shelf

Manage shelves
extend
Del. shelf
Admin

Figure 6 Use Case Diagram of Manage Shelves

4.4.2 Collaboration Diagram of Manage Shelves


4.4.2.1 MS – 1 Add shelf Collaboration Diagram of Manage Shelves

MS – 1 Add shelf collaboration diagram

Enter shelf data 1.0 )(addShelf 1.1

:ShelfUI ShelfController:
Validation response 1.1.1
Success messages 1.3 )(addShelf 1.2Return true 1.2.1

Admin

Shelf:

Figure 7 Collaboration Diagram of Add Shelf


4.4.2.2 MS – 2 Edit shelf Collaboration Diagram of Manage Shelves

MS – 2 Edit shelf collaboration diagram

Select and update shelf data 1.0 )(updateShelf 1.1


:ShelfUI ShelfController:
Validation response 1.1.1 )(updateShelf 1.2
Return true 1.2.1
Success messages 1.3

Admin

Shelf:

Figure 8 Collaboration Diagram of Edit Shelf


4.4.2.3 MS – 3 Remove shelf Collaboration Diagram of Manage Shelves

MS – 3 Remove shelf collaboration diagram

Select and remove shelf 1.0 )(removeShelf 1.1


:ShelfUI ShelfController:
Return true 1.2
)(removeShelf 1.1.1
Success messages 1.2.1

Admin

Shelf:

Figure 8 Collaboration Diagram of Remove Shelf


4.4.3 Sequence Diagram of Manage Shelves
4.4.3.1 MS – 1 Add Shelf Sequence Diagram of Manage Shelves

MS – 1 Add shelf sequence diagram

Admin ShelfUI: ShelfController: Shelf:

Enter shelf data

)(addShelf

)(addShelf
Validation Response
Return true

Success Messages

Figure 9 Collaboration Diagram of Add Shelf


4.4.3.2 MS – 2 Edit Shelf Sequence Diagram of Manage Shelves

MS – 2 Edit shelf sequence diagram

Admin ShelfUI: ShelfController: Shelf:

Select and enter shelf data

)(updateShelf

)(updateShelf
Validation Response
Return true

Success Messages

Figure 10 Collaboration Diagram of Edit Shelf


4.4.3.3 MS – 3 Remove Shelf Sequence Diagram of Manage Shelves

MS – 3 Remove shelf sequence diagram

Admin ShelfUI: ShelfController: Shelf:

Select and remove shelf

)(removeShelf

)(removeShelf

Return true

Success Messages

Figure 11 Collaboration Diagram of Remove Shelf


4.4.4 Activity Diagram of Manage Shelves
4.4.4.1 MS – 1 Add Shelf Activity Diagram of Manage Shelves

MS -1 Add shelf Activity Diagram

Admin System

Enter shelf data

No
Submit form
Validation

Yes

Add shelf

Display success messages

Figure 12 Activity Diagram of Add Shelf


4.4.4.2 MS – 2 Edit Shelf Activity Diagram of Manage Shelves

MS -2 Edit shelf Activity Diagram

Admin System

Select shelf

Enter shelf details


No

Submit form Validation

Yes

Update shelf

Display success messages

Figure 13 Activity Diagram of Edit Shelf


4.4.4.3 MS – 3 Remove Shelf Activity Diagram of Manage Shelves

MS -3 Remove shelf Activity Diagram

Admin System

Select shelf

Click remove button

Remove shelf

Display success messages

Figure 14 Activity Diagram of Remove Shelf

4.5 Manage Categories


4.5.1 Use Case Diagram of Manage Categories

Add category
extend

extend Edit category

Manage
Categories
extend
Del. category
Admin

Figure 15 Use Case Diagram of Manage Categories

3.5.2 Collaboration Diagram of Manage Categories


3.5.2.1 MC – 1 Add category Collaboration Diagram of Manage Categories

MC – 1 Add category collaboration diagram

Enter category data 1.0 )(addCategory 1.1

:CategoryUI CategoryController:
Validation response 1.1.1
Return true 1.2.1
)(addCategory 1.2
Success messages 1.3

Admin

Category:

Figure 16 Collaboration Diagram of Add Category

3.5.2.2 MC – 2 Edit Category Collaboration Diagram of Manage Categories


MC – 2 Edit category collaboration diagram

Select and update category 1.0


data )(updateCategory 1.1
:CategoryUI CategoryController:
Validation response 1.1.1 )(updateCategoryReturn
1.2 true 1.2.1
Success messages 1.3

Admin

Category:

Figure 17 Collaboration Diagram of Edit Category

3.5.2.3 MC– 3 Remove category Collaboration Diagram of Manage Categories


MC – 3 Remove Category collaboration diagram

Select and remove category 1.0 )(removeCategory 1.1


CategoryController:
Return true 1.2
)(removeCategory 1.1.1
Success messages 1.2.1

Figure 18 Collaboration Diagram of Remove Category


3.5.3 Sequence Diagram of Manage Categories
3.5.3.1 MC – 1 Add Category Sequence Diagram of Manage Categories

MC – 1 Add category sequence diagram

Admin CategoryUI: categoryController: Category:

Enter category data

)(addCategory

)(addCategory
Validation Response
Return true

Success Messages

Figure 19 Collaboration Diagram of Add Category


3.5.3.2 MC – 2 Edit Category Sequence Diagram of Manage Categories

MC – 2 Edit category sequence diagram

Admin CategoryUI: CategoryController: Category:

Select and enter category


data

)(updateCategory

)(updateCategory
Validation Response
Return true

Success Messages

Figure 20 Collaboration Diagram of Edit Category


3.5.3.3 MC – 3 Remove Category Sequence Diagram of Manage Categories

MC – 3 Remove category sequence diagram

Admin CategoryUI: CategoryController: Category:

Select and remove category

)(removeCategory

)(removeCategory

Return true

Success Messages

Figure 21 Collaboration Diagram of Remove category


3.5.4 Activity Diagram of Manage Categories
3.5.4.1 MC – 1 Add Category Activity Diagram of Manage Categories

MC -1 Add category Activity Diagram

Admin System

Enter category data

No
Submit form
Validation

Yes

Add category

Display success messages

Figure 22 Activity Diagram of Add Category


3.5.4.2 MC – 2 Edit Category Activity Diagram of Manage Categories

MC -2 Edit category Activity Diagram

Admin System

Select category

Enter category details


No

Submit form Validation

Yes

Update category

Display success messages

Figure 23 Activity Diagram of Edit Category


3.5.4.3 MC – 3 Remove Category Activity Diagram of Manage Categories

MC -3 Remove category Activity Diagram

Admin System

Select category

Click remove button

Remove category

Display success messages

Figure 24 Activity Diagram of Remove Category

4.6 Manage Publishers


4.6.1Use Case Diagram of Manage Publishers

Add publisher
extend

extend Edit publisher

Manage
Publisher
extend
Del. publisher
Admin

Figure 25 Use Case Diagram of Manage Publishers

4.6.2 Collaboration Diagram of Manage Publishers


4.6.2.1 MP – 1 Add publisher Collaboration Diagram of Manage Publishers

MP – 1 Add publisher collaboration diagram

Enter publisher data 1.0 )(addPublisher 1.1

:CategoryUI PublisherController:
Validation response 1.1.1
Return true 1.2.1
)(addPublisher 1.2
Success messages 1.3

Admin

Publisher:

Figure 26 Collaboration Diagram of Add Publisher

4.6.2.2 MP – 2 Edit Publisher Collaboration Diagram of Manage publishers


PC – 2 Edit publisher collaboration diagram

Select and update publisher 1.0


data )(updatePublisher 1.1
:PublisherUI PublisherController:
Validation response 1.1.1)(updatePublisherReturn
1.2 true 1.2.1
Success messages 1.3

Admin

Publisher:

Figure 27 Collaboration Diagram of Edit Publisher

4.6.2.3 MP– 3 Remove publisher Collaboration Diagram of Manage Publishers


MP – 3 Remove Publisher collaboration diagram

Select and remove publisher 1.0 )(removePublisher 1.1


PublisherController:
Return true 1.2
)(removePublisher 1.1.1
Success messages 1.2.1

Figure 28 Collaboration Diagram of Remove Publisher


4.6.3 Sequence Diagram of Manage Publishers
4.6.3.1 MP – 1 Add Publisher Sequence Diagram of Manage Publishers

MP – 1 Add publisher sequence diagram

Admin publisherUI: publisherController: Publisher:

Enter publisher data

)(addPublisher

)(addPublisher
Validation Response
Return true

Success Messages

Figure 29 Collaboration Diagram of Add Publisher


4.6.3.2 MP – 2 Edit Publisher Sequence Diagram of Manage Publishers

MP – 2 Edit publisher sequence diagram

Admin PublisherUI: PublisherCategory: Publisher:

Select and enter publisher


data

)(updatePublisher

)(updatePublisher
Validation Response
Return true

Success Messages

Figure 30 Collaboration Diagram of Edit Publisher


4.6.3.2 MP – 3 Remove Publisher Sequence Diagram of Manage Publishers

MP – 3 Remove publisher sequence diagram

Admin PublisherUI: PublisherController: Publisher:

Select and remove publisher

)(removePublisher

)(removePublisher

Return true

Success Messages

Figure 31 Collaboration Diagram of Remove publisher


4.6.4 Activity Diagram of Manage Publishers
4.6.4.1 MP – 1 Add Publisher Activity Diagram of Manage Publishers

MP -1 Add publisher Activity Diagram

Admin System

Enter publisher data

No
Submit form
Validation

Yes

Add publisher

Display success messages

Figure 32 Activity Diagram of Add Publisher


4.6.4.2 MP – 2 Edit Publisher Activity Diagram of Manage Publishers

MP -2 Edit publisher Activity Diagram

Admin System

Select publisher

Enter publisher details


No

Submit form Validation

Yes

Update publisher

Display success messages

Figure 33 Activity Diagram of Edit Publisher


4.6.4.3 MP – 3 Remove Publisher Activity Diagram of Manage Publishers

MP -3 Remove publisher Activity Diagram

Admin System

Select publisher

Click remove button

Remove publisher

Display success messages

Figure 34 Activity Diagram of Remove Publisher

4.7Manage Authors
4.7.1 Use Case Diagram of Manage Authors

Add author
extend

extend Edit author

Manage Author
extend
Del. author
Admin

Figure 35 Use Case Diagram of Manage Authors

3.7.2 Collaboration Diagram of Manage Authors


3.7.2.1 MA – 1 Add author Collaboration Diagram of Manage Authors

MA – 1 Add author collaboration diagram

Enter author data 1.0 )(addAuthor 1.1

:AuthprUI AuthorController:
Validation response 1.1.1
Return true 1.2.1
)(addAuthor 1.2
Success messages 1.3

Admin

Author:

Figure 36 Collaboration Diagram of Add Author

3.7.2.2 MA – 2 Edit Author Collaboration Diagram of Manage authors


MA – 2 Edit author collaboration diagram

Select and update author data 1.0


)(updateAuthor 1.1
:AuthorUI AuthorController:
Validation response 1.1.1 )(updateAuthor Return
1.2 true 1.2.1
Success messages 1.3

Admin

Author:

Figure 37 Collaboration Diagram of Edit Author

4.7.2.3 MA– 3 Remove author Collaboration Diagram of Manage Authors


MA – 3 Remove Author collaboration diagram

Select and remove author 1.0 )(removeAuthor 1.1


AuthorController:
Return true 1.2
)(removeAuthor 1.1.1
Success messages 1.2.1

Figure 38 Collaboration Diagram of Remove Author


4.7.5 Sequence Diagram of Manage Publishers
4.7.5.1 MA – 1 Add Author Sequence Diagram of Manage Authors

MA – 1 Add author sequence diagram

Admin authorUI: authorController: Author:

Enter author data

)(addAuthor

)(addAuthor
Validation Response
Return true

Success Messages

Figure 39 Collaboration Diagram of Add Author


4.7.3.2 MA – 2 Edit Author Sequence Diagram of Manage Authors

MA – 2 Edit author sequence diagram

Admin AuthorUI: AuthorController: Author:

Select and enter author data

)(updateAuthor

)(updateAuthor
Validation Response
Return true

Success Messages

Figure 40 Collaboration Diagram of Edit Author


4.7.3.2 MA – 3 Remove Author Sequence Diagram of Manage Authors

MA – 3 Remove author sequence diagram

Admin authorUI: AuthorController: Author:

Select and remove author

)(removeAuthor

)(removeAuthor

Return true

Success Messages

Figure 41 Collaboration Diagram of Remove author


4.7.4 Activity Diagram of Manage Authors
4.7.4.1 MA – 1 Add Author Activity Diagram of Manage Authors

MA -1 Add author Activity Diagram

Admin System

Enter author data

No
Submit form
Validation

Yes

Add author

Display success messages

Figure 42 Activity Diagram of Add Author


4.7.4.2 MA – 2 Edit Author Activity Diagram of Manage Authors

MA -2 Edit author Activity Diagram

Admin System

Select author

Enter author details


No

Submit form Validation

Yes

Update author

Display success messages

Figure 43 Activity Diagram of Edit Author


4.7.4.3 MA – 3 Remove Author Activity Diagram of Manage Authors

MA -3 Remove author Activity Diagram

Admin System

Select author

Click remove button

Remove author

Display success messages

Figure 44 Activity Diagram of Remove Author

4.8Manage Members
4.8.1 Use Case Diagram of Manage Members

Add member
extend

extend Edit member

Manage Member
extend
Del. member
Admin

Figure 45 Use Case Diagram of Manage Member

4.8.2 Collaboration Diagram of Manage Members


4.8.2.1 MM – 1 Add member Collaboration Diagram of Manage Members

MM – 1 Add member collaboration diagram

Enter member data 1.0 )(addMember 1.1

:MemberUI MemberController:
Validation response 1.1.1
Return true 1.2.1
)(addMember 1.2
Success messages 1.3

Admin

Member:

Figure 46 Collaboration Diagram of Add Member

4.8.2.2 MP – 2 Edit Member Collaboration Diagram of Manage members


MM – 2 Edit member collaboration diagram

Select and update member 1.0


data )(updateMember 1.1
:MemberUI MemberController:
Validation response 1.1.1 )(updateMemberReturn
1.2 true 1.2.1
Success messages 1.3

Admin

Member:

Figure 47 Collaboration Diagram of Edit Member

4.8.2.3 MM– 3 Remove member Collaboration Diagram of Manage Member


MM – 3 Remove Member collaboration diagram

Select and remove member 1.0 )(removeAuthor 1.1


MemberController:
Return true 1.2
)(removeAuthor 1.1.1
Success messages 1.2.1

Figure 48 Collaboration Diagram of Remove Member


4.8.3 Sequence Diagram of Manage Members
4.8.3.1 MM – 1 Add Member Sequence Diagram of Manage Members

MM – 1 Add member sequence diagram

Admin MemberUI: MemberController: Member:

Enter member data

)(addMember

)(addMember
Validation Response
Return true

Success Messages

Figure 49 Collaboration Diagram of Add Member


4.8.3.2 MM – 2 Edit Member Sequence Diagram of Manage Members

MM – 2 Edit member sequence diagram

Admin MemberUI: MemberController: Member:

Select and enter member


data

)(updateMember

)(updateMember
Validation Response
Return true

Success Messages

Figure 50 Collaboration Diagram of Edit Member


4.8.3.3 MM – 3 Remove Member Sequence Diagram of Manage Members

MM – 3 Remove member sequence diagram

Admin MemberUI: MemberController: Member:

Select and remove member

)(removeMember

)(removeMember

Return true

Success Messages

Figure 51 Collaboration Diagram of Remove member


4.8.4 Activity Diagram of Manage Members
4.8.4.1 MM – 1 Add Member Activity Diagram of Manage Members

MM -1 Add member Activity Diagram

Admin System

Enter member data

No
Submit form
Validation

Yes

Add member

Display success messages

Figure 52 Activity Diagram of Add Member


4.8.4.2 MM – 2 Edit Member Activity Diagram of Manage Members

MM -2 Edit member Activity Diagram

Admin System

Select member

Enter member details


No

Submit form Validation

Yes

Update member

Display success messages

Figure 53 Activity Diagram of Edit Member


4.8.4.3 MM – 3 Remove Member Activity Diagram of Manage Members

MM -3 Remove member Activity Diagram

Admin System

Select member

Click remove button

Remove member

Display success messages

Figure 54 Activity Diagram of Remove Member

4.9 Manage Books


4.9.1 Use Case Diagram of Manage Books

Add book

extend extend .Add Qty

extend Edit book

Manage Book
extend
Del. book
Admin

Figure 55 Use Case Diagram of Manage Book

4.9.2 Collaboration Diagram of Manage Books


4.9.2.1 MB – 1 Add book Collaboration Diagram of Manage Books

MB – 1 Add book collaboration diagram

.Enter book qty 2.0 )(addQty 2.1


Enter book data 1.0 )(addBook 1.1

:BookUI BookController:
Validation response 1.1.1
)(addQty Return
2.2 1.2
)(addBook truetrue
Return 1.2.1
2.2.1
Success messages 1.3

Success messages 2.3


Admin

Book:

Figure 56 Collaboration Diagram of Add Book

4.9.2.2 MB – 2 Edit Book Collaboration Diagram of Manage books


MB – 2 Edit book collaboration diagram

Select and update book data 1.0


)(updateBook 1.1
:BookUI BookController:
Validation response 1.1.1 )(updateBook 1.2
Return true 1.2.1
Success messages 1.3

Admin

Book:

Figure 57 Collaboration Diagram of Edit Book

4.9.2.3 MB– 3 Remove book Collaboration Diagram of Manage Book


MB – 3 Remove Book collaboration diagram

Select and remove book 1.0 )(removeBook 1.1


BookController:
Return true 1.2
)(removeBook 1.1.1
Success messages 1.2.1

Figure 58 Collaboration Diagram of Remove Book


4.9.3 Sequence Diagram of Manage Books
4.9.3.1 MB – 1 Add Book Sequence Diagram of Manage Books

MB – 1 Add book sequence diagram

Admin BookUI: BookController: Book:

Enter book data


.Enter book qty )(addBook

)(addQty
)(addBook
Validation Response
a )(addQty

Return true

Success Messages

Figure 59 Collaboration Diagram of Add Book


4.9.3.2 MB – 2 Edit Book Sequence Diagram of Manage Books

MB – 2 Edit book sequence diagram

Admin BookUI: BookController: Book:

Select and enter book data

)(updateBook

)(updateBook
Validation Response
Return true

Success Messages

Figure 60 Collaboration Diagram of Edit Book


4.9.3.3 MB – 3 Remove Book Sequence Diagram of Manage Books

MB – 3 Remove book sequence diagram

Admin BookUI: BookController: Book:

Select and remove book

)(removeBook

)(removeBook

Return true

Success Messages

Figure 61 Collaboration Diagram of Remove book


4.9.4 Activity Diagram of Manage Books
4.9.4.1 MB – 1 Add Book Activity Diagram of Manage Books

MB -1 Add book Activity Diagram

Admin System

Enter book data

No
Submit form
Validation

Yes

Add book

Display success messages

Figure 62 Activity Diagram of Add Book


4.9.4.2 MB – 2 Edit Book Activity Diagram of Manage Books

MB -2 Edit book Activity Diagram

Admin System

Select book

Enter book details


No

Submit form Validation

Yes

Update book

Display success messages

Figure 63 Activity Diagram of Edit Book


4.9.4.3 MB – 3 Remove Book Activity Diagram of Manage Books

MB -3 Remove book Activity Diagram

Admin System

Select book

Click remove button

Remove book

Display success messages

Figure 64 Activity Diagram of Remove Book

4.10 Generate Books Requests and Returns


4.10.1 Use Case Diagram of Generate Books Requests and Returns

extend Gen. book request

Generate
books
requests and extend
returns Gen. book return
Admin

extend

Edit order data

Figure 65 Use Case Diagram of Generate Books Requests and Returns

4.10.2 Collaboration Diagram of Generate Books Requests and Returns


4.10.2.1 GBRR – 1 Gen. book request Collaboration Diagram of Generate Books
Requests

GBRR – 1 Generate books requests collaboration diagram

Select member & books 1.0 )(addRequest 1.1

Gen.B.R.UI Gen.B.R.Controller:
Validation response 1.1.1
Return true 1.2.1
)(addRequest 1.2
Success messages 1.3

Admin

Gen.B.R.R:

Figure 66 Collaboration Diagram of Gen. Books Requests


4.10.2.2 EOD – 2 Edit Gen. books requests Collaboration Diagram of Generate books
requests and returns

EOD – 2 Edit order data collaboration diagram

Select and update request data 1.0 )(updateRequest 1.1


:Gen.B.R.UI Gen.B.R.Controller:
Validation response 1.1.1 )(updateRequestReturn
1.2 true 1.2.1
Success messages 1.3

Admin

Gen.B.R:

Figure 67 Collaboration Diagram of Edit order data


4.10.2.3 GBRR– 3 Generate books returns Collaboration Diagram of Generate Books
requests and returns

GBR – 3 Generate books returns collaboration diagram

Select member request 1.0 )(returnBook 1.1


:Gen.B.R.R.UI Gen.B.R.Controller:
Return true 1.2
)(returnBook 1.1.1
Success messages 1.2.1

Admin

Gen.B.R:

Figure 68 Collaboration Diagram of Generate books returns


4.10.3 Sequence Diagram of Generate Books Requests and Returns
4.10.3.1 GBR – 1 Generate. Books Request Sequence Diagram of Generate
Books Requests and Returns

GBR – 1 Generate books requests sequence diagram

Admin GenBRUI: GenBRController: GenBR:

Select member & books

)(addRequest

)(addRequest
Validation Response
Return true

Success Messages

Figure 69 Collaboration Diagram of Generate Books Requests


4.10.3.2 GBR – 2 Generate books returns Sequence Diagram of Generate
books requests and returns

GBR – 2 Generate books returns sequence diagram

Admin Gen.B.R.UI: Gen.B.R.Controller: Gen.B.R:

Select member request

)(addReturn

)(addReturn
Validation Response
Return true

Success Messages

Figure 70 Collaboration Diagram of Generate books returns


4.10.3.3 EOD – 3 Edit order data Sequence Diagram of Generate books
requests and returns

EOD – 3 Edit order data sequence diagram

Admin Gen.B.R.UI: Gen.B.R.Controller: Gen.B.R:

Select and edit order

)(editOrder

Validation response )(editOrder

Return true

Success Messages

Figure 71 Collaboration Diagram of Edit order data


4.10.4 Activity Diagram of Generate Books Requests and Returns
4.10.4.1 GBR – 1 Generate books requests Activity Diagram of Generate books
requests and returns

GBR -1 Generate books request Activity Diagram

Admin System

Select member & books

No
Submit form
Validation

Yes

Add request

Display success messages

Figure 72 Activity Diagram of Generate books requests


4.10.4.2 GBR – 2 Generate books returns Activity Diagram of Generate books
requests and returns

GBR -2 Generate books returns Activity Diagram

Admin System

Select member request

Add Return
No

Submit form Validation

Yes

Display success messages

Figure 73 Activity Diagram of Generate books returns


4.10.4.3 EOD – 3 Edit order data Activity Diagram of Generate books requests
and returns

EOD -3 Edit order data Activity Diagram

Admin System

Select order

Enter details
No

Submit form Validation

Yes

Update order

Display success messages

Figure 74 Activity Diagram of Edit order data


4.11 Entity Relationship Diagram
4.11.1 List of Entities
There are 12 entities used in this system. All entities are listed below:

Authors Books

Book_Categories
Book_Authors

Borrows
Book_Counts

Borrowed_Books Publishers

Users
Categories

Shelves

Figure 8 List of Entities


4.11.2 Relationship with Entities
:The figures below shows the relationship between the entities

4.11.2.1 Books – Publishers

Books belongs Publishers

Figure 9 Books - Publishers Entity Relationship

 Books have one publisher


 One Book has One Publisher

4.11.2.2 Books – Categories

Book_Categories Books
has

Figure 77 Books - Categories Entity Relationship

 Books have one Book Category


 One Book Category have Many Books

4.11.2.3 Books – Authors

Book_Authors has Books

Figure 78 Books – Books_Authors Entity Relationship

 Books have one Book Author


 One Book Author have Many Books

4.11.2.4 Books – Authors

Authors has Books

Figure 79 Books - Authors Entity Relationship

 Books have many Authors


 One Author has Many B
4.11.2.5 Books – Categories

Categories has Books

Figure 80 Books - Categories Entity Relationship

 Books have many Categories


 One Category has Many Categories

4.11.2.6Books – Counts

Counts has Books

Figure 81 Books - Counts Entity Relationship

 Books have one Count


 One Count have Many Books

4.11.2.7Books – Borrowed

Borrowed_Books has Books

Figure 82 Books – Borrowed_Books Entity Relationship

 Books have one Borrowed Books


 One Borrowed Book has Many Books

4.11.2.8 Users– Borrows

Users belongs Borrows

Figure 84 Users - Borrows Entity Relationship

 User has one Borrow


 One Borrow has One User

4.11.2.9 Borrow – Borrowed Books

Borrowed_Books has Borrow


Figure 82 Borrow – Borrowed_Books Entity Relationship

 Borrow have one Borrowed Books


 One Borrowed Book has Many Borrow

4.11.2.11 Borrow – Books

Books has Borrow

Figure 83 Borrow - Books Entity Relationship

 Borrows have many Books


 One Book has Many Borrws

4.11.2.12Borrowed Books– Borrows

Borrowed Books belongs Borrows

Figure 84 Borrowed Book - Borrows Entity Relationship

 Borrowed Book has one Borrow


 One Borrow has One Borrowed Book

4.11.2.13Borrowed Books– Books

Borrowed_Books belongs Books

Figure 85 Borrowed_Book - Borrows Entity Relationship

 Borrowed Book has one Book


 One Book has One Borrowed Book

4.11.2.14Categories – Shelves

Categories belongs Shelves

Figure 86 Categories - Shelves Entity Relationship

 Category has one Shelf


 One Shelf has One Category

Figure 87 Entity Relationship Diagram ERD

4.11.3 Data Dictionary

4.11.3.1 Table: Authors


Column Type Null Default Comments MIME
id INT No
name VARCHAR(191) No
Table 2 Table: Authors

4.11.3.2 Table: Books


Column Type Null Default Comments MIME
id INT No
title VARCHAR(191) No
isbn VARCHAR(191) No
edition VARCHAR(191) No
volume VARCHAR(191) Yes
issue VARCHAR(191) Yes
Publisher_id INT No
cover VARCHAR(191) Yes
Table 12 Table: Books

4.11.3.3 Table: Book_Authors


Column Type Null Default Comments MIME
id INT No
Book_id INT No
Author_id INT No
Table 13 Table: Book_Authors

4.11.3.4 Table: Book_Categories


Column Type Null Default Comments MIME
id INT No
Book_id INT No
Category_id INT No
Table 14 Table: Book_Categories

4.11.3.5 Table: Book_Counts


Column Type Null Default Comments MIME
id INT No
Book_id INT No
Quantity INT Yes
Table 15 Table: Book_Counts
4.11.3.6 Table: Borrowed_Books
Column Type Null Default Comments MIME
id INT No
borrow_id INT No
book_id INT Yes
Table 16 Table: Borrowed_Books

4.11.3.7 Table: Borrow


Column Type Null Default Comments MIME
id INT No
user_id INT No
Return_date date No
status enum Yes
date_returne date No
d
Table 17 Table: Borrows

4.11.3.8 Table: Categories


Column Type Null Default Comments MIME
id INT No
name Varchar(191) No
slug Varchar(191) Yes
shelf_id INT No
Table 18 Table: Categories

4.11.3.9 Table: Publishers


Column Type Null Default Comments MIME
id INT No
name Varchar(191) No
address Varchar(191) Yes
email Varchar(191) Yes
contact_number Varchar(191) No
Table 19 Table: Publishers

4.11.3.10 Table: Shelves


Column Type Null Default Comments MIME
id INT No
name Varchar(191) No
Table 20 Table: Shelves
4.11.3.11 Table: Users
Column Type Null Default Comments MIME
id INT No
first_name VARCHAR(191) No
last_name VARCHAR(191) No
contact_number VARCHAR(191) No
address VARCHAR(191) Yes
role_id VARCHAR(191) Yes
email INT No
password VARCHAR(191) Yes
Table 21 Table: Users
4.11.4 ER – Diagram
5- Implementation
5.1 Screenshots of Final System
5.1.1 User Login

Figure 88 Screenshots of Login

5.1.2 Manage Members


Figure 89 Screenshots of Manage Members

5.1.2.1 Add member

Figure 90 Screenshots of Add Member


5.1.2.2 Edit member

Figure 91 Screenshots of Edit Member

5.1.2.3 Delete member


Figure 92 Screenshots of Delete Member

5.1.3 Manage Shelves

Figure 93 Screenshots of Manage Shelves

5.1.3.1 Add shelf


Figure 94 Screenshots of Add Shelf

5.1.3.2 Edit shelf

Figure
95 Screenshots of Edit Shelf

5.1.3.3 Delete shelf


Figure 96 Screenshots of Delete Shelf

5.1.4 Manage Publishers

Figure 97 Screenshots of Manage Publishers


5.1.4.1 Add publisher

Figure 98 Screenshots of Add Publisher

5.1.4.2 Edit publisher


Figure 99 Screenshots of Edit Publisher

5.1.4.3 Delete publisher

Figure 100 Screenshots of Delete Publisher

5.1.5 Manage Authors


Figure 101 Screenshots of Manage Authors

5.1.5.1 Add Author

Figure 102 Screenshots of Add Author

5.1.5.2 Edit Author


Figure
103 Screenshots of Edit Author

5.1.5.3 Delete Author

Figure 104 Screenshots of Delete Author

5.1.5 Manage Categories


Figure 105 Screenshots of Manage Categories

5.1.5.1 Add Category

Figure 106 Screenshots of Add Category

5.1.5.2 Edit Category


Figure 107 Screenshots of Edit Category

5.1.5.3 Delete Category

Figure 108 Screenshots of Delete Category

5.1.6 Manage Books


Figure 109 Screenshots of Manage Books

5.1.6.1 Add Book

Figure 110 Screenshots of Add Book

5.1.6.1 Add Book Quantity


Figure 111 Screenshots of Add Book Quantity

5.1.6.2 Edit Book

Figure 112 Screenshots of Edit Book

5.1.6.3 Delete Book


Figure 113 Screenshots of Delete Book

5.1.7 Generate Books Requests and Returns

Figure 114 Screenshots of Generate Books Requests and Returns

5.1.7.1 Generate Books Requests


Figure 115 Screenshots of Generate books requests

5.1.7.1 Generate Books Returns


Figure 116 Screenshots of Generate books returns

5.1.7.2 Edit Order Data

Figure 117 Screenshots of Edit Order Data

You might also like