GithubHelp home page GithubHelp logo

morganead / hea-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biblibre/hea-app

0.0 1.0 0.0 583 KB

License: GNU General Public License v2.0

Perl 55.26% HTML 7.17% CSS 4.98% JavaScript 32.59%

hea-app's Introduction

hea-app

This website intends to display koha community usage statistics. Data are collected from installed koha if librarian wants anonymously or not.

External references

Install Hea locally

  • git clone https://github.com/biblibre/hea-app.git

  • git clone https://github.com/biblibre/hea-ws.git

  • Create a database whith the schema in hea-ws/sql/schema.sql

  • Optional : Import mock data (hea-app/sql/mock-data.sql)

  • copy hea-app/environments/config.yml to hea-app/environments/production.yml

  • In this production.yml file, replace all REPLACE_ME with the name of the database created above and a user/password

If it's not working, don't forget to see in hea-app/logs/production.log which Libraries are missing, and install them.

Install perl libraries

  • Libraries used: Dancer, Dancer::Plugin::Database, Template, Template::Plugin::Number::Format
  # one installation way
  root # curl -L http://cpanmin.us | perl - --sudo <lib_name>

Launch the app

hea-app$ ./bin/app.pl 

Database and sample data

  1. Some mocks data are available in sql/mock-data.sql
  2. Schema is in sql/schema.sql

Available data for rendering

  • Metrics available in volumetry table
+---------------+
| name          |
+---------------+
| biblio        |
| borrowers     |
| old_issues    |
| aqorders      |
| subscription  |
| auth_header   |
| old_reserves  |
| old_reserves  |
+---------------+
  • System preferences recorded: a lot, see the Koha code (or patches on the bug tracker)
+------------+--------------+------+-----+---------+-------+
| Field      | Type         | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| library_id | varchar(32)  | NO   |     | NULL    |       |
| name       | varchar(255) | NO   |     | NULL    |       |
| value      | text         | YES  |     | NULL    |       |
+------------+--------------+------+-----+---------+-------+
  • Library table
+--------------------------+----------------------------+--------------------+--------------+---------+
| library_id               | name                       | url                | library_type | country |
+--------------------------+----------------------------+--------------------+--------------+---------+
| 'RcP73COKh93YWLmOLkLx5Q' | hea experimental library   | http://example.com | UNIVERSITY   | France  |
+--------------------------+----------------------------+--------------------+--------------+---------+

hea-app's People

Contributors

aleishaa avatar clrh avatar jajm avatar joubu avatar julianfiol avatar paulpoulain avatar

Watchers

 avatar

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.