Library Management System
Library Management System
Declaration
Declaration
The project submitted herewith is a result of my own efforts in totality and in every aspects
of the project works. All information that has been obtained from other sources had been
fully acknowledged. I understand that any plagiarism, cheating or collusion or any sorts
constitutes a breach of College rules and regulations and would be subjected to disciplinary
actions.
II
Abstract
Title
Author
Abstract
This report is all about the development of Library Management System for the
website part. It develop use to convince the member to search the book and also
ease of borrowing books from the library.
This website mainly use by member and staff. It allow member to search and
reserve book. Member allows search the book and knows what book contain in the
library. Other than that, member allows to see the book detail and also comment on
the book. Member also allow reserve the book via website so that they can save
their time and cost to travel from their destination to library. Member also can view
current book they are borrowed and also history of the book they have borrowed.
For staff user, they are able to add news and also view report with several criteria.
Staff allows to add, edit and delete the news. When new news added, the homepage
news tab will be shown the new data.
The methodology used by me is waterfall model. The reports chapter was included
system planning, requirement analysis, system design, programming, system
testing, and evaluation of the project.
III
Acknowledgement
Acknowledgements
After completed my Final Year Project, there are many people help when developing this
project. I would like to express my sincere gratitude to my supervisor which is Ms. Choon
Kwai Mui who has guided me a lot throughout the project development. If Ms. Choon does
not keep on recall us to done our Final Year Project, I could not done my project in time.
With the recall, I slowly done some module, when reach due date I was just able to finish
my project. Other than that, Ms. Choon also will ask us some question to solve the logic
problem in the system. When the question could not be answered well which mean the error
occur.
Secondly, I would also thank to my family that give me mental support. They reduce my
pressure of developing of Final Year Project so that I could finish it. My family have gave
me a great support so I would very gratefully thank my family for supporting me until my
end of Final Year Project.
Lastly, I would also like to acknowledge my course-mate and house-mate which given me
help when I needed. One of my friends, Chan Cheang Hau helped me the most. When I
faced logic and coding problem, he will help me to solve. Other than that, I also have to
thank my group-mate, Tan Chaur Chuan which give some idea for me to complete my Final
Year Project.
IV
Table Of Contents
Table of Contents
Declaration..........................................................................................................................................II
Abstract..............................................................................................................................................III
Acknowledgment...............................................................................................................................IV
1.SystemPlanning........................................................................................................................118
1.0 System Planning .............................................................................................................................. 2
1.1 Project Aims and Objectives ........................................................................................................... 2
1.2 Background of Project..................................................................................................................... 2
1.3 Project Scope................................................................................................................................... 4
1.4 Project Schedule ............................................................................................................................ 13
1.5 Outline of Approach/ Methodology Used ..................................................................................... 14
1.6 Operation Environment ................................................................................................................. 17
1.7 Summary ....................................................................................................................................... 18
2.RequirementAnalysis..............................................................................................................1940
2.0 Requirement Analysis ................................................................................................................... 20
2.1 Software Requirement Specification (SRS) ..................................................................................20
2.2 Data Flow Diagram (DFD) ........................................................................................................... 33
2.3 Summary ....................................................................................................................................... 40
3.SystemDesign..........................................................................................................................4167
3.0 System Design............................................................................................................................... 42
3.1 External Interface Requirements ................................................................................................... 42
3.2 Entity Relationship Diagram (ERD) ............................................................................................ 57
3.3 Normalization................................................................................................................................ 58
3.4 Data Dictionary ............................................................................................................................. 61
3.5 Summary ....................................................................................................................................... 67
4.Programming...........................................................................................................................6884
4.0 Programming ................................................................................................................................. 69
4.1 Coding ........................................................................................................................................... 69
4.2 Summary ...................................................................................................................................... 84
5.SoftwareTesting......................................................................................................................8590
5.0 Software Testing ........................................................................................................................... 86
5.1 Test Plan ........................................................................................................................................ 86
5.2 Summary ...................................................................................................................................... 90
IV
Table Of Contents
6.Conclusion................................................................................................................................9197
6.1 Introduction ................................................................................................................................... 92
6.2 Linkage to seminar ........................................................................................................................ 92
6.3 Evaluation of Project Objective .................................................................................................... 93
6.4 Project Management Issues ........................................................................................................... 93
6.5 Evaluation of Project Strengths and Weakness ............................................................................. 94
6.6 Suggestion for Future Enhancement ............................................................................................. 95
6.7 Personal Reflection ....................................................................................................................... 96
7.References...............................................................................................................................9899
8.Appendices..........................................................................................................................100141
User Manual ...................................................................................................................................... 101
Project Specification ......................................................................................................................... 123
Project Management Document ........................................................................................................ 135
Chapter 1
System Planning
To design a user friendly graphical user interface which suit the users
SMS(Short Message Service) is implement in to the system. The user allow to sms the
message by connecting a GSM(Global System For Mobile Communication) phone. The
SMS module is created for sending message to the people who has borrow the book over
the due date. It convenience the user by clicking one button and it will send to all user.
Staff and member maintenance module also included in Library Management Website.
Users can edit the information of their profile. The staff and member also able to get back
lost password. By matching the ID and E-mail, they will get a E-mail with their password
written.
In additional, comment module also included inside. So each member can comment the
books which contain in the library. This module helps to recommend the book for users
which is good or bad. The comment can be delete by the member who comment it and also
any admin user.
Other than that, report module also implement inside Library Management Website. It only
can view by admin users. It has two type of report which is book comment report and also
member expired report. Book comment report allow librarian to know the popularity of the
report. So if the book is popular, the librarian may order more books. Member expired
report allow to see who is expired. It may see the member popularity of the library of
current year or month is decreasing or increasing.
Reserve module also implement in the website. Reserve module is allow user to reserve
book online so that they can borrow the book if they are far from the library. But in this
reserve, member needed to get the book in 2 week period or else the reservation will be
cancel.
All these modules are able to help librarian to manage the library more convenience and
efficiency compare to those library without computerized system.
For Library Management System, it is divided into online web site and library system.
For my part, I was responsible for library website and a part of system while the
system was carried out by my friend Tan Chaur Chuan.
At here, I will describe my own part which is library website which used by librarian
and member.
Authorization and Authentication Module
Authorization and Authentication
ID / Password
Password
Recovery
Checking
This module is used by user and also admin user for the website. They need to
login to the website using their id and password. In order to distinguish the
users level, user can access to different module when successfully login. For
example, admin can implement News.
Change
Password
Edit
Staff/Member
View
Staff/Member
This module allow user and also admin to view their profile. Not only that, they
allow to edit their profile and also change their password.
Search Module
Search module allow user or guess who visit website to search the book. Not
only that the user allow to view the detail of the book and also see the comment
of the book. There are a few of type allow users to search. They can search via
ISBN, book title, author, publisher, and category.
Top 10 new book and recommended book Module
Top 10 new book module allow guess and member to see the top 10 new book
has brought by the library and the recommended book module only can see by
member after log in to the system. It recommended based on their category
example the user like to see action type book then it will recommend some
action book for
News Maintenance
Add new
news
Edit news
Delete
news
This module allows user to add, edit and delete the news. So when the user
visit the website the website will have shown updated news.
Book Maintenance Module
View Current
Book Borrowed
Add Reservation
Reservation
Delete
Reservation
View Book
Borrowed
View
Reservation
Book maintenance module allows the member to view the book currently they
have borrowed and also view the book they have borrowed. Not only that, there
got reservation module which allow member to reserve book. Members are
allow to reserve book and delete the reservation and also view currently the
book they reserve.
E-mail Module
E-mail module has implemented in FAQ and also forget password. So when
the member forgot their password they can get back their password via
matching their ID and E-mail. Other than that, for FAQ if guess or member
have more question to ask they can ask via E-mail.
Report Module
Report Module
Book Comment
Report
Member Expired
Report
Report module is the module for admin user. There is two report which is Book
Comment and Member Expired.
For Book Comment report is to view the top book that has been commented. It
allows the admin to know the popularity of the book so that they can get more
new books. It can view via day, month and year.
Member Expired report is to view the member is expired via which date, month
or year. So they can remind their member to renew the membership and also
can know the popularity of the library. So, it can be estimate the popularity of
the library currently is increasing or decreasing.
Comment Module
Comment Module
Add Comment
Delete Command
Comment Module created is for member to comment a book. So, if the member
have opinion about the book they can actually comment on the book. Not only
that they can also delete their own comment. Admin users can delete any
comment of the book that member has already comment.
Library system
At this part I will present about my friends part which is the application part.
Authorization and Authentication Module
Authorization and Authentication
ID / Password
Password
Recovery
Checking
This module is used by user which means librarian in the library. They need to
login to the system using their id and password. In order to distinguish the
users level, user can access to different module when successfully login. For
example, only admin level users are able to access the report module.
Member Maintenance
Add new
member
Edit
member
Print ID
card
Search
Member
Book Maintenance
Add new
book
Edit book
information
Generate
barcode
Search
book
Book Module can access by any user from all levels. This module can used
to maintain the book inventory record such as search, add and edit. In
addition, we can generate the barcode for particular book and print it out so
that librarian can stick the barcode on the book cover.
Publisher Maintenance
Add new
publisher
Edit publisher
information
Search
publisher
This module allows user to add and edit the books publisher. Publisher is used
when register a new book.
Employee Maintenance Module
Employee Maintenance
Add new
employee
Edit
employee
Search
employee
Employee Maintenance is only can carried out by admin level user. It can use
to add the new librarian to the library which means add the new user.
10
Book Transaction
Rental
Module
Return
Module
Check
Reservation
Lost Book
Module
Fine
Module
11
Report Module
Report Module
Transaction
Report
Top10 Book
Report
Activity
Log File
Report module is the main module for admin user. It is because normal user is
not allowed to view the report. The report divided into 3 types. First one is
transaction report which can let admin views the book transaction happen on
particular date such as rental report and return report.
Top10 Report is the top rental rates book. Admin can filter the information
based on books category and also filter by date in type of daily, monthly and
yearly.
Activity Log File is a log which records every process in the Library
Management System such as login / logout activity, register new book, new
member or edit information or a member. All the activity done by every user
will be record so that when system crash, admin or system admin are able to
check the activity that may crash the system.
12
13
Waterfall is a method allow to increase the speed to complete the project but risky. So
users need to carefully design. If the current phase is complete, it will proceed to next
phase. It is risky because it does not allow to backward to previous phase.
At Royce's original waterfall model, the waterfall model originally consists of 7 phases
which is Requirement Specification, Design, Construction, Integration, Testing and
Debugging, Installation and Maintenance.
At first, we get the requirement for the library website, and then we analyzed it. After
the analyzed phase has completed, we can proceed to next phase which is design
phase. For design phase, I have design the website interface. After that, with my group
members we designed database. After that is construction phase. Construction phase
basically is to start develop the website. With the logic and coding, I use ASP.NET
with C# to develop the website. In this phase is the most time consuming phase
because there might have many problem occur and could not understanding the
function. Sometime the logic is wrong make the errors. After this phase, it comes to
integration phase. At this phase, the library management system has been share one
database because it needed to link between online and offline part. So we needed them
to integrate with each other. Then testing and debugging phase come after integration
phase. For testing phase, it is actually not suitable for programmer itself to testing. So
we given some of our friend as user to test. It has divided into few part, logic test,
validate test, and user interface test. If there are bugs is founded, it will be record down
and solve.
At last is installation and maintenance phase. In this phase, for member for that library
just have needed a web browser at home to open the website. And for library user, they
14
needed to buy a address and host the website so that every member can log in to the
website.
15
Hardware
Processor: Intel Core 2 Duo CPU T7250 @ 2.00GHz
Intel processor is a popular processor which allow comfortable to more
technology. With this processor, Intel Core 2 Duo, it help the CPU reduce the
temperature and allow us to work more longer and faster. By this technology,
we have no worry to developing a system with higher technology. It is suitable
for develop Library Management System in more advance way.
Ram: 2.00 Gb
With the Visual Studio and SQL server open at the same time. The CPU itself
needed have more space to let the software process. So that it cannot make the
computer hang. If there are no higher Ram, the process will become slower
because the memory in the Ram maybe full. It actually delay the development
phase.
16
Host Side
Processor
Operating System
Memory
512MB RAM
Screen Resolution
Database
17
1.7 Summary
In this chapter, project schedule, project scope, methodology used, project background and
also the developing and operating environment has been presented.
In this chapter, I have faced a few problems. At first, the problem that we met is lack of
research and knowledge about library process. We wanted to make the library process
become computerize system but before that we does not understand the process. Not only
that, many of our friend also lack of knowledge about library process. This made us have to
go to find the solution ourselves. The solution of this problem is we have go to research the
library. Other than that, our supervisor also gives us some important advice and also the
advice from the internet. We can finally sure the process of the library.
The second problem is time management problem. We have planned to start our project
during internship start which is July 2010. During internship, because of my laziness, I did
not do the project at all. After internship, we still have not done many parts as the schedule.
After that we found out we are lack of time to do the project, with the remind of the
supervisor time to time, we rush our project daily and finally we could done it on time.
In this chapter, I have learnt that time management skill is very important because when we
do not plan our time properly it will cause us disaster when the due date come. If we start
early, if we have error we can solve it after we done but when we done it late, we have no
time to solve the error.
18
Chapter 2
Requirement Analysis
19
Product Description
For online website, Library Management System is a website which helps the normal
users and admin users to convince their daily jobs. It reduces the normal users travel
fees and for admin users may reduce paper work. It help both of the users save time
and costs.
Problem Statement
The problem occurred before having website includes:
Does not have reservation
Before having website, the customer which is member of the library does could
not reserve book from the library. So when they wanted to borrow a book
without knowing there quantity still left or not, so they have to travel from their
destination to library. If the book is out of stock, they needed to wait for the
people return only they can borrow again.
20
Members/Staffs Maintenance
The website allows the member or staff to maintenance. Without website, they
needed to go to library tell the staff to change the information. Example a
member has move from Setapak to Serdang, he needed go to the library change
his address himself. But website allows them to change themselves. It is
convenience to both librarian and member. Example when a letter sends out to
the member house, it will directly send to new address.
Difficult to search book
Without website, the member of the library could not know what book contain
in the library. They will have to go to find out at the library themselves. With
website they can search the book in the website to know that currently the book
exist in the library or not.
SMS by handwork
Without computerizes system, the staff of the library have to send SMS to
recall member that the book that they borrow is already reach due date. They
have to check themselves and send one by one themselves. With this SMS
function, they will just need to click one button and send to all members who
are reach the due date.
Difficult to view reports
Report need to generate manually by themselves. They have to record and
calculate themselves and generate the report. With the website and system
actually overcomes the problem. It save times.
21
22
Reliability requirements
The website must immediately update. So when the member visit they could get
the latest information and also they can provide latest information to us.
Example, when the member changes the profile, the information must be
immediately update and the detail get by the librarian must be the latest. Other
than that, the pages which needed user key-in will be validate to prevent user
key-in wrongly.
Usability requirements
The website must be designed user-friendly so that the user is easy to learn
when they first get in to the website. It also must have the clear instruction so
that the user will be guided when using the website. After that, the error
message should be clear and understanding for user.
Organizational Requirements
Implementation requirements
In implementing of the website, it uses the ASP.NET with C# as the
programming language and tools. SQL Server will be use for the database to
support with the programming language.
Delivery requirements
For the whole system, the progress is estimated done at about six months and
the documentation done in two months. Documentation will be delivers in
hardcopy and softcopy and for full system will be delivers in softcopy.
23
External Requirements
Legislative requirements
The information that use must be acknowledge by the authorized people so that
it has no violating the law. This information is copyrighted and protected by the
law. When visitors wanted to become the member of the library, he/she must
agree with the rules and regulations stated in the of library management system.
Security requirements
This system must be highly secure in the login part. It can know the
authorization of the id which belongs to member or staff. Member and staff
both can perform different.
24
Response
Stimulus
: User enters user id and password at the textbox provided and click
: It verifies the user id and password with the data inside database. If
the user id is invalid or password not matches, there will pop up red label with
password incorrect to tell user. If valid, the user successfully log in to the website.
Functional Requirements
-
The website allow guess to visit. But with member there will more
function to use and some special function for staff users.
The user must able to logout after they finished using the website.
25
Response
Stimulus
Response
: It will verify the ID and Email see it is match or not. If match, the
password will be send to the users Email. If it does not match, a message box
will pop out to tell users it is wrong Email.
Functional Requirements
-
The website must be able to send the correct password to the users
mailbox.
26
Response
Stimulus
: User key in own Email, subject and also the question wanted to ask.
: System will validate the text box is empty or not. If empty, message
box will pop up to tell the user. If valid, the system will send the email to the staff
Email. If the format of the email is incorrect, message box will pop up to tell the
user that the format the email is wrong.
Functional Requirements
-
27
Response
Stimulus
: It will validate see the textbox is empty or not. If empty, it will pop
up message box said that the textbox is empty or it will search the database with
the criteria given and show it on gridview.
Functional Requirements
-
Website must able to filter the book based on the keyword entered.
28
Response
Stimulus
: It will validate see the textbox is empty or not. If empty, it will pop
up message box said that the textbox is empty or it will check the database see the
current password is correct or not and also check the new password and confirm
password is same or not. If it is correct then the password will be change.
Functional Requirements
-
29
Response
: Website will bring user to profile page. It will shows users profile
information.
Stimulus
: If users wish to edit their profile, users just need to click on the edit
: If there are any errors, there will show a list of label with red colour
font show that what are the errors. If there are no errors, the data will update into
database.
Functional Requirements
-
Website must retrieve the data and show it on the correct field in the
page.
30
Response
Stimulus
: Click on View borrowed book to see the history of what user have
Functional Requirements
-
31
Response
Stimulus
Response
anyone or not. If the book is not available, the message box will pop up to tell the
user. It also check see the user available to borrow book or not. If user is not
available to borrow book then he/she could not have permission to reserve book.
Stimulus
reserve.
Response
Stimulus
gridview.
Response
: It will find the database and delete the reserve book that user
reserve.
Functional Requirements
-
System must able to validate that the book can be borrow or not.
32
2. Admin User
Stimulus
button..
Response
: Website will bring user to another page show the report with the
criteria given.
Stimulus
Response
Stimulus
: Choose on the date type wanted to show. Type is date, month and
year.
Response
: Website will bring user to another page show the report with the
criteria given.
Functional Requirements
-
Website must show the correct information via the criteria given.
33
Response
Stimulus
Response
Stimulus
: Choose edit to edit the news and delete to delete the news in the
gridview.
Response
click.
Functional Requirements
-
Website must able to add, update and delete the news into database.
34
Context Diagram
Library
Management
System
35
Member Info
36
1. Member Registration
2. Book Rental
37
3. Return book
4. Comment
38
5. Report
39
2.3 Summary
In this chapter present about system objectives, system requirements and also Data Flow
Diagram (DFD) for level 0 and level 1.
In this chapter, I have met problem of constructing of DFD diagram. It is because I and my
group mate have already forgotten how to construct this diagram. We have no idea how to
draw DFD diagram. In the help of the friend and also note that borrowed from our junior
student. It reminds me back the construction of the DFD diagram.
After find the DFD diagram, the DFD has split to level 0 and level 1 DFD diagram. I could
not understand why it split it to two different diagrams. I could not continue to draw but
have to research on the diagram again. After research on internet, I finally can overcome
this problem.
In this chapter, I have gain back the knowledge of DFD diagram. It also taught me a lesson
about to keep everything that we have learnt. In my opinion, not everything that we can
memorize but we need to have a backup so that when we need it we can refer back.
40
Chapter 3
System Design
41
User Interfaces
Library Management System website is used by the users and staff. It is very
important that the website should designed standard and user friendly so that
everyone who visit the website can use easily. An example, a button user to
edit thing should use EDIT word but not add or delete or just a picture.
42
1. Home Page
Figure 1.1 above present the Library Management System website home page.
These interface design for all users. Users allow view what is new books arrival at
library and also what news happen at the library.
43
2. FAQ
Figure 1.2 present questions that may always ask by the users. When the users see
this page, they may find out the answers that what they did not understand. If the
users have more question and the questions do not shown in FAQ page, they can use
FAQ page bottom part which is email to send the question to ask the staff.
44
3. Contact Us
Figure 1.3 present about contact us. It show library operating time and also phone and
e-mail. So, when users have problem they may see this page if they want to contact staff.
4. About Us
Figure 1.4 show the about us which about the history of the library. It show the
development time, development team, and operate in when.
45
5. Search
Figure 1.5 present about search function. This function allows the users to search the
book at the website to see that what book is contains in the library. So they know what
book inside before borrow. Click on the Detail button allows user to see the book detail
and also the comment of the book.
6. Book Detail
Figure 1.6
46
Figure 1.6 shows the book detail after search. These page designs for book detail. At the
top has the title of the book and after that is the picture and also the detail of the
following book. After that comment design at bottom part so that user allow to see the
comment.
Member
1. Login Page
Figure 2.1 is the login page for member and also admin level users. They have to key in
the user ID and also user password to log in to the system. Different level of users have
different function.
Figure 2.1.1 and Figure 2.1.2 are the different of users menu. For member log in they
have their own menu and staff log in they also have their own menu.
47
2. Forget password
Figure 2.2 allows users to get back password when the user forgot their password. They
have to key-in their user ID and their e-mail. So when the e-mail and the user ID is
match then the system will send the password via e-mail to the users e-mail.
3. Edit Profile
48
4. Change Password
Figure 2.4 is the page which allows users to change their password. Users need to keyin the current password and then key-in the new password. After that, users have to
retype the new password in the retype password to confirm that the new password and
retype password that user type is correct. After submit, the user can use the new
password to log in.
5. Reservation
Figure 2.5 allow member of the library to reserve book from the library. After they
search the book they want to reserve, click on the Reserve button link, to reserve the
book. After click, message box will pop up and show you the barcode number which
needed member record down and go library get the book.
49
Figure 2.6 show member that the member borrowed book before. In other word, is
history of the member borrow book. Member also allows to see the book detail by
clicking the book detail.
50
Figure 2.8 show that the book currently borrow by the member. Date rented stated to
show when is the user borrow the book.
Staff
1. News
Figure 3.1 is about news. It only can modify by staff. When staff add a new news at this
page, the news will be shown at the main page so that every of the user can see the
news. If the staff wish to edit the news, they will just need to click on the edit button to
edit the news and if staff wish to delete, they will just need to click on the delete button
to delete the news.
2. Member Expired Report
51
Figure 3.2 is about member expired report. It show the member that are expired via date,
month, and year in this 3 category. User can only choose one category.
If user choose date, a calendar will show up to let the user to choose the date.
52
53
Figure 3.3 show the user see the book comment via four category which is category,
publisher, language, and all.
Figure 3.3.1 Show the user report about book comment and the date via the criteria that
the user choose.
54
4. Edit Profile
Figure 3.4 is edit profile page for staff. It is same with the member but the information
is lesser compare to member. If staff wish to edit profile, click edit button to edit the
profile.
55
3.1.2
Hardware Interfaces
For Library Management System, the additional device for library is GSM
modem or GSM phone. This device use to tell member when they borrow
the book pass the due date SMS will remind them.
3.1.3
Software Interfaces
Library Management System requires user to install SQL Server 2008. SQL
server 2008 is support for more function and datatype. For operating system,
Library System requires Window XP or newer version.
3.1.4
Communication Interfaces
56
57
3.3 Normalization
3.3.1
1st Normalization
UserName,
UserAddress,
UserPhone,
UserIC,UserRegDate,
58
3.3.2
2nd Normalization
59
3.3.3
3rd Normalization
60
Rules
-
Example Data
113
M0001
2011-02-16 16:35:07.000
Information of PublisherID P0003 has been updated
Example Data
M0001
Tan Chaur Chuan
1
12341234
880704-35-5263
04-3984851
[email protected]
30, lintang perai 2, taman chai leng, 34567 pahang.
61
Default
Value
-
Example Data
9781587132049
Handphone King
C.Y
P0001
Chinese
Technology
A book which show the latest information of all brand handphone
Handphone.JPG
Rules
Example Data
13
1234567891234
M0001
This book is very interestingthanks
62
Rules
-
Example Data
978158713204901
9781587132049
L
200.0000
2011-02-16 00:00:00.000
Example Data
9781587132049
2011-01-13
The popular book The Lord of the Ring is now available !!!
Rules
Rules
-
Example Data
9781587132049
This book is talk about the journey of one kids to find his parents.
63
Default
Value
-
Rules
Format : [email protected]
-
Example Data
001
Chen Library
30, lintang perai 5,
Taman putang,
13506
Pulau Pinang
Butterworth
04-3859451
04-3225645
[email protected]
www.google.com
64
Rules
-
Fields
Data Type
ID
Userid
Barcodeid
ISBN
LostDate
int
varchar(50)
varchar(50)
varchar(50)
Date
Field
ID
Userid
Barcodeid
ISBN
LostDate
3
M0002
978158713204901
9781587132049
2011-02-16
Null/Not
Null
Not null
Not null
Not null
Not null
Not null
Rules
-
Example Data
Default
Value
-
Default
Value
-
Example Data
M0003
123456789123401
2011-03-02 00:00:00.000
2010-09-09 00:00:00.000
2010-10-10 00:00:00.000
200.0000
65
Rules
-
Example Data
P0001
Tan Khen Khen
Rules
Default
Value
-
Rules
Format : [email protected]
-
Example Data
M001
Ooi Yee Neng
30 lintang talang 2, taman perai. 13600 Perai, Penang.
04-3568956
880407-35-5266
2011-02-16 00:00:00.000
4
12345678
Tan_chen_khen.JPG
[email protected]
2012-03-05 0:00:00.000
66
3.5 Summary
In this chapter discuss about normalization, Entity Relationship Diagram (ERD), interface
design and also database design.
For the interface design, because it is website and it for member and librarian, the website
must design user friendly so that every user can easily learn how to use the website in a
short period of time. When I am designing this website, there are few problems occur. One
of the problems is the alignment of the website. When I design at Visual studio 2008 the lay
out should be find but when run it, the alignment is not correct. I have to readjust it. Second
problem is the browser problem. Different browser may cause different interface when run.
I faced internet explorer 7 problem. When run the website, the alignment is not correct
compare to Mozilla Firefox and also Google Chrome when run. After research and also
friend helps, I used script to control so that when it comes to different browser it will run
the particular browser alignment.
Besides that, I met a big problem on normalization. Because of the database design has
already designed, we have to normalize from 3rd to 1st normalization form. In this
normalization, I found out that some of the table does not naming properly. Example Staff
table normally for ID would be StaffID but we name it as ID. In this case, We could not
know this ID is for which table but it actually is staff id. After discuss with my group mate,
we change the naming of the database to overcome the problem.
In this chapter, a good interface design is important because it can convince the user to use
the website. A complicated website will cause the user does not want to serve the website.
Other than that, database design also important such as primary key and foreign key in the
database. If these keys do not exist, then duplicate data will happen.
67
Chapter 4: Programming
Chapter 4
Programming
68
Chapter 4: Programming
4.0 Programming
This chapter will discuss about coding for the system. In the development, logic and coding
skill is required. A good coding can enhance the efficiency of the system so that when other
people wanted to implement the coding they can easily understand the code. Following
would discuss the sample programming and description of the book.
4.1 Coding
1. Database Class
using System.Data.OleDb;
public class DBConnector
{
OleDbConnection con;
public OleDbDataReader dtr;
public DataSet DS = new DataSet();
public DBConnector(string strProvider, string strDBPath)
{
con = new OleDbConnection("Provider = SQLNCLI10; server =
127.0.0.1 ;Database=LibrarySystem; user id = keat; Password = 1234;");
}
public bool con_Open()
{
con.Open();
try
{
return true;
}
catch
{
return false;
}
}
public void con_Close()
{
if (con.State == ConnectionState.Open)
{
con.Close();
}
}
public bool DB_Reader(string strQuery)
{
OleDbCommand cmd;
69
Chapter 4: Programming
The coding above about is a database class. At first we need to import a OLEDB class. It is
to ease to reuse this class to connect the database. In this class, it has created a few
functions which link with database and the coding. The first is the connection string that
specify where to connect to. Con_open() is open the connection to database, and
Con_close() is to close the connection. DB_Reader() is data reader use to read the data
70
Chapter 4: Programming
from the database. DB_Reader() required to insert a SQL query to get the data . DB_DS() is
a dataset. It use to store the data that has been retrieve from the database. It required to
insert a SQL query and a data table name. DB_Command() is database command allow it
read the execute insert, update and delete in the database. Below is the example of the
query used.
DBConnector DBase = new DBConnector();
DBase.con_Open();
Dbase.con_Close();
This code use when we want to get data from database to data reader and data set. Data set
need one more parameter because data set needed table name.
DBase.DB_Command("INSERT INTO [Admin] VALUES [admin_address]='" + address + "');
DBase.DB_Command("UPDATE [Admin] SET [admin_address]='" + address + "');
DBase.DB_Command("DELETE FROM [Admin] WHERE [admin_id]=123 );
This code use when we want to execute a insert or update, or delete into database. It require
a insert or update or delete command at this function.
71
Chapter 4: Programming
2. Search Function
DBConnector DBase = new DBConnector();
DBase.con_Open();
DBase.DB_DS("SELECT dbo.Book.ISBN, dbo.Book.BookTitle, dbo.Book.Author,
dbo.Book.Language, dbo.Book.Category, dbo.Publisher.PublisherName FROM dbo.Book INNER JOIN
dbo.Publisher ON dbo.Book.PublisherID = dbo.Publisher.PublisherID WHERE [" + type + "] LIKE '%"
+ search + "%'", "Book");
gvSearch.DataSource = DBase.DS;
gvSearch.DataBind();
DBase.con_Close();
This is the search function of the website. It will first put the data into the data set and after
that bind the data to gvSearch gridview. When the button search click, this query will be
execute.
<asp:GridView ID="gvSearch" runat="server" AutoGenerateColumns="False"
onrowcommand="gvSearch_RowCommand"
OnPageIndexChanging="gvSearch_PageIndexChanging" AllowPaging="True"
onselectedindexchanged="gvSearch_SelectedIndexChanged">
<Columns>
<asp:BoundField DataField="ISBN" HeaderText="ISBN" />
<asp:BoundField DataField="BookTitle" HeaderText="BookTitle" />
<asp:BoundField DataField="Author" HeaderText="Author" />
<asp:BoundField DataField="PublisherName" HeaderText="PublisherName" />
<asp:BoundField DataField="Category" HeaderText="Category" />
<asp:ButtonField CommandName="Detail" HeaderText="Detail" Text="Detail" />
</Columns>
</asp:GridView>
72
Chapter 4: Programming
}
}
This is the detail button which allows the user to click and transfer to another page. So
when the button is click, the id of the row will be store and transfer to other page. So that
when the book description page show they will know which the book that has to be show is.
3. Email
using System.Net.Mail;
The coding above is about Email. At first we have to import Mail class in order to use
Email. This function allows us to send an email. The thing we need to prepare is a email
and find a smtp server. At here I used hotmail as my smtp server and
[email protected] as my hotmail. The port to hotmail server is 587 and the host
address for hotmail is smtp.live.com. After prepare, we will just have a subject, a sender
mail, a receiver mail and content. This part I have implement in the FAQ part and also
Forget Password part.
73
Chapter 4: Programming
74
Chapter 4: Programming
{
msg = "Unregistered ID.";
valid = false;
}
}
DBase.con_Close();
}
else
{
msg = "Failed to connect to server";
valid = false;
}
if (valid)
{
lblError.Text = msg;
}
else
{
lblError.Text = msg;
}
return valid;
}
This coding is about log in and log out. Because it have two type of user which are admin
and member, the code has separate two parts. If users choose admin, it will go to admin
table to validate but if users choose member, it will go member table to validate. After log
in the type and ID will be store in the session value which is Session[level] and
Session[ID].
protected void btnLogOut_Click(object sender, EventArgs e)
{
Session["level"] = "guest";
Session["id"] = "";
mvSecurity.ActiveViewIndex = 0;
tbllogout.Visible = false;
mvMenu.ActiveViewIndex = 0;
Server.Transfer("../home/home.aspx");
}
This is the log out coding. So when the users log out the level will set become a guest.
75
Chapter 4: Programming
5. Comment
DBase.DB_Reader("SELECT BookComment.CID, BookComment.ISBN, BookComment.UserID,
BookComment.Comment, [User].UserName FROM BookComment INNER JOIN [User] ON BookComment.UserID =
[User].UserID WHERE (BookComment.ISBN = '" + ISBN + "')");
Repeater1.DataSource = DBase.dtr;
Repeater1.DataBind();
This statement is to retrieve the comment from the database. It will base on the data return
row and bind in to the repeater. So if there are 2 record, it will show 2 rows.
<asp:Repeater ID="Repeater1" runat="server"
onitemcommand="Repeater1_ItemCommand"
onitemdatabound="Repeater1_ItemDataBound"
><ItemTemplate>
<table style=width:100%;>
<tr bgcolor = DDDDFF >
<td class=style20>
<span class=style22><%#
((System.Data.Common.DbDataRecord)Container.DataItem)["UserID"].ToString()%></span><br
class=style2 />
<span class=style21><%#
((System.Data.Common.DbDataRecord)Container.DataItem)["Comment"].ToString()%></span><br />
<hr />
<div style=text-align:right;><asp:LinkButton ID="btnLinkDel" runat=server
>Delete</asp:LinkButton></div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
This statement is the repeater for the comment. So when the book 3 comment, the repeater
will loop the data and put it inside the this code.
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
string CID;
CID = e.CommandArgument.ToString();
string UserID = Session["ID"].ToString().ToUpper();
DBConnector DBase = new DBConnector();
DBase.con_Open();
if (DBase.DB_Reader("SELECT UserID FROM BookComment WHERE (CID = " + CID + ")"))
{
DBase.dtr.Read();
76
Chapter 4: Programming
if (DBase.dtr["UserID"].ToString().ToUpper() == UserID ||
Session["level"].ToString().ToUpper() == "Admin".ToUpper())
{
if ((MessageBox.Show("Are you sure want to delete this comment ?", "Confirm",
System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Warning) ==
System.Windows.Forms.DialogResult.Yes))
{
DBase.DB_Command("DELETE FROM [BookComment] WHERE [CID]=" + CID);
Label9.Text = "";
DBase.DB_Reader("SELECT BookComment.CID, BookComment.ISBN,
BookComment.UserID, BookComment.Comment, [User].UserName FROM BookComment INNER JOIN [User] ON
BookComment.UserID = [User].UserID WHERE (BookComment.ISBN = '" + ISBN + "')");
Repeater1.DataSource = DBase.dtr;
Repeater1.DataBind();
if (!DBase.dtr.HasRows)
{
Label9.Text = "There is no comment on this book";
}
}
}
else
{
MessageBox.Show("You does not have permission to delete this comment!",
"Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
DBase.con_Close();
}
This statement is to delete the comment of the book. To identify the book comment CID is
created and store the id at each row. So when delete, it can identify which comment. The
comment only can delete by admin users and the users own comment. If-Else statement
created to identify that which of the users have the permission to delete the comment.
77
Chapter 4: Programming
6. Validation Class
Email Validation
using System.Text.RegularExpressions;
public bool ValidEmail(string validatingstring)
{
if (Regex.Match(validatingstring, @"^[a-zA-Z][a-zA-Z0-9_-]+@[a-zA-Z]+[.]{1}[a-zAZ]+$").Success)
{
return true;
}
else
{
return false;
}
}
This code is to validate the e-mail. We need to pass a string parameter to check the string
see if there got @ and . . So when the string does not have the two characters, it will not
valid.
This code is to validate the field that is empty or not. So we have to also pass in a string
parameter to check the string see that the string is empty or not. If it is empty then it is not
valid. It apply at search function, edit profile, reservation and more place which does not
allow to empty field.
78
Chapter 4: Programming
This code is to check numeric only which mean the particular field only allow number.
Other number such as alphabet is not allows. It apply help to check IC number and also
phone number.
79
Chapter 4: Programming
7. Reservation
if (DBase.DB_Reader("SELECT TOP (20) dbo.Book.BookTitle, dbo.Book.Author, dbo.Book.Language,
dbo.Book.Category, dbo.Publisher.PublisherName, dbo.Book.ISBN FROM dbo.Book INNER JOIN
dbo.Publisher ON dbo.Book.PublisherID = dbo.Publisher.PublisherID WHERE [" + type + "] LIKE '%"
+ search + "%'"))
{
}
else
{
Label1.Visible = true;
Label1.Text = System.Environment.NewLine + "Could not find any book";
}
gvSearch.DataSource = DBase.dtr;
gvSearch.DataBind();
This code is to find the book and bind the data into the gridview. So that the users allow to
reserve the book.
protected void gvSearch_RowCommand(object sender, GridViewCommandEventArgs e)
{
string command = e.CommandName.ToString();
int reservecount = 0;
string ISBN = gvSearch.Rows[int.Parse(e.CommandArgument.ToString())].Cells[4].Text;
DBConnector DBase = new DBConnector("Microsoft.ACE.Oledb.12.0",
HttpContext.Current.Server.MapPath("../App_Data/season.accdb"));
DBase.con_Open();
if ((command).ToUpper() == ("reserve").ToUpper())
{
if (DBase.DB_Reader("SELECT Availablebook - (SELECT
COUNT(UserID) AS
Reservecount FROM Reservation WHERE (UserID = '" + Session["ID"].ToString() + "')) AS
TotalCount FROM [User] WHERE (UserID = '" + Session["ID"].ToString() + "')"))
{
DBase.dtr.Read();
reservecount = int.Parse(DBase.dtr["TotalCount"].ToString());
}
if (reservecount > 0)
{
if (DBase.DB_Reader("SELECT TOP (1) dbo.BookCopy.BarcodeID FROM dbo.Book INNER
JOIN dbo.BookCopy ON dbo.Book.ISBN = dbo.BookCopy.ISBN WHERE (dbo.BookCopy.Status = 'a') AND
(dbo.BookCopy.ISBN = '" + ISBN + "')"))
{
string Barcode;
DBase.dtr.Read();
Barcode = DBase.dtr["BarcodeID"].ToString();
DBase.DB_Command("Update Bookcopy Set Status = 'r' where BarcodeID = '" +
Barcode + "'");
80
Chapter 4: Programming
This code allow the user to reserve book. When the button reserve click, the id of the row
will be store into a variable so that we know which book is it. After that, by using the id,
update the database book rental status from a to r so that the book will not borrow by other
people.
81
Chapter 4: Programming
8. SMS
Set Up the connection to a GSM modem or a GSM phone
private int port;
private int baudRate;
private int timeout;
public void SetData(int port, int baudRate, int timeout)
{
this.port = port;
this.baudRate = baudRate;
this.timeout = timeout;
}
public void GetData(out int port, out int baudRate, out int timeout)
{
port = this.port;
baudRate = this.baudRate;
timeout = this.timeout;
}
This is to setting up the port, baudRate and timeout for connection a GSM modem or phone.
The port can found in control panel, Phone and Modem Setting. When we connected the
GSM modem or phone, there will show the port number such as COMM4. So we need to
find which port we are using. After that set the baud rate and timeout, it will ready to
connect.
82
Chapter 4: Programming
}
Cursor.Current = Cursors.WaitCursor;
CommSetting.comm = new GsmCommMain(port, baudRate, timeout);
Cursor.Current = Cursors.Default;
CommSetting.comm.PhoneConnected += new EventHandler(comm_PhoneConnected);
bool retry;
do
{
retry = false;
try
{
Cursor.Current = Cursors.WaitCursor;
CommSetting.comm.Open();
Cursor.Current = Cursors.Default;
}
catch(Exception)
{
Cursor.Current = Cursors.Default;
if (MessageBox.Show(this, "Unable to open the port.", "Error",
MessageBoxButtons.RetryCancel, MessageBoxIcon.Warning) == DialogResult.Retry)
retry = true;
else
{
Close();
return;
}
}
}
while(retry);
This part of the coding is use the data transfer from previous form which is the port, baud
rate and the timeout to make the connection to the phone. When the phone or modem is
connected there will be a status shown at the screen said the phone is connected.
Send a message
Cursor.Current = Cursors.WaitCursor;
try
{
SmsSubmitPdu pdu;
pdu = new SmsSubmitPdu(txt_message.Text, txt_destination_numbers.Text,"");
byte dcs;
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
83
Chapter 4: Programming
Cursor.Current = Cursors.Default;
This is the coding to SMS. It send the coding from our connected modem or phone to the
destination. It need the destination number to put in and also the message that we want to
send.
4.2 Summary
In this chapter discuss about programming stage. It is all about coding and how to develop
the website or system.
In this chapter, I have faced a few problems. One of the problems is sending a SMS. It is
because I did not learn before. Sending a SMS require a baud rate, port and timeout. Before
understanding these few things, I could not start to create the SMS module. Wasting a
period of time to research and also help of my friend, I finally can develop this module. The
second problem that I faced is comment module. For comment module, I have completed
the comment module and it can be shown at bottom of the book description page. When I
present at final testing, I realize I didnt put the delete button and also found out by
moderator. So I have to add one more button but the problem occur when add this problem.
Because of using C# label to write HTML code inside, the delete button for ASP.NET
could not show out. After research, I still could not get the solution. Finally, with the help
of my friend, he teaches me to use repeater and also HTML button so that it can be shown
out dynamically. After teaches of my friend, I finally finish the comment module.
In this chapter, I have learnt some new coding that I did not learn before. This coding is
useful because when I working outside I can reuse these coding. Not only this, I also learnt
that when a thing develop, it develop by many method. Example: comment module. It can
be create in different method such as by using repeater, or using loop and add in to a string
in C# and many more.
84
Chapter 5
Software Testing
85
86
Level : Member
87
Level : Member
88
89
5.2 Summary
In this chapter discuss about system testing. System testing help to reveal the bug that may
occur in the system or website. It is very important phase.
In this chapter, the problem that I face is the limitation of time. Because of we start this
project late, we do not have enough time to test the system. With the help of my friend, we
done the testing and also test plan.
I have learnt the important of this chapter. A test can make a system or website to reduce
the bug happen. Programmer always develop the system in the logic way. So, many thing
that programmer think that it will be no problem but when test by user there will be
problem. Example: a user key in his phone number with alphabet but not numbers. So
testing is important and it can be test more perfectly by user than programmer.
90
Chapter 6: Conclusion
Chapter 6
Conclusion
91
Chapter 6: Conclusion
6.0 Conclusion
6.1 Introduction
In this chapter which is final chapter, conclusion and evaluation will be shown on testing
and analyzing process that perform previously. Strengths, weakness, future enhancement
and also the seminar linkage of the Library Management System will be included. After
that personal reflection also will be included at last.
Major advantages I use GSM mobile technology for this time final year project is this
mobile technology is worldwide technology. GSM mobile technology used by all over the
world. With this advantage is actually win over all other mobile technology very much. So
when we wanted to develop Library Management system to all over the world, it will not
affected.
Other reason that I use GSM mobile technology one of them is, save cost. It is save cost
because it is worldwide technology and the price is standard over the world. Compare to
CDMA, GSM is cheaper. In this final year project, a public Library normally is a non profit
organization, so this system is develop to let the client save more costs. In this objective,
GSM actually achieve. Not only that, it also easy to transfer the data, GSM used SIM card
to store the phone information such as profile, phone number and more. So if the client
wanted to change phone number or move the phone number to another place, they will just
remove the SIM card or replace it.
92
Chapter 6: Conclusion
Function / Module
Status
Search Module
Achieved
SMS Module
Achieved
Reservation Module
Achieved
library.
To implement SMS
technology
Allow user to reserve via
internet
Secondly, it comes to coding part problem. The biggest problem that I face is SMS module.
I have totally no idea how to write coding by using GSM mobile technology to send a SMS.
Many of my friends do not implement this module to their system. Although there are some
of my friend implement this module but all of them also do not have the idea to create it.
After the research with my friend and the comment from the internet, I finally able to create
this module.
Although I created SMS module, but I borrowed my friend GSM modem. Because of the
presentation in the same day, the GSM modem will be use by my friend. I could not afford
to buy a GSM modem because I only use it for one time. After research from the internet
and suggestion from my friend, I found out that a GSM phone with contain modem
93
Chapter 6: Conclusion
function also allows to send SMS with the coding that created in the computer. At first, it
does not work, while I connected my phone to my computer. The reason is the phone
modem driver does not install in my computer so that I am unable to send SMS via my
phone. In the researching of the internet, I finally found the driver in the internet and install
into my computer and I work well by sending the SMS via my phone.
Lastly I met some problem in documentation. With the lack of time management, I could
need to rush my document in short time. Besides that, the guide line given also has to
follow correctly. Especially the reference part because it need to use Harvard referencing.
94
Chapter 6: Conclusion
Weakness
User does not allow borrow book directly from the website.
The website does not support older version of the web browser such as IE 6.
The recommended book will still recommend users via category. When the
book borrowed by the member before it will still recommended the member.
Does not have security checking. Any guess may use FAQ page to spam email
to users email.
Does not use any instant update function such as ajax.
Does not have rating on the book.
Second, there may have much more function such as borrow book online or delivery. In
future, there a function like delivery exists in library system So users can stay at home
order the book and wait for the delivery of the book. It may have charge of each book
delivery. Such as RM3.00 per book.
Third, SMS change to MMS, SMS only allow send text only but MMS can send
multimedia such as pictures, music, text and more. When the book is over the due date and
have to remind the users, They can send the remind message with pictures and also voice.
Lastly, at the validation part, AJAX technology implement so that it can be instantly
checking but not after a button press only checking. It save the time of the users when there
is some false information has been key-in.
95
Chapter 6: Conclusion
When I am developing the website, the website always have post back problem. When we
perform a button event such as click, the website will reload again. It make many problems.
By the helping of my friends explanation and the research of the internet, I slowly
understand how a button click event performs. A simple click looks simple but sometimes
it is occur some unknown problem such as when we add a book in to a list view but after
click add the list view does not show the book that has been added just now. After research
only know that click event will run only after page load. When the page load the data
already bind into the list view and it only add to the database. So the data will not show out.
By solving this problem, we have to bind the data into the list view again after click event
perform.
Other than that, I also learn about SQL query. In this development, my SQL query skill is
improved because many thing I use SQL query to generate more than the coding. Example
is the recommended book function which link many database to get the recommend book
for that particular person. In coding part, I will just need to put on the database command to
run the query and I can get all the data.
I have also recall back the knowledge that I have lost which is Data Flow Diagram (DFD),
Entity-Relationship Diagram (ERD) and normalization. I have to refer back the note from
diploma in order to do ERD,DFD and normalization.
96
Chapter 6: Conclusion
Lastly, I found out that teamwork is very important to a team. A team will need good
communication with teammate. In this project, I do website and my teammate do system
application. We share database together. We discuss to each other so that the database
design can use by both of us. When there are some changes of the database, we will inform
to each other so that there will no error when we do our part. If a team have a bad
communication, then when the system have changes and the teammate does not inform to
each other. When the system combine many error will be occur and it wasted a lot of time.
97
Chapter 7: Reference
Chapter 7
Reference
98
7.
Chapter 7: Reference
References
Code Project. 2003. Effective Email Address Validation. Viewed on 11 Feb
2011. Available From <http://www.codeproject.com/KB/validation/Valid_
Email_ Addresses.aspx>
Nokia.2010.Ovi By Nokia. Viewed on 12 Feb 2011. Available From <
http://www.nokia.com.my/services-and-apps>
David Margrave. GSM Security and Encryption. View On 12 Feb 2011.
Available From
<http://www.hackcanada.com/blackcrawl/cell/gsm/gsm-secur/gsm-secur.html>
Gyula Rabai. Code Project. 2007. How to send SMS Message from C# using an
SQL database. View On 12 Feb 2011. Available From <
http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx>
Art Branch Inc. 2004. SQL Tutorial. View on 13 March 2011. Available From
< http://www.sql-tutorial.net/>
James Holan. Sitepoint. 2011. Using the ASP.NET repeater control. View On 6
Feb 2011. Available From < http://articles.sitepoint.com/article/asp-netrepeater-control>
Wikipedia. 2010. System Development Life Cycle. Viewed on 7 Feb 2011.
Available from
<http://en.wikipedia.org/wiki/Systems_Development_Life_Cycle>
ConnectionString.com. 2011. Connection String For SQL Server. Viewed on 1
Feb 2011 Available from <http://www.connectionstrings.com/sql-server-2005>
99
Appendices
Appendices
Setup Project Environment
In order to host the website, users must setup some folder so that the website can
work perfectly. User must create a folder in the C drive and name the folder pictures.
Example C:\Pictures. User must put all the pictures into this folder for application
and for website, user must copy all the picture into the website folder. That folder
uses to host the website and inside got Pictures folder. Copy all the pictures from
the C drive folder to that folder.
100
Appendices
User Manual
1. Home Page
Purpose: Allow user to view new arrival books and also news of library.
User: Admin, Member, Guess
1
3
In section number 3 is the new arrival books for the library. For new book
that arrive to the library, the staff will key in to the system which the offline
application. After they key-in, the website will be updated from getting
101
Appendices
latest data from database. Other than that, click on the detail link button
allow user to see the detail of the book.
-
In section number 4 is the news of the library. It only can insert by the
admin users. After the admin users insert the news to the database, all of the
user can see the message to the homepage.
2. FAQ page
Purpose: Allow users to ask question and find answer about library.
User: Admin, Member, Guess
By default there will have few question state in the page. The questions are
commonly asks by public.
102
Appendices
User allows send e-mail to ask more question by filling in the question in the
textbox provided in the diagram.
Your Email text box needs the users e-mail so that the staff can reply the
answer to the user. The field cannot be empty.
Subject is the header of the email. Example a subject writes ABC. When the
e-mail receives, the e-mail header will be ABC. The field cannot be empty.
Question text box is to let user to key-in the question to ask. The field cannot
be empty.
The error message will be pop up when the user let the field empty.
103
Appendices
3. Search Function
Purpose: Allow user to search the book contain in the library.
User: Member, Admin, and guess
2
Figure 3.1 Search Page
In section number 1 is for user to key in the key word to search the book
such as the lord of the ring.
In section number 2 is for user chooses the category to search. User can
choose for 5 categories.
In section number 3 is for user to click after they have finish key-in the key
word and choose the search category.
104
Appendices
In section number 1, the detail link button allows to link the users to the
book detail page.
In figure 4.1, user must key-in the user id and password to each text box.
After that, user must choose the type of the user. Is either Member or Admin.
In figure 4.2, user may press the Log Out button to log out.
5. Forget Password
Purpose: Enable user to get back the their password
User: Member and Admin
-
In figure 4.1, press forget password link button to link to forget password
page.
105
Appendices
In figure 5.1, user needed to key-in user ID and also their e-mail to get back
their password.
After key-in user ID and e-mail, user need to choose the type and lastly click
on the submit button to perform the action.
If the E-mail and the user ID does not match, an error message will pop out.
After successfully validate, a message box will pop out to tell user.
106
Appendices
6. Member Page
Purpose: Enable user to use member function that provided.
User: Member
107
Appendices
108
Appendices
Member allows view the detail of the book and also comment of the book.
Member also allows comment the book by filling in the text box below and
press the comment button to comment the book.
109
Appendices
8. Members Profile
Purpose: Allow member to view their profile and edit their profile.
User: Member
This page allow member to view their profile. They also allow edit their
profile.
By clicking the edit button, the field will be enable to let the user edit.
For email field will verify whether the string got @ and . or not.
110
Appendices
Figure 8.2 shows the error when users key-in the data wrongly.
111
Appendices
9. Change Password
Purpose: Allow user to change their password.
User: Admin, Member
Figure 9.1 is change password page which allow user to change password.
In current password text box field, key-in the current password that the user
ID using.
In new password text box field, user need to key-in his/her new password.
In retype password text box field, user has to retype the new password again
to confirm the new and retype password is the same.
Error message will show out in red color word. Example: Figure 9.2
112
Appendices
10. Reservation
Purpose: Allow user to reserve book.
User: Member
Second, member has to search the book in order to reserve the book.
113
Appendices
After reserve, a message box will pop out the let the user know the reserve is
successfully.
In the message box there will have the barcode number. The user needed to
record down this barcode because when they go to library to get this book,
they have to find themselves.
There will be two condition that the reservation might be fail which is the
book is out of stock or the user himself does has permission to borrow any
book. Example message will be shown in Figure 10.3 and 10.4
114
Appendices
Figure 10.5 show the member what books have member reserve.
If member wish to delete their reservation, they can delete it by clicking the
delete link button at this page.
This page allows user see the book they borrow before.
115
Appendices
This page allow user to view currently the book they have borrow.
By clicking the member menus current book borrowed link button, it will
link to this page.
Appendices
For email field will verify whether the string got @ and . or not.
Figure 12.2 shows the error when users key-in the data wrongly.
117
Appendices
13. News
Purpose: Allow the admin user to maintain news.
User: Admin
By filling in text to the text box and click the add button and the news will
be added to database and show at homepage.
In section number 2, if user wishes to edit the news click on the edit button
to edit the news.
In section number 3, if user wishes to delete the news click on the delete
button to delete the news.
118
Appendices
14. Report
Purpose: Enable admin users to view report.
User: Admin
3
2
In section number 3, after choose the category, user need to choose for the
criteria for each category. Example for language chooses on English.
119
Appendices
If the user wishes to print the report out, press on the print button at bottom
left of the page.
If user wishes to back to previous page, press on the back button at bottom
left of the page.
120
Appendices
Click on date will pop up a calendar to let user choose date. Example Figure
14.3
Click on month option will pop up a combo box to select the month.
Example: Figure 14.4
121
Appendices
Click on the year option will pop up a text box to let user key-in year.
Example: 14.5
If the user wishes to print the report out, press on the print button at bottom
left of the page.
If user wishes to back to previous page, press on the back button at bottom
left of the page.
122
Appendices
Project Specification
A. Company Background
This system does not related to any company. We created the system which suits small size
library. Most of the function we refer to other library system.
B. Project Objectives
The purpose we creating this project are to let those small library have an electronic library
management system. A lot small size library was using paper-based management system.
But followed by the increase of visitors and member, librarian was suffered because there
are a lot of records. When need to search for particular member record, the librarian need a
lot of time.
In addition, they are suffered from a lot paper-based problem such as lost of members
record. Some record was missing because they failed to take good care of it. For example,
the librarians forget to put back the record into cupboard when they are busy.
Since my last visit to that library, I found that they need a computer management system so
I think of this idea to developing a system for small size library. This is to avoid some
paper-based problem such as lost of record and etc.
With the library system, librarians are able to record all the new books and new
transactions. We implement the use of bar code in this project so that librarian can process
the book transaction faster when a lot of members want to make a transaction. They can
save a lot of time without writing the book id.
123
Appendices
C. Project Scope
124
Appendices
The project scope is to show the system and website feature and function that we are
going to develop. In this system, we have separated into online and offline. In our
group, there is 2 member which are my group mate , Tan Chaur Chuan and me , Koh
Yee Keat. So in here I in charge of online side and the other side which is offline will
be in charge by my group mate , Tan Chaur Chuan.
We have also provide password recovery for the member. If the member
forgot his/her own password they can use the password recovery function by
providing their secret question and answer it with their correct answer and a
new temporary password will be send to their email.
2. Search Module
There is several search function, search book location, search book, search
book availability.
Book Searching Is to search the particular book. The user may need to
know what book that our library have so they can use this function to search
the book we have. And we also provide search by categories, name, author,
publisher, ISBN, and publish year.
125
Appendices
3. Reservation Module
This module allow a member to reserve book by online. In online they need
to login their id and they can reserve a book by searching the book. If the
book is less then 3 unit the book is not allow to reserve by anyone but if
there is more then 3 then the book is allow to reserve. For offline mode
there appear that which book is currently wanted by the member and the
librarian will take the book for the member. So if the before take and the
book is borrow by other people the reservation will be cancel.
This module is to recommend some book for the normal member. We know
that some of the member like to cook and he/she always borrow some
cooking category book only.
So when there are some new arrival book and the category is cooking we
may recommended to the member whether the member is interest in this
book or not.
For this module, we allow the user to login to see currently or pass
transaction.
Which mean they can know currently what book he/she are renting and also
he/she has already rent before.
6. Command Module
Allow other user to such as guest to view the command and they might
know the book is nice or not.
126
Appendices
7. SMS Module
This module which allow to remind member that the book that he/she rent
already expired.
If the book that the person rent is expired for 1 day, the system will
automatic send a SMS to the member said that the book is already expired
remind him/her that please pass up early
D. Non-functional Requirements
i) Product Requirements
a) Efficiency requirements
In the online side, we are able to make the customer save some time to searching
some book locate at and also we can let the customer reserve book through online
instead of coming to the library to rent the book without knowing the book is
currently available or not.
b) Reliability requirements
In the online side, the website provide search book availability function so that the
user will know the book currently is available or not instead running from home to
library to borrow a book by not knowing the book is still available to rent or not.
Besides that when the book is rent by a person and expired, he/she will receive mail
and also sms that remind him/her that the book that him/her rent is already expired.
Compare to handwork, the librarian has to look the record to find that who is current
renting expired book and some time they may miss out some people.
c) Usability requirements
This website is designed with user-friendly and easy to use by the member so that
the user can easily to learn how to use and know exactly how to use it. There is
instruction and guide that provided to let the user know how to use it correctly.
127
Appendices
b) Delivery requirements
The whole system is estimate to be done around 6 months time and the
documentation will be done in 2 months. The full system will be delivers in a
softcopy method while the documentation will be delivers in hardcopy and
softcopy.
b) Security requirements
This system is secure must prevent to let people log in to the admin site to change
the content of the webpage. The content is only the administrator can change.
E. General Description
This section generally describes the overall systems functionalities and other
information.
128
Appendices
a) Product Functions
This Library Management system is mainly create for the library near my group
mate house in butterworth. This product was developed to let the librarian have
electronic management system to replace paper-based system. The online part will
be describe by me and the offline part will be present by my group mate, Tan Chaur
Chuan.
f) General Constraints
i)
129
ii)
Appendices
It will be created to be full screen so that user can view the system clearly.
The background colour will not be too bright because too bright will cause
users eye not comfortable.
The background colour for the entire page in the system will be consistent.
The book image or member photo size will be compress into small size so that
librarian can know how the books cover looks like or librarian can know the
members outlook.
When customer login into the system, his or her name will appear in top right
corner of the main page following by the current time and logout word.
The size of the button will be standard in some size to avoid customer
confusion.
130
Appendices
The button label would be easier to understand. For example, delete a record
using Delete button but not Destroy or Drop.
b) Hardware Interface
This website can use in any type of computer with the web browser such as
Internet Explorer, Mozilla Firefox, Google chrome and more.
c) Software Interface
All the operating system can be use as long as there is web browser in the
particular OS.
d) Communication Interface
The website allows communication between customer and the system and also
staff and the system.
G. Development Environment
In developing an e-commerce system, the things that will be used are hardware, software
tools, and other resources such as programming languages.
Hardware
The hardware that use to develop the project include standard personal computer. It
is the basic requirement for developing a website.
Software tools
The following is the software and tools that use to develop the project because these
can help the project to be build.
i)
Appendices
This software use to design the website and publish to Internet. It contains
the web server and can link with database to retrieve the needed information
from the database system.
ii)
This software is our main database software. It can do basic and also some
standard advance query. And it is user friendly.
Programming language
Programming language that use includes CSS (Cascading Style Sheet), asp.net and C#
to develop the website for the Library Management system through visual studio
software. While for the database, SQL language uses to maintain database.
H. Operation Environment
132
Appendices
1) Customer site
Hardware
Requirement
Function
RAM
Above 256MB
Modem
Above 56Mbps
Hard Disk
Above 80GB
Software
Requirement
Function
OS
Window XP
(Operating
process
System)
Service
1) Web hosting service
A service that allows us to post or upload the website which let the customer to use by
internet
133
Appendices
I. Project Schedule
Project Schedule
134
Appendices
J. Project Team
In this project team there are 2 people. The system also break in two part which is
online and offline. My group mate, Tan Chaur Chuan will in charge of offline part
meanwhile I in charge of online part.
Report No. : 1
From
To
: 3.30pm
: 4.30pm
135
Appendices
Report No. : 2
From
To
: 4pm
: 4.55pm
136
Appendices
Report No. : 3
From
To : 12pm
: 11.30am
137
Appendices
Report No. : 4
From
To
: 3.00pm
: 4.00pm
138
Appendices
Report No. : 5
From
To : 12pm
: 11am
139
Appendices
Report No. : 6
From
To
: 3pm
: 5pm
140
Appendices
Report No. : 1
From
To
: 3pm
: 5pm
141