Giter Site home page Giter Site logo

digital-blueprint / sublibrary-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 3.65 MB

Library application

Home Page: https://www.npmjs.com/package/@digital-blueprint/sublibrary-app

License: GNU Lesser General Public License v2.1

Dockerfile 0.21% Shell 0.12% HTML 2.40% JavaScript 88.78% EJS 8.30% Makefile 0.18%
alma dbp digital-blueprint sublibrary

sublibrary-app's Introduction

Sublibrary Application

GitHub Repository | npmjs package | Unpkg CDN | Sublibrary Bundle

Build and Test

overview

With the dbp sublibrary app you can assign call number, borrow books, return library books, extend loan periods, show current loans, show current book orders and show the budgets.

Prerequisites

  • You need library officer permissions to be allowed to use the application
  • You need the API server running
  • You need the Dbp Relay Sublibrary Bundle for the API server to talk to the Alma backend

Local development

# get the source
git clone [email protected]:digital-blueprint/sublibrary-app.git
cd sublibrary-app
git submodule update --init

# install dependencies
npm install

# constantly build dist/bundle.js and run a local web-server on port 8001 
npm run watch-local

# constantly build dist/bundle.js and run a local web-server on port 8001 using a custom assets directory assets_custom/
npm run watch-custom

# run tests
npm test

Jump to http://localhost:8001, and you should get a Single Sign On login page.

Example book barcodes: +F58330104, +F58019101, +F53498803

By default, the application is built using the assets in assets/. However, custom assets can also be used to build the application. The custom assets can be added to the directory assets_custom/dbp-sublibrary/assets/. This allows developers to easily develop and build the application for different environments.

Remote development

https://dbp-dev.tugraz.at/apps/library

Run npm run watch-dev to build the dist/bundle.js constantly and upload the dist folder to the server.

Roll back a release

COMPOSER_VENDOR_DIR=_temp composer require "deployer/deployer" "deployer/recipes"
# Check if the config is pointing to the server you want
./_temp/bin/dep config:hosts production
# Do the rollback
./_temp/bin/dep rollback production

Demo system

https://dbp-demo.tugraz.at/apps/library

Build bundle for the demo environment

APP_ENV=demo npm run build

Using this app as pre-built package

Install app

If you want to install the dbp sublibrary app in a new folder sublibrary-app with a path prefix / you can call:

npx @digital-blueprint/cli install-app sublibrary sublibrary-app /

Afterwards you can point your Apache web-server to sublibrary-app/public.

Make sure you are allowing .htaccess files in your Apache configuration.

Also make sure to add all of your resources you are using (like your API and Keycloak servers) to the Content-Security-Policy in your sublibrary-app/public/.htaccess, so the browser allows access to those sites.

You can also use this app directly from the Unpkg CDN for example like this: dbp-sublibrary/index.html

Note that you will need a Keycloak server along with a client id for the domain you are running this html on.

Update app

If you want to update the dbp sublibrary app in the current folder you can call:

npx @digital-blueprint/cli update-app library

Activities

This app has the following activities:

  • dbp-sublibrary-book-list
  • dbp-sublibrary-budget
  • dbp-sublibrary-create-loan
  • dbp-sublibrary-loan-list
  • dbp-sublibrary-order-list
  • dbp-sublibrary-renew-loan
  • dbp-sublibrary-return-book
  • dbp-sublibrary-shelving

You can find the documentation of these activities in the sublibrary activities documentation.

Adapt app

Functionality

You can add multiple attributes to the <dbp-sublibrary> tag.

attribute name value Link to description
provider-root Boolean app-shell
lang String language-select
entry-point-url String app-shell
keycloak-config Object app-shell
base-path String app-shell
src String app-shell
html-overrides String common
themes Array theme-switcher
darkModeThemeOverride String theme-switcher

Mandatory attributes

If you are not using the provider-root attribute to "terminate" all provider attributes you need to manually add these attributes so that the topic will work properly:

<dbp-sublibrary
        auth
        requested-login-status
        analytics-event
>
</dbp-sublibrary>

Design

For frontend design customizations, such as logo, colors, font, favicon, and more, take a look at the theming documentation.

"dbp-sublibrary" slots

These are common slots for the app-shell. You can find the documentation of these slots in the app-shell documentation. For the app specific slots take a look at the sublibrary activities.

sublibrary-app's People

Contributors

euneuber avatar lazka avatar manuelkocher avatar pbek avatar renovate[bot] avatar ruxandragherman avatar tobiasgv avatar toegl avatar tsteinwen13 avatar

Watchers

 avatar  avatar  avatar

Forkers

euneuber

sublibrary-app's Issues

CSV Export formatting problems

The problem

When you export a table with a date column, it exports a date column and an additional column with the exact timestamp but without Column Header.

Steps to reproduce

