Skip to content

Commit 8760114

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents 74ba940 + b392500 commit 8760114

706 files changed

Lines changed: 22666 additions & 803131 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dist/
1818
.Rhistory
1919
.ipynb_checkpoints
2020
.Rprofile
21+
.Rproj*
2122
coverage/
2223

2324
# local deployment files
@@ -33,4 +34,5 @@ coverage/
3334
/lc_browseview_cache.json
3435
/lc_cache.json
3536
/linkedcat.sqlite
36-
.env
37+
.env
38+
.Rproj.user

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Changelog
22

3+
## 2022-01-31
4+
5+
### New features
6+
7+
- new citation button & modal generating citations (APA, MLA, Chicago, ACM) for each paper
8+
9+
### Changes
10+
11+
- unified appearance and functionality of copy buttons in modals
12+
- FontAwesome update: new icons; reduced dependency on outer page imports
13+
14+
### Bug fixes
15+
16+
- fixed crashing app when a pdf preview was opened during animation
17+
18+
### Internal
19+
20+
- removed unused local examples; added new local examples (triple, viper, covis)
21+
22+
## 2022-01-20
23+
24+
### New features
25+
26+
- backend data sanitization
27+
- pdfs searchable by the searchbox
28+
29+
### Changes
30+
31+
- data preprocessing refactoring
32+
33+
### Bug fixes
34+
35+
- footer size on narrow screens
36+
37+
### Internal
38+
39+
- test database update
40+
41+
## 2021-12-22
42+
43+
### Changes
44+
45+
- unified HTML & CSS of various paper tags (access tags, dataset tag, custom tags)
46+
347
## 2021-12-09
448

549
### New features

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ Head Start is a web-based knowledge mapping software intended to give researcher
99
### Client
1010
To get started, clone this repository. Next, duplicate the file `config.example.js` in the root folder and rename it to `config.js`.
1111

