Professional Documents
Culture Documents
By
2010/2011
I
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
Library Management System Abstract
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 report’s chapter was included
system planning, requirement analysis, system design, programming, system
testing, and evaluation of the project.
III
Library Management System 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
Library Management System Table Of Contents
Table of Contents
Declaration .......................................................................................................................................... II
Abstract .............................................................................................................................................. III
Acknowledgment ............................................................................................................................... IV
1. System Planning ........................................................................................................................ 1‐18
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. Requirement Analysis .............................................................................................................. 19‐40
2.0 Requirement Analysis ................................................................................................................... 20
2.1 Software Requirement Specification (SRS) ..................................................................................20
2.2 Data Flow Diagram (DFD) ........................................................................................................... 33
2.3 Summary ....................................................................................................................................... 40
3. System Design .......................................................................................................................... 41‐67
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 ........................................................................................................................... 68‐84
4.0 Programming ................................................................................................................................. 69
4.1 Coding ........................................................................................................................................... 69
4.2 Summary ...................................................................................................................................... 84
5. Software Testing ...................................................................................................................... 85‐90
5.0 Software Testing ........................................................................................................................... 86
5.1 Test Plan ........................................................................................................................................ 86
5.2 Summary ...................................................................................................................................... 90
IV
Library Management System Table Of Contents
6. Conclusion ................................................................................................................................ 91‐97
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 ............................................................................................................................... 98‐99
8. Appendices .......................................................................................................................... 100‐141
User Manual ...................................................................................................................................... 101
Project Specification ......................................................................................................................... 123
Project Management Document ........................................................................................................ 135
V
Library Management System Chapter 1: System Planning
Chapter 1
System Planning
1
Library Management System Chapter 1: System Planning
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.
2
Library Management System Chapter 1: System Planning
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.
3
Library Management System Chapter 1: System Planning
In this sub chapter, project scope will carried out what modules were contains inside
the Library Management 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.
ID / Password Password
Checking Recovery
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
user’s level, user can access to different module when successfully login. For
example, admin can implement News.
4
Library Management System Chapter 1: System Planning
Member/Staff
Maintenance
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 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
5
Library Management System Chapter 1: System Planning
News Maintenance
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 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.
6
Library Management System Chapter 1: System Planning
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
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.
7
Library Management System Chapter 1: System Planning
Comment Module
Comment Module
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 friend’s part which is the application part.
Authorization and Authentication Module
ID / Password Password
Checking Recovery
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
user’s level, user can access to different module when successfully login. For
example, only admin level users are able to access the report module.
8
Library Management System Chapter 1: System Planning
Member Maintenance
Book Maintenance
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.
9
Library Management System Chapter 1: System Planning
Publisher Maintenance
This module allows user to add and edit the book’s publisher. Publisher is used
when register a new book.
Employee Maintenance
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
Library Management System Chapter 1: System Planning
Book Transaction
Check Fine
Reservation Module
11
Library Management System Chapter 1: System Planning
Report Module
Report Module
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 rate’s book. Admin can filter the information
based on book’s 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
Library Management System Chapter 1: System Planning
13
Library Management System Chapter 1: System Planning
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
Library Management System Chapter 1: System Planning
needed to buy a address and host the website so that every member can log in to the
website.
15
Library Management System Chapter 1: System Planning
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
Library Management System Chapter 1: System Planning
17
Library Management System Chapter 1: System Planning
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
Library Management System Chapter 2: Requirement Analysis
Chapter 2
Requirement Analysis
19
Library Management System Chapter 2: Requirement Analysis
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:
20
Library Management System Chapter 2: Requirement Analysis
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.
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.
21
Library Management System Chapter 2: Requirement Analysis
22
Library Management System Chapter 2: Requirement Analysis
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
Library Management System Chapter 2: Requirement Analysis
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
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- User id is provided when they register as member or staff.
- The website allow guess to visit. But with member there will more
function to use and some special function for staff users.
- The website must be able to perform authorization process which
decides what the user’s level can access to.
- The user must able to logout after they finished using the website.
25
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- The website must be able to send the correct password to the user’s
mailbox.
26
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- Website must be able to verify the information.
- System must deliver the question to staff Email successfully.
27
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- Website must be able to search the database based on selected
category (ISBN, book title , etc)
- Website must able to filter the book based on the keyword entered.
- Website must able to show out the filtered book in gridview.
28
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- Website must check the empty textbox and correctness of the
password.
- Website able to update new password to database.
- User can use the new password to log in.
29
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- Website must validate the errors.
- Website must retrieve the data and show it on the correct field in the
page.
- Button edit will change to update when press.
30
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- System must able to show the data on the gridview.
31
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- System must able to show data on gridview after search.
- System must able to validate that the book can be borrow or not.
- System must able to validate user have permission to borrow or not.
- System must able to show the data on the gridview.
- System able to delete the reserve book that user reserve.
32
Library Management System Chapter 2: Requirement Analysis
2. Admin User
Functional Requirements
- Website must show the correct information via the criteria given.
33
Library Management System Chapter 2: Requirement Analysis
Functional Requirements
- Website must able to show the news.
- Website must able to add, update and delete the news into database.
34
Library Management System Chapter 2: Requirement Analysis
Member Info
Library
Management
System
35
Library Management System Chapter 2: Requirement Analysis
36
Library Management System Chapter 2: Requirement Analysis
1. Member Registration
2. Book Rental
37
Library Management System Chapter 2: Requirement Analysis
3. Return book
4. Comment
38
Library Management System Chapter 2: Requirement Analysis
5. Report
39
Library Management System Chapter 2: Requirement Analysis
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
Library Management System Chapter 3: System Design
Chapter 3
System Design
41
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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 user’s e-mail.
3. Edit Profile
48
Library Management System Chapter 3: System Design
4. Change Password
Figure 2.4 is the page which allows users to change their password. Users need to key-
in 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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
53
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
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
Library Management System Chapter 3: System Design
56
Library Management System Chapter 3: System Design
57
Library Management System Chapter 3: System Design
3.3 Normalization
58
Library Management System Chapter 3: System Design
59
Library Management System Chapter 3: System Design
60
Library Management System Chapter 3: System Design
61
Library Management System Chapter 3: System Design
62
Library Management System Chapter 3: System Design
63
Library Management System Chapter 3: System Design
64
Library Management System Chapter 3: System Design
Null/Not Default
Fields Data Type Rules
Null Value
ID int Not null - -
Userid varchar(50) Not null - -
Barcodeid varchar(50) Not null - -
ISBN varchar(50) Not null - -
LostDate Date Not null - -
65
Library Management System Chapter 3: System Design
66
Library Management System Chapter 3: System Design
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
Library Management System Chapter 4: Programming
Chapter 4
Programming
68
Library Management System 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;
return true;
}
catch
{
return false;
}
}
69
Library Management System Chapter 4: Programming
if (dtr.HasRows)
{
return true;
}
else
{
return false;
}
}
}
catch
{
return false;
}
}
public bool DB_DS(string strQuery,string strTableName)
{
OleDbDataAdapter adp = new OleDbDataAdapter(strQuery, con);
adp.Fill(DS, strTableName);
try
{
return true;
}
catch
{
return false;
}
}
}
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
Library Management System 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.
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.
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
Library Management System 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.
72
Library Management System 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
kohyeekeat@hotmail.com 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
Library Management System Chapter 4: Programming
}
else
74
Library Management System 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”].
This is the log out coding. So when the users log out the level will set become a guest.
75
Library Management System 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.
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.
76
Library Management System 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 user’s own comment. If-Else statement
created to identify that which of the users have the permission to delete the comment.
77
Library Management System Chapter 4: Programming
6. Validation Class
Email Validation
using System.Text.RegularExpressions;
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
Library Management System 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
Library Management System 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.
}
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
Library Management System 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
Library Management System 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;
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.
if (dlg.ShowDialog(this) == DialogResult.OK)
{
dlg.GetData(out port, out baudRate, out timeout);
CommSetting.Comm_Port=port;
CommSetting.Comm_BaudRate=baudRate;
CommSetting.Comm_TimeOut=timeout;
}
else
{
Close();
return;
82
Library Management System 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
Library Management System 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 didn’t 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
Library Management System Chapter 5: Software Testing
Chapter 5
Software Testing
85
Library Management System Chapter 5: Software Testing
86
Library Management System Chapter 5: Software Testing
87
Library Management System Chapter 5: Software Testing
88
Library Management System Chapter 5: Software Testing
89
Library Management System Chapter 5: Software Testing
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
Library Management System Chapter 6: Conclusion
Chapter 6
Conclusion
91
Library Management System 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
Library Management System Chapter 6: Conclusion
At this project development, I have met many problems. At the very beginning, because of
lack of time management, my group mate and I decided Library Management System as
title in a very short time. After that, we found out that we are lack of knowledge about
library. We force to research the process of the library such as transaction, fine, and more in
order to develop this system. After a lot of research and refer to the reference, we only can
start work on it.
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
Library Management System 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.
Strengths
System response fast enough when the users perform some action.
Interface is user friendly and easy to use.
Allow to keep track member expire date
Allow user to instantly change their profile via internet
Allow to comment the book which is good or bad.
System will auto send SMS to all user when they borrow the book over the due
date.
Allow user reserve book online.
Allow user ask question via email
Member allow to see history of borrowed book
Member allow to see current book borrowed
Admin user allow to add, edit and delete news
94
Library Management System 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 user’s 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
Library Management System Chapter 6: Conclusion
In this final year project, I have learned a lot of thing. I have gain a lot of knowledge and
also regain back what I have forgotten knowledge. When the problem occur, we have to
research on the solution. On the researching stage, I have learned a lot.
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 friend’s 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
Library Management System 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
Library Management System Chapter 7: Reference
Chapter 7
Reference
98
Library Management System Chapter 7: Reference
7. References
99
Library Management System 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
Library Management System 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
101
Library Management System 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
Library Management System 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 user’s 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.
- Figure 2.2 is a example error message for empty e-mail field.
103
Library Management System Appendices
3. Search Function
Purpose: Allow user to search the book contain in the library.
User: Member, Admin, and guess
1 3
- 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
Library Management System 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.
- Press Login button to log in.
- 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
Library Management System 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
Library Management System Appendices
6. Member Page
Purpose: Enable user to use member function that provided.
User: Member
107
Library Management System Appendices
108
Library Management System 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
Library Management System Appendices
8. Member’s 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.
- Click on the my profile at member menu to link to this page.
- By clicking the edit button, the field will be enable to let the user edit.
- For all field is not allow to empty.
- IC and Contact field is only can enter number only.
- For email field will verify whether the string got @ and . or not.
110
Library Management System Appendices
- Figure 8.2 shows the error when users key-in the data wrongly.
- The red word describe the error that user made.
111
Library Management System 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.
- Click on the change password at member menu to link to this page.
- 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.
- Press submit button to submit the new password.
- The field cannot be empty.
- Error message will show out in red color word. Example: Figure 9.2
112
Library Management System Appendices
10. Reservation
Purpose: Allow user to reserve book.
User: Member
113
Library Management System 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
Library Management System Appendices
- Figure 10.5 show the member what books have member reserve.
- Click on current reserve book at member menu to link to this page.
- If member forgot their barcode they can view at this page.
- 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.
- By clicking View Book Borrowed link button at member menu to link to
this page.
115
Library Management System Appendices
- This page allow user to view currently the book they have borrow.
- By clicking the member menu’s current book borrowed link button, it will
link to this page.
116
Library Management System Appendices
- Figure 12.2 shows the error when users key-in the data wrongly.
- The red word describe the error that user made.
117
Library Management System Appendices
13. News
Purpose: Allow the admin user to maintain news.
User: Admin
2 3
Figure 13.1 News Page
118
Library Management System Appendices
14. Report
Purpose: Enable admin users to view report.
User: Admin
119
Library Management System Appendices
120
Library Management System Appendices
- Click on month option will pop up a combo box to select the month.
Example: Figure 14.4
121
Library Management System Appendices
- Click on the year option will pop up a text box to let user key-in year.
Example: 14.5
122
Library Management System 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 member’s
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
Library Management System Appendices
C. Project Scope
124
Library Management System 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.
2. Search Module
There is several search function, search book location, search book, search
book availability.
Book location Searching – Is to search the book is locate at where for
example the book is at which value. This function mainly is provide for
normal member which in the library which could not find the book and we
will provide a few of the computer to let the user to search the book there so
that they could find the book location.
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.
Book availability searching – Is to find the book currently is available to
rent or reserve.
125
Library Management System 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.
6. Command Module
In this module, the user allow to commend the book.
Allow other user to such as guest to view the command and they might
know the book is nice or not.
126
Library Management System 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
Library Management System 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 system’s functionalities and other
information.
128
Library Management System 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) Limited time to complete the project
The estimated duration to complete this project is about 8 month, and we
need to complete it while still on the way in industry training. The time limit
is determined by the time that need to:
129
Library Management System Appendices
130
Library Management System Appendices
The button label would be easier to understand. For example, delete a record
using “Delete” button but not “Destroy” or “Drop”.
The design for each browser should be standardize.
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.
Adobe Reader and also Adobe flash may be needed to install.
SQL server 2008 will be the database.
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) Microsoft Visual Studio 2008
131
Library Management System 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) SQL server 2008
- 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
Library Management System Appendices
1) Customer site
Hardware Requirement Function
RAM Above 256MB Additional RAM allows a computer work with
more information at the same time.
Modem Above 56Mbps Allow the client to connect to the Internet and the
output displayed will depend on the speed
capacity.
Hard Disk Above 80GB Allow operating system, software titles and other
files stored in this device.
Software Requirement Function
OS Window XP Basic requirement for computer to maintain all the
(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
Library Management System Appendices
I. Project Schedule
Project Schedule
134
Library Management System 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.
2. Critical Evaluation
a. Problems Encountered
For this project specification, the modules that I and my group mate write are
not enough. There are too few modules for both of us to done the module.
Supervisor asks us to add more modules.
After discussing with supervisor and also my group mate, we decided to add
module form offline system become online website and offline application.
135
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
For this project specification, the new module has been added but for the
company background, we could not create the system for a targeted library.
After discussing with supervisor and also my group mate, we decided to done it
in other way which is for a small or medium library only and it is for every
library but not specify library.
136
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
This system preview, I have done very less module and many parts still have not
done. Some of the basic functions done such as insert update delete function.
Interface also does not design properly.
Due to time management problem for the pass, I speed up the process of making
the system.
137
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
At this meeting, I have done 70% of the system. Left some of the module I
could not done it in time which is SMS module. Some of the comment that
given from supervisor to add more module in the system.
After discussing with supervisor, I start to complete my module that haven done
and also the module given by supervisor so that when the preview on next time I
could show it to supervisor.
138
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
At this meeting, I left e-mail and comment module haven done. It is because I
used many time to research on SMS module.
After discussing with supervisor, I start to complete my modules that have not
done so that I could pass up full system to let the modulator see.
139
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
At this meeting, I done all of the system. Some of the problems have been
discover by moderator and ask me to change such as comment does not have
delete button.
After the testing, I go back home to complete my module and will show
supervisor after a week.
140
Library Management System Appendices
2. Critical Evaluation
a. Problems Encountered
There are some report problems that have to solve that comment by supervisor.
141