Git Product home page Git Product logo

librarian's Introduction

This is just a test GitHub project for me. Trying to learn both CodeIgniter and git.

I intend to use this personally and, as such, my branch of development will not focus on things which an actual library might need such as keeping tab on library members and borrowed books. For the most part, it is just an interface to a book database I designed.

librarian's People

Contributors

skytreader avatar

Stargazers

Cepefagel avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

librarian's Issues

Case sensitivity of queries

Query functions must succeed regardless of the casing of the arguments passed. Right now, being that we assume them to be of the same case, using a different case makes the fields array crash (since we use them as indices).

Behavior on dashboard refresh

Refreshing on the dashboard (at least at initial log-in) results to user going to "login/fail" page. This shouldn't be.

Translator

Add a translator field for adding books.

IE Support

The perennial issue.

Check JavaScript and CSS/layout.

This is of low-priority though, being that I will not be using this with IE.

Disable navbar link to current page

This provides for a UI enhancement but also because not doing so causes problems with how CodeIgniter creates links. Simply put, this seems to be the cheapest alternative.

Better error reporting when saving settings

Better formatting for form messages. Better error messages for saving app settings.

The error messages generated for app settings may come from the exceptions thrown by DAOModel update. It may be better if this exception message is more personalized for the specific record represented.

dashboard.php cannot distinguish wrong password from invalid access

When a user is not logged in and accesses dashboard.php, Librarian should automatically redirect to the log-in page, without any messages. However, when, in the log-in page, a user enters an invalid username-password combination, he should be redirected to the log-in page with a message informing about the invalid username-password combination.

Currently, when an invalid username-password combination is entered in the log-in page, there is no message.

(Recall that dashboard.php is the one that processes log-in verification.)

Additional Abstractions in MainController

Add functionality to:

  • Check if user is logged in or not, and then do the appropriate action afterwards.
  • Read default scripts and stylesheets from a config file.

And, ideally:

  • Make it so that it looks "native" to CodeIgniter.

Design of User Settings

The database already has a dedicated table for application-wide settings. Do we represent user settings in the same (possibly meta) manner?

But that will cut out a lot of functionality. See the most basic example, password changing. How will password changing (standard: ask for old password, ask for new password, enter again to confirm) work with that?

Also, given the DAOModel (cf. Active Record Pattern), it seems easy to accidentally issue an UPDATE and change a user's password. Should we do this using stored procedures?

Behavior when returning to dash board after first log-in

A PHP Error was encountered

Severity: Notice

Message: Undefined index: username

Filename: controllers/dashboard.php

Line Number: 23

And also,

A PHP Error was encountered

Severity: Notice

Message: Undefined index: username

Filename: controllers/dashboard.php

Line Number: 23

Dashboard Contents

Dashboard should have the following:

  • Library statistics - For each criteria (Genre, Author, Illustrator, Editor, Translator, Publisher Printer, Year), display the entry with the most number of books. Then, beside this entry, display a link that will allow the user to view full statistics for that criteria (i.e., book breakdown by criteria).
  • Newest book added. This entails a change in the database.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.