Click at "Leihfrist verlängern", "Institutsbücher anzeigen", "Entlehnungen anzeigen" or "Buchbestellungen anzeigen" then click CSV or Excel export and you will see the additional column in the exported file

Better

  • Don't export this additional column with the timestamp
  • Or give it a column header

No permissions on institute of previous user

If a user with different institute permissions was previously logged into the current browser then you might get an error that you don't have permissions on the last selected institute of that previous user when you switch to a page with an institute selector.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update all non-major dependencies (@babel/core, @babel/preset-env, i18next, rollup)

Detected dependencies

docker-compose
docker/docker-compose.yml
dockerfile
docker/Dockerfile
  • httpd 2.4
github-actions
.github/workflows/build-test-publish.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v4
  • actions/checkout v4
  • actions/setup-node v4
  • digital-blueprint/gitlab-pipeline-trigger-action v1
npm
package.json
  • @dbp-toolkit/app-shell ^0.3.0
  • @dbp-toolkit/auth ^0.3.0
  • @dbp-toolkit/common ^0.3.0
  • @dbp-toolkit/knowledge-base-web-page-element-view ^0.2.0
  • @dbp-toolkit/language-select ^0.3.0
  • @dbp-toolkit/notification ^0.3.0
  • @dbp-toolkit/person-select ^0.3.0
  • @dbp-toolkit/resource-select ^0.1.0
  • @fontsource/nunito-sans ^5.0.0
  • @open-wc/scoped-elements ^2.1.0
  • @tugraz/font-source-sans-pro ^0.2.4
  • @tugraz/web-components ^0.3.6
  • @webcomponents/scoped-custom-element-registry ^0.0.9
  • i18next ^23.0.0
  • jquery ^3.5.1
  • lit ^2.7.0 || ^3.0.0
  • select2 ^4.0.13
  • suggestions ^1.7.0
  • @babel/core ^7.10.4
  • @babel/preset-env ^7.10.4
  • @rollup/plugin-babel ^6.0.2
  • @rollup/plugin-commonjs ^25.0.0
  • @rollup/plugin-json ^6.0.0
  • @rollup/plugin-node-resolve ^15.0.1
  • @rollup/plugin-terser ^0.4.0
  • @rollup/plugin-url ^8.0.1
  • can-npm-publish ^1.3.3
  • chai ^5.0.0
  • eslint ^8.0.1
  • eslint-plugin-jsdoc ^48.0.0
  • glob ^10.0.0
  • i18next-parser ^8.0.0
  • karma ^6.0.0
  • karma-chrome-launcher ^3.1.0
  • karma-firefox-launcher ^2.1.0
  • karma-mocha ^2.0.1
  • karma-source-map-support ^1.4.0
  • mocha ^10.0.0
  • playwright ^1.34.0
  • playwright-core ^1.20.2
  • prettier ^3.0.0
  • rollup ^4.0.0
  • rollup-plugin-copy ^3.3.0
  • rollup-plugin-delete ^2.0.0
  • rollup-plugin-emit-ejs ^3.1.0
  • rollup-plugin-license ^3.0.1
  • rollup-plugin-serve ^2.0.0
  • selfsigned ^2.0.0
  • node >=18.0.0
  • npm >=7.0.0
packages/data-table-view/package.json
  • @dbp-toolkit/auth ^0.3.2
  • @dbp-toolkit/common ^0.3.5
  • @open-wc/scoped-elements ^2.1.0
  • datatables.net ^1.12.1 <1.13
  • datatables.net-buttons ^2.2.3 <2.3
  • datatables.net-buttons-dt ^2.2.3 <2.3
  • datatables.net-dt ^1.12.1 <1.13
  • datatables.net-responsive ^2.3.0 <2.4
  • datatables.net-responsive-dt ^2.3.0 <2.4
  • i18next ^23.0.0
  • jquery ^3.4.1
  • jszip ^3.2.2
  • lit ^3.1.0
  • @esm-bundle/chai ^4.2.0
  • @rollup/plugin-commonjs ^25.0.0
  • @rollup/plugin-json ^6.0.0
  • @rollup/plugin-node-resolve ^15.0.0
  • @rollup/plugin-terser ^0.4.0
  • @rollup/plugin-url ^8.0.0
  • eslint ^8.0.0
  • eslint-plugin-jsdoc ^48.0.0
  • glob ^10.0.0
  • i18next-parser ^8.0.0
  • karma ^6.0.0
  • karma-chrome-launcher ^3.0.0
  • karma-firefox-launcher ^2.1.0
  • karma-mocha ^2.0.1
  • karma-source-map-support ^1.4.0
  • mocha ^10.0.0
  • playwright-core ^1.20.2
  • prettier ^3.0.0
  • rollup ^4.0.0
  • rollup-plugin-copy ^3.1.0
  • rollup-plugin-delete ^2.0.0
  • rollup-plugin-emit-ejs ^3.1.0
  • rollup-plugin-serve ^2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.