12+
Set the `skin` property in the config to one of the following values to use the
13+
particular data integration skin:
14+
15+
- `"covis"`
16+
- `"triple"`
17+
- `"viper"`
18+
19+
or leave it empty (`""`) for the default project website skin.
20+
1221
Make sure to have installed `node` version >= 14.18.1 and `npm` version >=8.1.1 (best way to install is with [nvm](https://github.com/nvm-sh/nvm), `nvm install 14.18.1`) and run the following two commands to build the Headstart client:
1322

1423
npm install
@@ -20,18 +29,24 @@ Now you can run a local dev server:
2029

2130
npm start
2231

23-
To run Headstart on a different server (e.g. Apache), you need to set the publicPath in `config.js` to the URL of the `dist` directory:
24-
* Dev: specify the full path including protocol, e.g. `http://localhost/headstart/dist`
25-
* Production: specify the full path excluding protocol, e.g. `//example.org/headstart/dist`
32+
Note: you can also set the skin in this step as an argument to the `npm start` command (e.g. `npm start -- --env skin=triple`).
2633

27-
Point your browser to one of the following addresses:
34+
The browser will automatically open a new window with the example specified by the skin.
35+
36+
Alternatively, you can point your browser to one of the following addresses:
2837

29-
http://localhost:8080/local_files/
30-
http://localhost:8080/local_streamgraph/
3138
http://localhost:8080/project_website/base.html
3239
http://localhost:8080/project_website/pubmed.html
40+
http://localhost:8080/local_covis/
41+
http://localhost:8080/local_triple/map.html
42+
http://localhost:8080/local_triple/stream.html
43+
http://localhost:8080/local_viper/
44+
45+
If everything has worked out, you should see the example visualization.
3346

34-
If everything has worked out, you should see the visualization shown above.
47+
To run Headstart on a different server (e.g. Apache), you need to set the publicPath in `config.js` to the URL of the `dist` directory:
48+
* Dev: specify the full path including protocol, e.g. `http://localhost/headstart/dist`
49+
* Production: specify the full path excluding protocol, e.g. `//example.org/headstart/dist`
3550

3651
See [client configuration](doc/README.md) for details on adapting the client.
3752

@@ -93,4 +108,4 @@ Head Start is licensed under [MIT](LICENSE).
93108
## Citation
94109
If you use Head Start in your research, please cite it as follows:
95110

96-
Peter Kraker, Christopher Kittel, Maxi Schramm, Rainer Bachleitner, Thomas Arrow, Scott Chamberlain, Asura Enkhbayar, Yael Stein, Philipp Weissensteiner, Mike Skaug, Katrin Leinweber & Open Knowledge Maps team and contributors. (2019, March 7). Headstart 5 (Version v5). Zenodo. http://doi.org/10.5281/zenodo.2587129
111+
Peter Kraker, Christopher Kittel, Maxi Schramm, Jan Konstant, Rainer Bachleitner, Thomas Arrow, Scott Chamberlain, Asura Enkhbayar, Yael Stein, Philipp Weissensteiner, Mike Skaug, Katrin Leinweber & Open Knowledge Maps team and contributors. (2019, March 7). Headstart 5 (Version v5). Zenodo. http://doi.org/10.5281/zenodo.2587129

doc/server_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ Duplicate config.ini in server/preprocessing/conf/ and rename it to config_local
9090
## Logging configuration
9191

9292
In the default setting, Headstart will log behavior only to the console. If you want to log to a file, please add following environment variable to your Renviron (in local mode) or Renviron.site (if called on a server). Headstart will then log events to a file on the `INFO` loglevel.
93-
* `HEADSTART_LOGFILE`: Path to a logfile, e.g. `/path/to/logfile.log`. Please make sure that the folder structure exists, e.g. `/path/to/`.
93+
* `LOGFILE`: Path to a logfile, e.g. `/path/to/logfile.log`. Please make sure that the folder structure exists, e.g. `/path/to/`.

docker-compose-dataworker.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '3.7'
2+
3+
services:
4+
5+
dataprocessing:
6+
image: dataprocessing:${SERVICE_VERSION}
7+
env_file:
8+
- server/workers/dataprocessing/dataprocessing.env
9+
environment:
10+
SERVICE_VERSION: "${SERVICE_VERSION}"
11+
REDIS_HOST: "${REDIS_HOST}"
12+
REDIS_PORT: "${REDIS_PORT}"
13+
REDIS_DB: "${REDIS_DB}"
14+
REDIS_PASSWORD: "${REDIS_PASSWORD}"
15+
REDIS_SSL: "${REDIS_SSL}"
16+
restart: always
17+
volumes:
18+
- /opt/local/renv/cache:/renv/cache
19+
- /var/log/headstart:/var/log/headstart
20+
network_mode: host

docker-compose.yml

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
- headstart
2727

2828
redis:
29-
image: 'redis:4.0-alpine'
29+
image: 'redis:6.0-alpine'
3030
restart: always
3131
hostname: "${REDIS_HOST}"
3232
environment:
@@ -36,6 +36,9 @@ services:
3636
volumes:
3737
- 'redis:/var/lib/redis/data'
3838
- ./server/workers/redis.conf:/etc/redis/redis.conf
39+
- ./server/workers/certs:/etc/certs
40+
ports:
41+
- "127.0.0.1:${REDIS_PORT}:6379"
3942
restart: always
4043
networks:
4144
- headstart
@@ -49,6 +52,11 @@ services:
4952
REDIS_PORT: "${REDIS_PORT}"
5053
REDIS_PASSWORD: "${REDIS_PASSWORD}"
5154
REDIS_DB: "${REDIS_DB}"
55+
REDIS_SSL: "${REDIS_SSL}"
56+
BEHIND_PROXY: "${BEHIND_PROXY}"
57+
DEFAULT_DATABASE: "${DEFAULT_DATABASE}"
58+
DATABASES: "${DATABASES}"
59+
FLASK_ENV: "${FLASK_ENV}"
5260
command: ["gunicorn", "--workers", "10", "--threads", "2", "-b", "0.0.0.0:${API_PORT}", "app:app", "--timeout", "300"]
5361
depends_on:
5462
- redis
@@ -64,6 +72,10 @@ services:
6472
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
6573
POSTGRES_HOST: "${POSTGRES_HOST}"
6674
POSTGRES_PORT: "${POSTGRES_PORT}"
75+
BEHIND_PROXY: "${BEHIND_PROXY}"
76+
DEFAULT_DATABASE: "${DEFAULT_DATABASE}"
77+
DATABASES: "${DATABASES}"
78+
FLASK_ENV: "${FLASK_ENV}"
6779
command: ["gunicorn", "--workers", "10", "--threads", "2", "-b", "0.0.0.0:${API_PORT}", "app:app", "--timeout", "300"]
6880
networks:
6981
- headstart
@@ -78,6 +90,15 @@ services:
7890
REDIS_PORT: "${REDIS_PORT}"
7991
REDIS_DB: "${REDIS_DB}"
8092
REDIS_PASSWORD: "${REDIS_PASSWORD}"
93+
REDIS_SSL: "${REDIS_SSL}"
94+
LOGLEVEL: "${LOGLEVEL}"
95+
TRIPLE_USER: "${TRIPLE_USER}"
96+
TRIPLE_PASS: "${TRIPLE_PASS}"
97+
TRIPLE_HOST: "${TRIPLE_HOST}"
98+
TRIPLE_PORT: "${TRIPLE_PORT}"
99+
TRIPLE_DOCUMENTS_INDEX: "${TRIPLE_DOCUMENTS_INDEX}"
100+
TRIPLE_PROJECTS_INDEX: "${TRIPLE_PROJECTS_INDEX}"
101+
TRIPLE_AUTHORS_INDEX: "${TRIPLE_AUTHORS_INDEX}"
81102
restart: always
82103
depends_on:
83104
- redis
@@ -94,6 +115,8 @@ services:
94115
REDIS_PORT: "${REDIS_PORT}"
95116
REDIS_DB: "${REDIS_DB}"
96117
REDIS_PASSWORD: "${REDIS_PASSWORD}"
118+
REDIS_SSL: "${REDIS_SSL}"
119+
LOGLEVEL: "${LOGLEVEL}"
97120
restart: always
98121
depends_on:
99122
- redis
@@ -110,6 +133,8 @@ services:
110133
REDIS_PORT: "${REDIS_PORT}"
111134
REDIS_DB: "${REDIS_DB}"
112135
REDIS_PASSWORD: "${REDIS_PASSWORD}"
136+
REDIS_SSL: "${REDIS_SSL}"
137+
LOGLEVEL: "${LOGLEVEL}"
113138
restart: always
114139
volumes:
115140
- /opt/local/renv/cache:/renv/cache
@@ -121,14 +146,21 @@ services:
121146

122147
base:
123148
image: base:${SERVICE_VERSION}
124-
env_file:
125-
- server/workers/base/base.env
126149
environment:
127150
SERVICE_VERSION: "${SERVICE_VERSION}"
128151
REDIS_HOST: "${REDIS_HOST}"
129152
REDIS_PORT: "${REDIS_PORT}"
130153
REDIS_DB: "${REDIS_DB}"
131154
REDIS_PASSWORD: "${REDIS_PASSWORD}"
155+
REDIS_SSL: "${REDIS_SSL}"
156+
LOGLEVEL: "${LOGLEVEL}"
157+
LOGFILE: "/var/log/headstart/headstart.log"
158+
RENV_VERSION: 0.14.0-5
159+
CRAN_REPOS: https://cran.wu.ac.at
160+
LC_ALL: "en_US.UTF-8"
161+
LANG: "en_US.UTF-8"
162+
RENV_PATHS_CACHE: /renv/cache
163+
PYTHONIOENCODING: "utf-8"
132164
restart: always
133165
volumes:
134166
- /opt/local/renv/cache:/renv/cache
@@ -140,14 +172,21 @@ services:
140172

141173
pubmed:
142174
image: pubmed:${SERVICE_VERSION}
143-
env_file:
144-
- server/workers/pubmed/pubmed.env
145175
environment:
146176
SERVICE_VERSION: "${SERVICE_VERSION}"
147177
REDIS_HOST: "${REDIS_HOST}"
148178
REDIS_PORT: "${REDIS_PORT}"
149179
REDIS_DB: "${REDIS_DB}"
150180
REDIS_PASSWORD: "${REDIS_PASSWORD}"
181+
REDIS_SSL: "${REDIS_SSL}"
182+
LOGLEVEL: "${LOGLEVEL}"
183+
LOGFILE: "/var/log/headstart/headstart.log"
184+
RENV_VERSION: 0.14.0-5
185+
CRAN_REPOS: https://cran.wu.ac.at
186+
LC_ALL: "en_US.UTF-8"
187+
LANG: "en_US.UTF-8"
188+
RENV_PATHS_CACHE: /renv/cache
189+
PYTHONIOENCODING: "utf-8"
151190
restart: always
152191
volumes:
153192
- /opt/local/renv/cache:/renv/cache
@@ -159,14 +198,21 @@ services:
159198

160199
openaire:
161200
image: openaire:${SERVICE_VERSION}
162-
env_file:
163-
- server/workers/openaire/openaire.env
164201
environment:
165202
SERVICE_VERSION: "${SERVICE_VERSION}"
166203
REDIS_HOST: "${REDIS_HOST}"
167204
REDIS_PORT: "${REDIS_PORT}"
168205
REDIS_DB: "${REDIS_DB}"
169206
REDIS_PASSWORD: "${REDIS_PASSWORD}"
207+
REDIS_SSL: "${REDIS_SSL}"
208+
LOGLEVEL: "${LOGLEVEL}"
209+
LOGFILE: "/var/log/headstart/headstart.log"
210+
RENV_VERSION: 0.14.0-5
211+
CRAN_REPOS: https://cran.wu.ac.at
212+
LC_ALL: "en_US.UTF-8"
213+
LANG: "en_US.UTF-8"
214+
RENV_PATHS_CACHE: /renv/cache
215+
PYTHONIOENCODING: "utf-8"
170216
restart: always
171217
volumes:
172218
- /opt/local/renv/cache:/renv/cache

examples/cris_vis/README.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

examples/cris_vis/config.example.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)