Library Management System Report 2024
Library Management System Report 2024
2024
1
Library management system
By
[Link] Maxamud Ahmed
[Link] Omer Abdi
[Link] Abdi Mohamed
2
DECLARATION
I declare that I am the author of this paper and that any assistance I received in its preparation is
fully acknowledged and disclosed in the paper. I have also cited any sources from which I used
data, ideas, or words, either quoted directly or paraphrased. I also certify that this paper was
prepared by me specifically for the partial fulfillment of the degree of Software at Abaarso Tech
University.
Mohamed Omer
Signature ………………...
Date …………………….
Abdishakur Maxamud
Signature ……………….
Date …………………….
Sakariya Mohamed
Signature ……………….
Date …………………….
Suber Abdi
Signature ……………….
Date …………………….
Ibrahim Mahad
Signature ……………….
Date …………………….
3
Approval Sheet
This dissertation research paper entitled "Library Management System" has been done under me
supervision and has been submitted to the faculty for examination with my approval as the
candidate’s advisor.
Grade:
4
Dedication
We dedicate this thesis to our dearest family, especially our fathers and mothers, who have
worked.
diligently in this academic achievement, financially and morally. We also dedicate it to our best
friends who have helped us approvingly and cooperatively in our academic struggle. We wish all
of them a long, healthy life on Earth and in Paradise hereafter.
5
Acknowledgements
First of all, we are honored to thank the Almighty ALLAH (SCW) for keeping us healthy and
allowing us to complete this thesis and for guiding us successfully through this program.
Secondly, we would like to express our genuine gratitude to our research supervisor, Mr. Hamse
Yusuf Jama of Abaarso Tech University, Somaliland, for his endless support, perceptive
comments, guidance, encouragement, supervision, diligence, and effective communication. His
support was invaluable in the preparation of this tangible thesis and in helping us reach this stage
of our academic career. We also extend our great thankfulness to the staff of the Software
Engineering department, especially Mr. Abdishakur Mohumed Ducale (Dean), and the rest of the
staff who contributed indirectly to the completion of this research study.
Thirdly, many thanks to our dearest and incomparable mothers who inspired and encouraged us
to accomplish what we have realized so far. We also thank our dear families, brothers, sisters,
classmates, friends, and relatives for their continuous and everlasting motivation, which helped
us overcome any barriers.
Finally, we would like to express our sincere gratitude to our respondents who kindly provided
responses for the execution of the study.
6
Abstract
This research project aims to design and implement an efficient Library Management System
(LMS) to streamline the operations of a library, enhancing both user experience and
administrative processes. The primary objectives are to develop a system that manages book
inventories, automates lending and return procedures, tracks overdue items, and facilitates user
account management. Additionally, the system aims to provide comprehensive reporting tools
for library staff to monitor usage patterns and manage resources effectively.
The development phase uses a combination of technologies such as HTML, CSS, PHP A
relational database management system (RDBMS) like MySQL is employed to store and manage
data. The system undergoes rigorous testing, including unit testing, integration testing, and user
acceptance testing, to ensure functionality, reliability, and user-friendliness.
Upon completion, the LMS is deployed in a controlled environment, where its performance is
monitored and any issues are promptly addressed. The project concludes with a comprehensive
evaluation, documenting the system's effectiveness in improving library operations and user
satisfaction. This research offers valuable insights for educational institutions and public libraries
seeking to enhance their management processes through technology
7
DECLARATION........................................................................................................................2
Approval Sheet...........................................................................................................................3
Dedication...................................................................................................................................1
Acknowledgements.....................................................................................................................1
Abstract.......................................................................................................................................2
CHAPTER ONE......................................................................................................8
INTRODUCTION......................................................................................................................8
1.3 Objectives of the Project................................................................................................10
1.4 Scope of the Project........................................................................................................11
1.5 Procedure/Methodology.................................................................................................12
1.6 Expected Outcome..........................................................................................................12
CHAPTER TWO...................................................................................................14
LITERATURE REVEIW........................................................................................................14
2.2 Existing Systems.................................................................................................................14
2.3 Disadvantages of Existing Systems...................................................................................14
2.4 Proposed System.................................................................................................................14
2.5 Advantages of Proposed System...................................................................................15
2.6 Design and Implementation..............................................................................................15
2.7 Methodology.......................................................................................................................16
CHAPTER THREE...............................................................................................17
SYSTEM ANALYSIS..............................................................................................................17
3.1 Introduction........................................................................................................................17
3.2 Requirements Analysis......................................................................................................17
3.2.1 Methods of Requirements Gathering........................................................................17
3.2.2 Functional Requirements...........................................................................................17
3.2.3 Non-Functional Requirements...................................................................................18
3.3 System Design.....................................................................................................................18
3.3.1 System Architecture....................................................................................................18
3.3.2 User Interface Design..................................................................................................19
3.4 Data Modeling....................................................................................................................20
8
3.4.1 Conceptual Data Model..............................................................................................21
3.4.2 Logical Data Model.....................................................................................................21
3.4.3 Physical Data Model....................................................................................................21
3.5 Process Modeling................................................................................................................21
3.6 Feasibility Analysis.............................................................................................................24
CHAPTER FOUR.................................................................................................26
SYSTEM DESIGN...................................................................................................................26
4.0 Introduction........................................................................................................................26
4.1 Architectural Design..........................................................................................................26
4.2 User Interface Design.........................................................................................................27
4.3 Physical Database Design..................................................................................................33
4.3.1 Database Schema.........................................................................................................33
4.3.2 Data Dictionary...............................................................................................................33
CHAPTER FIVE...................................................................................................36
IMPLEMENTATION AND TESTING.................................................................................36
5.1 Introduction........................................................................................................................36
5.2 Development Tools and Environment used.....................................................................36
5.2.1 System testing..............................................................................................................36
5.2.2 Unit testing...................................................................................................................36
5.2.3 Module testing.............................................................................................................37
5.2.4 Integration testing.......................................................................................................37
5.2.5 Testing..........................................................................................................................37
5.1Sample Codes.......................................................................................................................37
CHAPTER SIX......................................................................................................42
SUMMARY AND CONCLUSION.........................................................................................42
6.1 Conclusion for the Project Objectives..............................................................................42
6.2 What we have learned during this project?.....................................................................42
6.3 Future Improvements........................................................................................................42
References.................................................................................................................................43
9
10
CHAPTER ONE
INTRODUCTION
1.0 Introduction
1.1 Background
The problem background of school library management systems (LMS) can vary based on
different contexts and regions. Let’s explore some common challenges faced by school libraries
in managing their resources effectively:
Lack of Qualified Personnel: Many school libraries are managed by individuals who lack formal
training or background in library management.
The need to find qualified librarians or administrators who understand library science and
effective management remains a core challenge.
Insufficient Support from Administrators: School administrators or principals play a crucial role
in supporting library operations. Lack of prioritized focus on libraries and inadequate support
from school leadership can hinder effective management.
Resource Constraints: School libraries often face limitations in terms of funding, space, and
equipment. The availability of space and proper maintenance of equipment are essential for
efficient library operations.
Expanding Roles and Expectations: School libraries are expected to go beyond providing reading
books. They must also offer other information sources such as audiovisual materials, multimedia
11
resources, and internet access. Balancing these expanded roles while maintaining traditional
library functions can be challenging.
Managing digital resources, online catalogs, and ensuring access to information on the internet
require technical expertise and infrastructure.
Changing Learning Environments: As teaching and learning methods evolve, school libraries
must adapt. They need to align with modern educational practices, including project-based
learning, research, and information literacy.
User Engagement and Outreach: Encouraging students and teachers to actively use the library is
essential. Promoting library services, organizing events, and creating a welcoming environment
are ongoing challenges.
The current library management systems face several challenges that impact their efficiency and
effectiveness. Here are the key issues that an LMS should address:
Manual Processes and Record Keeping: Issue: Managing libraries manually is cumbersome and
prone to errors. Challenge: Librarians spend significant time recording book transactions,
maintaining borrower information, and updating inventory. Solution: An LMS should automate
these processes, ensuring accurate record-keeping and efficient management.
Efficient Book Allocation and Search: Issue: Library users expect a more efficient way to find
specific books or locate materials based on keywords. Challenge: Traditional cataloging systems
may not provide seamless search capabilities. Solution: An LMS allows users to search for
books, add new titles, update existing records, and download resources.
User Expectations and Technology Integration: Issue: Users demand modern features and
convenience. Challenge: Integrating technology into library services while meeting user
12
expectations can be complex. Solution: An LMS should handle check-in/check-out processes,
borrower transactions, and provide a user-friendly interface.
Resource Constraints and Staffing: Issue: Libraries often face limitations in funding, space, and
qualified personnel. Challenge: Efficiently managing resources within these constraints is
essential. Solution: An LMS streamlines resource allocation, monitors book availability, and
optimizes library operations.
User Experience and Accessibility: Issue: Libraries serve diverse user needs, including students,
researchers, and casual readers. Challenge: Ensuring a positive user experience and accessibility
for all patrons is critical. Solution: An LMS should provide a user-friendly interface, facilitate
resource discovery, and enhance engagement.
In summary, the problem statement for an LMS revolves around improving library operations,
enhancing user experiences, and addressing the limitations of manual systems. By implementing
an effective LMS, libraries can streamline processes, provide efficient search capabilities, and
better manage their resource.
Automating Library Processes: Objective: Develop an LMS that automates manual tasks such as
book issuance, returns, cataloging, and inventory management. Rationale: Automation reduces
human errors, saves time, and ensures accurate record-keeping.
Efficient Resource Management: Objective: Enable librarians to efficiently allocate and track
resources (books, journals, multimedia) within the library. Rationale: Effective resource
management ensures optimal utilization and availability for library users.
User-Friendly Interface: Objective: Design an intuitive and user-friendly interface for both
librarians and patrons. Rationale: A well-designed interface enhances user experiences,
encourages library usage, and simplifies interactions.
13
Security and Privacy: Objective: Ensure data security, privacy, and access control within the
LMS. Rationale: Protecting user information and maintaining confidentiality are critical for trust
and compliance.
Reporting and Analytics: Objective: Provide reporting tools for librarians to analyze usage
patterns, popular titles, and resource availability. Rationale: Data-driven insights help optimize
library services and collection development.
In summary, an effective LMS addresses these objectives to enhance library services, improve
user satisfaction, and streamline operations.
Management Fundamentals: An LMS supports the core functions of a library, such as acquiring,
cataloging, loaning, and reporting on stock/information to enable effective service management.
User Accessibility: It allows users to discover what items or information the library holds and
facilitates the borrowing or accessing of required items/information.
Managerial Aspects: The system is managed at different levels, requiring qualities of an effective
manager, and understanding the managerial role within library organizations.
Adaptability and Growth: Good management in libraries involves adopting proven principles
from non-library sectors to contribute to successful operations, with the potential for future
enhancements and expansion.
14
1.5 Procedure/Methodology
The procedure or methodology used in library management typically involves a structured
approach to ensure efficient and effective service delivery. Here’s a general outline of the
methodology based on the search results:
Team Formation: Assemble a team with diverse skills to address various aspects of the project.
System Design: Develop use case diagrams, entity-relationship (ER) models, and data flow
diagrams to plan the system architecture.
Implementation: Create the library management system using appropriate technologies for both
frontend and backend development.
Testing: Conduct thorough testing to ensure the system meets all functional and non-functional
requirements.
Deployment: Implement the system within the library environment, ensuring all components are
properly integrated.
Maintenance: Provide ongoing support and updates to the system to accommodate changes and
improvements over time.
This methodology ensures that the library management system is developed systematically,
meeting the needs of both library staff and patrons.
Improved Staff Performance: An LMS is designed to boost overall staff performance, making
their tasks more efficient and less time-consuming.
15
Time Savings: Both librarians and patrons save significant time due to the automation of routine
tasks and self-service capabilities.
Enhanced User Experience: Patrons enjoy a better experience with easy access to library
resources and services.
Effective Reporting and Oversight: An LMS provides better reporting tools for oversight,
helping to make informed decisions about library management.
Privacy and Security: Ensures the privacy, security, and safety of user data and library resources.
These outcomes collectively contribute to a more organized, accessible, and user-friendly library
environment.
16
CHAPTER TWO
LITERATURE REVEIW
2.1 Introduction
In this section, we introduce the chapter by outlining its purpose and importance. We will
explore the existing library management systems, their limitations, and the need for an improved
system. We will also provide an overview of the proposed Library Management System, which
aims to enhance user experience and efficiency.
17
User-Friendly Interface: A modern and intuitive interface that enhances user experience
for both students and librarians.
Efficient Book Management: Improved tracking and inventory management to ensure
books are easily located and accounted for.
Online Access: Providing online access to the library catalog and user accounts, allowing
students to check book availability and manage their loans remotely.
Integration: Seamless integration with other university systems such as student
information systems and digital libraries.
Comprehensive Reporting: Advanced reporting tools to provide insights into library
usage, book circulation, and user behavior.
18
2.7 Methodology
This LMS platform allows users to search and borrow books online based on titles, authors, and
subjects. Key functionalities include catalog management, product management, customer
management, and a digital borrowing system. The system provides users with a catalog of
various books available in the library, categorized by subjects such as Biochemistry,
Engineering, Medicine, Mathematics, Pharmacy, and Computer Science.
The LMS is implemented using a backend database and a web browser frontend. The
development process utilizes the following tools:
- Programming Language: Hypertext Preprocessor (PHP)
- Development Environment: XAMPP
- Database Management System: MySQL
19
CHAPTER THREE
SYSTEM ANALYSIS
3.1 Introduction
System analysis is a critical phase in developing the Library Management System (LMS). It
involves understanding the needs and requirements of the library, designing the system to meet
these requirements, and ensuring the feasibility and efficiency of the system. This chapter covers
the requirements analysis, system design, data and process modeling, and feasibility analysis of
the LMS.
• Observation: Observe library operations to identify inefficiencies and areas where automation
can improve processes.
• Catalog Management: The system should allow adding, updating, deleting, and searching for
library items.
20
• User Management: It should manage user accounts, including registration, authentication, and
roles.
• Borrowing and Returning: The system should handle the borrowing and returning of items,
including due date tracking and fine calculation.
• Inventory Management: It should manage the inventory of items, tracking their availability
and condition.
• Reporting: The system should generate various reports for library statistics, user activity, and
inventory status.
• Performance: The system must process transactions efficiently with minimal latency.
• Client-Server Architecture: The LMS uses a client-server model where client applications
interact with a server to request services.
• Three-Tier Architecture: The system is divided into presentation, application logic, and data
storage tiers.
21
• Data Storage Tier: The database.
• Dashboard: A central dashboard providing access to key features like catalog management and
reporting.
• Forms: Data entry forms for adding new items, registering users, and borrowing/returning
items.
22
3.3.3 Database Design
• Relationships: Users can borrow multiple books; books can be borrowed multiple times.
23
3.4 Data Modeling
Data modeling creates a representation of the data structures required by the LMS.
• Book, User, Loan) and their attributes (e.g., Book ID, Title, User ID, Borrowed Date).
• Loan Table: Loan ID, User ID, Book ID, Borrowed Date, Due Date.
• Indexes and Keys: Defining primary keys, foreign keys, and indexes to optimize performance.
• Context Diagram: High-level DFD showing the LMS as a single process interacting with
external entities.
24
Level 2 DFD: Detailed DFD breaking down the LMS into subprocesses.
25
3.5.2 Use Case Diagrams
• Actors and Use Cases: Identifying actors (e.g., users, administrators) and their interactions
(e.g., search books, borrow books).
26
3.5.3 Activity Diagrams
27
3.6.1 Technical Feasibility
• Technology Assessment: Evaluating the technologies required for the LMS (software,
hardware, network).
• Skills and Expertise: Assessing the availability of the technical skills needed.
• User Acceptance: Assessing whether users will accept and use the LMS.
3.7 Summary
This chapter provided a comprehensive system analysis of the LMS. Starting with requirements
analysis, we identified the functional and non-functional requirements. We then detailed the
system design, including the architecture, UI, and database design. Data and process modeling
provided a deeper understanding of the system's structure and workflows. Finally, we conducted
a feasibility analysis to evaluate the LMS's technical, economic, and operational viability. This
thorough analysis forms the foundation for the successful development and implementation of
the LMS.
28
CHAPTER FOUR
SYSTEM DESIGN
4.0 Introduction
This chapter of the project document which provides a system design of this project design is the
association between requirements specification and the final solution. The goal of the design
process is to produce a representation model of a system, which can be used later to build that
system.
The produced model is called the design of the system it is a plan for a solution to the system
design is the process of defining the elements of a system such as the architecture modules,
components, the different interfaces of those components, and the data that goes through that
system.
29
4.2 User Interface Design
A user interface is the part of the system with which the users interact. It includes the
screen displays that provide navigation through the system, the screens and forms that
capture data, and the reports that the system produces.
Dashboard
30
Login
Add book
31
Add course
Add student
32
List book
Borrow book
33
Add borrow
34
Return book
Edit book
35
4.3 Physical Database Design
Is the process of transforming a logical data model into an actual physical database? Physical
database modeling deals with designing the actual database based on the requirements gathered
during logical database modeling. All the information gathered is converted into relational
models and business models. Objects are defined at a level called a schema level. A schema is
considered a group of objects which are related to each other in a database.
36
describes your tables. Every Programming task in a database application needs to know
something about the tables it is working with, so every program in a framework and many
programs in an application can benefit from a central store of information about the database.
Table 1: admin
Column Data type Identity Null able Default
PK ID Int
Username Varchar (255)
Password Varchar (255)
first name Varchar (255)
last name Varchar (255)
photo Varchar (255)
Created date date
Table 2: books
column datatype identity Null able default
PK id INT
isbn Varchar (20)
FK category_id int
title Text
author Varchar(150)
publisher Varchar(150)
publisher_date date
status int
Table 3: Borrow
column datatype identity Null able default
pk Id int
FK Student_id int
FK Book_id int
Date_borrow date
status int
Table 4: Category
column datatype identity Null able default
pk id int
name Varchar(100)
37
Table 5: Course
column datatype identity Null able default
pk id int
title text
code Varchar(15)
Table 6: return
column datatype identity Null able default
PK id int
FK Student_id int
FK Book_id int
Date_return date
Table 7: students
column datatype identity Null able default
PK id int
FK Student_id Varchar(150)
firstname Varchar(150)
lastname Varchar(150)
photo Varchar(200)
FK Course_id int
Create_on date
38
CHAPTER FIVE
IMPLEMENTATION AND TESTING
5.1 Introduction
Implementation is the stage in the project where the theoretical design is turned into a working
system. The implementation phase constructs install and operate the new system. The most
crucial stage in achieving a new successful system is that it will work efficiently and effectively.
Justification: Visual Studio was selected for its robust features, including debugging, code
navigation, and integration with version control systems.
Justification: MySQL was chosen for its reliability, ease of use, and strong support for
transactional operations.
39
5.2.3 Module testing
The module testing is the testing of complete code objects as produced by the compiler when
built from the source. A library may be composed of a single compiled object.
5.2.5 Testing
Software testing is the process of executing a program or application with the intent of finding
software bugs. It can also be stated as the process of validating and verifying a software program
or application or product.
5.1Sample Codes
Sample of Login Code
<?pup
session start();
include 'includes/[Link]';
if(asset($_POST['login'])) {
$username = $_POST['username'];
$password = $_POST['password'];
40
$_SESSION['admin'] = $row['id'];
}
else{
$_SESSION['error'] = 'Incorrect password';
}
}
}
else{
$_SESSION['error'] = 'Input admin credentials first';
}
header('location: [Link]');
?>
<?php
include 'includes/[Link]';
if(isset($_POST['add'])){
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$course = $_POST['course'];
$filename = $_FILES['photo']['name'];
if(!empty($filename)){
move_uploaded_file($_FILES['photo']['tmp_name'], '../images/'.
$filename);
}
//creating studentid
$letters = '';
$numbers = '';
foreach (range('A', 'Z') as $char) {
41
$letters .= $char;
}
for($i = 0; $i < 10; $i++){
$numbers .= $i;
}
$student_id = substr(str_shuffle($letters), 0,
3).substr(str_shuffle($numbers), 0, 9);
//
$sql = "INSERT INTO students (student_id, firstname, lastname, course_id, photo,
created_on) VALUES ('$student_id', '$firstname', '$lastname', '$course', '$filename',
NOW())";
if($conn->query($sql)){
$_SESSION['success'] = 'Student added successfully';
}
else{
$_SESSION['error'] = $conn->error;
}
}
else{
$_SESSION['error'] = 'Fill up add form first';
}
header('location: [Link]');
?>
Sample of Borrow
<?php
include 'includes/[Link]';
42
if(isset($_POST['add'])){
$student = $_POST['student'];
if(!isset($_SESSION['error'])){
$_SESSION['error'] = array();
}
$_SESSION['error'][] = 'Student not found';
}
else{
$row = $query->fetch_assoc();
$student_id = $row['id'];
$added = 0;
foreach($_POST['isbn'] as $isbn){
if(!empty($isbn)){
43
$sql = "UPDATE books SET status =1 WHERE id = '$bid'";
$conn->query($sql);
}
else{
if(!isset($_SESSION['error'])){
$_SESSION['error'] =
array();
}
$_SESSION['error'][] = $conn>error;
}
}
else{
if(!isset($_SESSION['error'])){
$_SESSION['error'] = array();
}
$_SESSION['error'][] = 'Book with ISBN - '.$isbn.' unavailable';
}
} }
}
}
else{
$_SESSION['error'] = 'Fill up add form first';
}
44
header('location: [Link]');
?>
CHAPTER SIX
SUMMARY AND CONCLUSION
importance of teamwork.
Problem-Solving and Critical Thinking.
Project Management.
Technical Proficiency.
45
References
46