Giter Club home page Giter Club logo

arosenius-archive-gui's Introduction

The Ivar Arosenius archive frontend

A React.js frontend for the Ivar Arosenius online archive (https://aroseniusarkivet.dh.gu.se/).

The frontend connects to a backend whose source code can be found here: https://github.com/CDH-DevTeam/arosenius-api

There is also an administration frontend for editing the data: https://github.com/CDH-DevTeam/arosenius-admin

Getting started

To build the archive from the source code, first clone the repository or fork it to your own repository. Then install all JS dependencies and finally build the site. Node 11 or lower is required (12 will not work).

git clone https://github.com/CDH-DevTeam/arosenius-archive-gui.git
cd arosenius-archive-gui
nvm use # or otherwise make sure you are using Node <=11
yarn install
# Create scripts/config.js (see below)
yarn dev
# Visit www/index.html in a web browser

Gulp outputs www/scripts/app.js and www/css/style.css. The site entry point is www/index.html; open it directly in a web browser or serve it with Nginx or similar.

When using yarn dev, the build process keeps watching source files and rebuilds instantly on changes.

Config file

The scripts/config.js file must include some configuration needed to run the archive. The apiUrl and adminUrl urls are expected to serve the aforementioned backend and administration frontend, respectively. The endpoints parameters must agree with the routes specified in the backend code.

export default {
	apiUrl: '[url]/', // link to the projects API
	imageUrl: '[api url]/images/', // link to the base image folder of the projects API
	adminUrl: '[url]', // link to the projects Administration system
	endpoints: { // API endpoints for various datatypes
		documents: 'documents',
		document: 'document/',
		autocomplete: 'autocomplete',
		tags: 'tags',
		persons: 'persons',
		places: 'places',
		genres: 'genres',
		museums: 'museums',
		types: 'types',
		year_range: 'year_range',
		tag_cloud: 'tags/cloud'
	}
};

Deploying

Clone the repo to the server, create scripts/config.js and run the build. (Again, make sure to use Node <=11.)

cd arosenius-archive-gui
git pull
nvm use
yarn install
yarn build

Populate the www/nearest_neighbors and www/tsne_data directories with data from arosenius-nearest-neighbors (see instructions there).

arosenius-archive-gui's People

Contributors

arildm avatar dependabot[bot] avatar jonathanwestin avatar majsan avatar traustid avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jonathanwestin

arosenius-archive-gui's Issues

Carousel for series

For the keyword type series, images are ordered (by title). The ordinary masonry-based gallery does not communicate this order very well. A carousel would be better, with the current image indicated.

Current view:

Screenshot 2021-05-04 at 18 13 30

Related gallery "Visa alla" for tags has wrong url

The image display page features several galleries of related images. If there are many images, the gallery has a Visa alla link. For tag-based galleries, that link is wrong: it has tags/tag where it should have tags/tags

This image: https://aroseniusarkivet.dh.gu.se/#/image/290
under Fler objekt relaterade till klänning
links to: https://aroseniusarkivet.dh.gu.se/#/search/tags/tag/Kl%C3%A4nning
It should link to: https://aroseniusarkivet.dh.gu.se/#/search/tags/tags/Kl%C3%A4nning

Flag images that should only appear in main gallery

As some images are a perhaps a bit sensitive, it would be good if they were not included in suggestions (the mini-galleries below another work of art). If there was a flag that said something like "Controversial", so controversial images could be marked, then perhaps it would be possible to hide them (or not include them at all) in the mini-galleries?

Tidslinje does not include all objects from a certain year

To reproduce:

  1. go to tidslinje and 1908
  2. notice that there are only a few images from the Lillans Kattresa (publicerad) series. Instead of 16 there are only 3-4.

See if there is an artificial limitation for number of documents that can be shown. And: it would be better if the documents of each year were ordered alphabetically.

Series with more than 10 images appear in wrong order

When a series of images (Kattresan is the only one I have found) has more than 10 images, the following thing happens:

  1. the series-gallery displays them in the wrong order since it is based on the names of the individual painting. i.e "Lillans kattresa (1 av 32)" is followed by Lillans kattresa (10 av 32) instead of Lillans kattresa (2 av 32).

  2. the series gallery only displays ten images, so the rest of the images (21 in total) is not accessible

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.