Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
78636b7
reafctor: remove evaluation folder with unused classes
andreishket Aug 28, 2025
7feb4c4
refactor: types for the HoverPopover component
andreishket Sep 1, 2025
8d09817
refactor: types for the Author component
andreishket Sep 1, 2025
6e33dd7
refactor: types for the ContextLineTemplate component
andreishket Sep 1, 2025
3f9c034
refactor: types for the NumArticles component
andreishket Sep 1, 2025
be6b91d
refactor: types for the Modifier component
andreishket Sep 1, 2025
c613cca
refactor: types for the Employment component
andreishket Sep 1, 2025
1224120
refactor: types for the DataSource component
andreishket Sep 1, 2025
9c94eed
refactor: types for the TimespanProps component
andreishket Sep 1, 2025
66cd488
refactor: types for the ContextTimeFrame component
andreishket Sep 1, 2025
cd7f954
refactor: types for the DocumentTypes component
andreishket Sep 1, 2025
d0fcc2a
refactor: types for the DocumentLang component
andreishket Sep 1, 2025
c699620
refactor: types for the PaperCount component
andreishket Sep 1, 2025
3c2e381
refactor: types for the DatasetCount component
andreishket Sep 1, 2025
009f797
refactor: types for the Funder component
andreishket Sep 1, 2025
a9b30a2
feat: add --platform linux/amd64
andreishket Sep 3, 2025
78ecd6c
refactor: types for the Employment component
andreishket Sep 8, 2025
6b17e78
refactor: typs for the ProjectRuntime component
andreishket Sep 8, 2025
02d616c
refactor: typs for the LegacySearchLang component
andreishket Sep 8, 2025
74f3482
refactor: types for the Timestamp component
andreishket Sep 8, 2025
9a2d0fd
refactor: types for the MetadataQuality component
andreishket Sep 8, 2025
e20a93f
refactor: types for the SearchLang component
andreishket Sep 8, 2025
9614526
refactor: types for the ResearcherInfo component
andreishket Sep 8, 2025
0966fdd
types for the ResearcherMetricsInfo component
andreishket Sep 8, 2025
a22f3d7
refactor: types for the ContextLine component
andreishket Sep 8, 2025
50d0d21
refactor: group props object destructions
andreishket Sep 8, 2025
f03048e
refactor: props with children as separate type
andreishket Sep 8, 2025
ec9076d
refactor: types for the MoreInfoLink component
andreishket Sep 8, 2025
e688176
refactor: usage of the PropsWithChildren type in the ContextLineTemplate
andreishket Sep 8, 2025
4d375fd
refactor: types for the TitleContext component
andreishket Sep 8, 2025
6f8563c
refactor: types for the AuthorImage component
andreishket Sep 9, 2025
e9d5921
feat: tests for the isDefined function
andreishket Sep 9, 2025
f1e8171
refactor: types for the Footer component
andreishket Sep 12, 2025
aa48af7
refactor: comments for aliases and removal of unused ones
andreishket Sep 12, 2025
42adf4d
feat: aliases for vis/ and vis/js/ folders
andreishket Sep 12, 2025
21a6f48
refactor: replace old aliases with new ones
andreishket Sep 12, 2025
9860cf0
refactor: remove invalid extension
andreishket Sep 12, 2025
7b23e42
refactor: change order of aliases in the config
andreishket Sep 12, 2025
09bf49c
refactor: types folder
andreishket Sep 12, 2025
8fdd1e5
Merge branch 'dev' into refactor/ts-improvements
andreishket Sep 12, 2025
3363859
refactor: typo errors
andreishket Sep 12, 2025
f9af6ac
Merge branch 'refactor/build-platform' into refactor/ts-improvements
andreishket Sep 12, 2025
74cd179
refactor: add missed property to the Localization type
andreishket Sep 12, 2025
158276c
refactor: fixed tree mismatches in the Author component
andreishket Sep 12, 2025
3680b62
refactor: removed old type declarations for images
andreishket Sep 15, 2025
0fa88f4
feat: basic state types
andreishket Sep 15, 2025
d92759b
refactor: decomposition of state type
andreishket Sep 16, 2025
e340a78
feat: state types in the TitleContext component
andreishket Sep 16, 2025
95aa128
feat: types for the Toolbar component
andreishket Sep 16, 2025
c56ba4f
feat: types for the List component
andreishket Sep 16, 2025
5b0610f
refactor: removed progress option for production builds
andreishket Sep 19, 2025
f177abf
Merge branch 'master' into refactor/ts-improvements
andreishket Sep 22, 2025
efaa24d
refactor: the citation_count type after citations bugfix
andreishket Sep 22, 2025
bb1bd60
Merge branch 'master' into refactor/code-cleanup
andreishket Sep 22, 2025
f52f482
bugfix: aliases configuration for tests
andreishket Sep 22, 2025
c935ab4
logging bugfix for docker
chreman Oct 1, 2025
8654981
feat: implementation of the sample data pipeline and frontend connection
andreishket Oct 7, 2025
b53b9f8
feat: url data usage and test cases in the csv
andreishket Oct 9, 2025
9c957e9
feat: add the custom_title post parameter
andreishket Oct 9, 2025
463c3f0
feat: prefixes in documents abstracts
andreishket Oct 9, 2025
3548b39
bugfix: an id for each document
andreishket Oct 9, 2025
9d249f4
bugfix: abstract formatting when all parts are missed
andreishket Oct 10, 2025
5932dbb
refactor: new columns and prefixes in the keywords
andreishket Oct 10, 2025
7f0382c
feat: creation if ids using url and location fields
andreishket Oct 13, 2025
22efbff
feat: custom_title is dynamical
andreishket Oct 13, 2025
e7c10e8
feat: continent information in the coverage field
andreishket Oct 13, 2025
e561db9
bugfix: custom_title is not required parameter
andreishket Oct 13, 2025
d8a80bb
feat: constant with columns names to avoid typos
andreishket Oct 13, 2025
1f76561
feat: primary_interests and research_topics in the abstract field
andreishket Oct 13, 2025
14406ee
feat: handling new lines in abstract columns
andreishket Oct 13, 2025
1089957
refactor: keywords retrieval
andreishket Oct 13, 2025
b562192
feat: test csv file with sample data and test cases
andreishket Oct 13, 2025
425d932
feat: document types for aquanavi
andreishket Oct 13, 2025
f987ee0
bugfix: remove some data from the csv
andreishket Oct 13, 2025
574466c
feat: test cases with non latin characters
andreishket Oct 14, 2025
d57678b
feat: descriptions for all functions
andreishket Oct 14, 2025
a6bde73
feat: prototype connection of React Leaflet
andreishket Oct 14, 2025
647d497
Merge branch 'refactor/ts-improvements' into feat/aquanavi-sample-dat…
andreishket Oct 14, 2025
0aa116d
bugfix: missing type
andreishket Oct 14, 2025
3f6499b
feat: definition of visualization component
andreishket Oct 14, 2025
39d1c8d
refactor: clean up of the Geomap component
andreishket Oct 14, 2025
818fadb
Merge branch 'refactor/code-cleanup' into feat/aquanavi-sample-data-i…
andreishket Oct 14, 2025
10285a5
refactor: latitude and longitude formating
andreishket Oct 14, 2025
7fa2d48
refactor: remove records without coordinates
andreishket Oct 14, 2025
5aa6d6f
feat: display of mesocosms on the map
andreishket Oct 15, 2025
2077297
refactor: remove not required imports
andreishket Oct 15, 2025
3e10c6b
refactor: remove unused React imports
andreishket Oct 15, 2025
43cfe6c
feat: tests for the checkIsEmptyString function
andreishket Oct 15, 2025
58954e9
bugfix: custom title in the params_array
andreishket Oct 15, 2025
502f1e6
refactor: remove dublicate record without location data
andreishket Oct 17, 2025
1417b68
refactor: all test cases in one CSV file
andreishket Oct 17, 2025
97d20bc
feat: concationation of sample data and test cases
andreishket Oct 17, 2025
1b3e722
refactor: remove trailing dot at the end of keywords
andreishket Oct 20, 2025
d5ec73e
refactor: specialist areas sample data and keywords join
andreishket Oct 22, 2025
e96aff3
refactor: removed deletion of trailing dot for keywords
andreishket Oct 22, 2025
2290c3e
refactor: different joining approaches for abstract and keywords
andreishket Oct 22, 2025
10d1ba1
feat: the location component in the list entry
andreishket Oct 27, 2025
5dd6bd8
feat: flag for controlling the build platform
andreishket Oct 27, 2025
4673ebe
feat: the authors info is hidden for geomap visualizations
andreishket Oct 27, 2025
b0bc7d1
feat: the pin component implementation
andreishket Oct 28, 2025
4d7292a
feat: map borders and min zoom configuration
andreishket Oct 28, 2025
303cae8
bugfix: styles of the dot in the pin
andreishket Oct 28, 2025
03b86e8
feat: connection between pins and list entries
andreishket Oct 28, 2025
52666d0
refactor: change name of the flag
andreishket Oct 28, 2025
29ff2fb
Merge pull request #831 from OpenKnowledgeMaps/refactor/build-platform
andreishket Oct 28, 2025
75947a2
feat: search using the location information
andreishket Oct 30, 2025
7175274
feat: search for pins on the map
andreishket Oct 30, 2025
7ed01c5
refactor: data filtering and searching in the separate hook
andreishket Oct 30, 2025
8e3fb21
feat: pin changes color to blue while its title hovered
andreishket Oct 30, 2025
6b22b2d
bugfix: missing configuration in the test case
andreishket Oct 30, 2025
db447ba
feat: page scroll disabling after clicking on the zomm control
andreishket Nov 4, 2025
dcb522d
feat: the zoom control in the right bottom of the map
andreishket Nov 4, 2025
cbbb101
refactor: layer index of the map component
andreishket Nov 4, 2025
0931009
refactor: better map center
andreishket Nov 4, 2025
8420ca8
feat: layer switcher
andreishket Nov 4, 2025
613a915
feat: new title prefix for the geomap visualization
andreishket Nov 5, 2025
1af5c9d
refactor: Geomap component
andreishket Nov 5, 2025
773841f
feat: data quality information in the context line
andreishket Nov 5, 2025
d7b7512
feat: low metadata quality mock
andreishket Nov 5, 2025
17566c1
feat: refactor attribution for layers
andreishket Nov 5, 2025
9bb3de2
feat: opentopomap in the config
andreishket Nov 5, 2025
f9a7fea
feat: font size for layer switcher options
andreishket Nov 6, 2025
66a4c12
feat: Open Sans font for all React Leaflet entities
andreishket Nov 6, 2025
4cd12fe
feat: the area is not displayed for geomap visualizations
andreishket Nov 6, 2025
3eb2689
refactor: height of the geomap visualization container
andreishket Nov 6, 2025
e7b2473
refactor: remove backling for geomap visualizations
andreishket Nov 6, 2025
828dc17
feat: back link for the list entries with geomap vis type
andreishket Nov 6, 2025
6de2939
feat: back link in geomap visualization
andreishket Nov 6, 2025
e8b4bc7
bugfix: build problem
andreishket Nov 6, 2025
d872f9d
feat: the Credit line component in geomap visualizations
andreishket Nov 7, 2025
f98edd0
feat: list scroll for streamgraphs and geomaps
andreishket Nov 10, 2025
b625e19
feat: layer switcher and zoom controls disabling with config
andreishket Nov 10, 2025
08d0a76
refactor: better types for the config
andreishket Nov 10, 2025
03d8ed9
refactor: naming of the properties in the config
andreishket Nov 10, 2025
418eb3e
feat: remove create a knowledge map button for geomaps
andreishket Nov 10, 2025
8f0ccfb
bugfix: situations when service is equals to null
andreishket Nov 10, 2025
b1d2aac
refactor: remove space between the credit line and vis
andreishket Nov 11, 2025
8c1142e
feat: layer switching disabling
andreishket Nov 11, 2025
9e95458
refactor: components splitting
andreishket Nov 11, 2025
7f61ee0
feat: pin deselection while map is clicked
andreishket Nov 11, 2025
8a26978
bugfix: list scroll reset on the map click
andreishket Nov 12, 2025
b7fd186
bugfix: no selection reset on map overview clicks
andreishket Nov 12, 2025
c5bf181
feat: globals for eslint
andreishket Nov 12, 2025
a6c47fd
refactor: replace is_streamgraph with visualization_type
andreishket Nov 13, 2025
345225d
bugfix: rendering of labels boxes
andreishket Nov 17, 2025
bebc073
feat: abstract formatting
andreishket Nov 18, 2025
4eb8059
feat: selected Pin is closer that others
andreishket Nov 18, 2025
aff1dd2
feat: unique more info modal for all geomaps
andreishket Nov 18, 2025
52c8f77
refactor: replace specific vis types with visualization word
andreishket Nov 18, 2025
2311854
feat: remove the Create a knowledge map button
andreishket Nov 20, 2025
687a954
Merge remote-tracking branch 'origin/altmetric-api' into feat/aquanav…
andreishket Nov 21, 2025
2d1ec22
Merge branch 'master' into feat/aquanavi-geomap
andreishket Nov 28, 2025
1847cbf
refactor: initial zoom level is low
andreishket Dec 10, 2025
1938d7b
feat: tests for geomap dataprocessing functions
andreishket Dec 11, 2025
547e4ae
Merge branch 'feat/aquanavi-geomap' into release/aquanavi-geomap
andreishket Jan 20, 2026
cd5029a
refactor: remove test cases from geomap data
andreishket Jan 20, 2026
f5aae01
Update searchAQUANAVI.php mock params
chreman Jan 21, 2026
6ef14ab
Update searchAQUANAVI.php search params
chreman Jan 21, 2026
ed63b91
Merge pull request #847 from OpenKnowledgeMaps/release/aquanavi-geomap
andreishket Jan 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"targets": "> 0.25%, not dead"
}
],
"@babel/preset-react",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
],
"@babel/preset-typescript"
]
}
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from "@eslint/js";
import parserBabel from "@babel/eslint-parser";
import parserTs from "@typescript-eslint/parser";
import pluginReact from "eslint-plugin-react";
import globals from "globals";
import pluginReactHooks from "eslint-plugin-react-hooks";
import pluginTs from "@typescript-eslint/eslint-plugin";
import pluginSimpleImportSort from "eslint-plugin-simple-import-sort";
Expand All @@ -21,6 +22,10 @@ export default [
ecmaFeatures: { jsx: true },
project: true,
},
globals: {
...globals.browser,
...globals.es2021,
},
},
plugins: {
"@typescript-eslint": pluginTs,
Expand Down Expand Up @@ -81,6 +86,10 @@ export default [
ecmaFeatures: {
jsx: true,
},
globals: {
...globals.browser,
...globals.es2021,
},
},
},
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion local_dev/searchflow-container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-apache
FROM php:8.2-apache-bookworm

LABEL maintainer="Chris Kittel <[email protected]>"

Expand Down
79 changes: 78 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"test": "TZ='Europe/Vienna' vitest",
"dev": "webpack --progress --watch --mode=development",
"prod": "webpack --progress",
"prod": "webpack",
"start": "webpack serve --progress --mode=development --env example=base",
"example:base": "npm start",
"example:pubmed": "npm start -- --env example=pubmed",
Expand Down Expand Up @@ -44,12 +44,14 @@
"hypher": "^0.2.5",
"iso-639-1": "^3.1.5",
"jquery": "^3.7.1",
"leaflet": "^1.9.4",
"mark.js": "^8.11.1",
"react": "^18.3.1",
"react-bootstrap": "^0.33.1",
"react-dom": "^18.3.1",
"react-highlight-words": "^0.21.0",
"react-hyphen": "^1.4.0",
"react-leaflet": "^4.2.1",
"react-redux": "^8.1.3",
"react-test-renderer": "^18.3.1",
"redux": "^5.0.1",
Expand All @@ -70,6 +72,7 @@
"@types/dateformat": "^5.0.3",
"@types/jest": "^29.5.14",
"@types/jquery": "^3.5.32",
"@types/leaflet": "^1.9.20",
"@types/node": "^22.15.18",
"@types/react": "^18.3.1",
"@types/react-bootstrap": "^0.32.37",
Expand All @@ -80,13 +83,14 @@
"@vitejs/plugin-react": "^4.4.1",
"babel-loader": "^10.0.0",
"bootstrap-sass": "^3.3.6",
"copy-webpack-plugin": "^13.0.1",
"css-loader": "^7.1.2",
"eslint": "^9.29.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"file-loader": "^6.2.0",
"globals": "^15.13.0",
"globals": "^15.15.0",
"html-webpack-plugin": "^5.5.0",
"imports-loader": "^5.0.0",
"jsdom": "^26.1.0",
Expand Down
27 changes: 0 additions & 27 deletions server/classes/headstart/evaluation/logger/FileLogger.php

This file was deleted.

14 changes: 0 additions & 14 deletions server/classes/headstart/evaluation/logger/Logger.php

This file was deleted.

1 change: 1 addition & 0 deletions server/services/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function search(
"base" => "BASE",
"openaire" => "OpenAire",
"orcid" => "ORCID",
"aquanavi" => "AQUANAVI",
);

$query = ($do_clean_query === true)
Expand Down
34 changes: 34 additions & 0 deletions server/services/searchAQUANAVI.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
header('Content-type: application/json');

require_once dirname(__FILE__) . '/../classes/headstart/library/CommUtils.php';
require_once dirname(__FILE__) . '/search.php';

use headstart\library;

// Get real request parameters
$query = library\CommUtils::getParameter($_POST, "q");
$precomputed_id = $_POST["unique_id"] ?? null;

// Mock some request parameters
$post_params = $_POST;
$post_params["min_descsize"] = "0";
$post_params["lang_id"] = ["all-lang"];
$post_params["vis_type"] = "geomap";
$post_params["from"] = "1665-01-01";
$post_params["to"] = "2026-01-21";
$post_params["document_types"] = ["F"];
$post_params["sorting"] = "most-relevant";
$post_params["time_range"] = "user-defined";

// And some others...
$params_array = ["from", "to", "document_types", "sorting", "min_descsize", "lang_id"];

$is_custom_array_set = isset($post_params["custom_title"]);
if ($is_custom_array_set) {
$params_array[] = "custom_title";
}

$result = search("aquanavi", $query, $post_params, $params_array, true, true, null, $precomputed_id, false);
echo $result
?>
51 changes: 51 additions & 0 deletions server/workers/api/src/apis/aquanavi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import os

from flask import request, make_response, abort
from flask_restx import Namespace, Resource, fields
from common.aquanavi.mapping import map_sample_data

# Namespace setup
aquanavi_ns = Namespace("aquanavi", description="AQUANAVI API operations")

# Model definition
aquanavi_querymodel = aquanavi_ns.model("SearchQuery", {
"q": fields.String(
example='aquatic mesocosm facilities',
description='query string',
required=True
),
}
)

@aquanavi_ns.route("/search")
class Search(Resource):
@aquanavi_ns.doc(responses={ 200: "OK", 400: "Invalid search parameters" })
@aquanavi_ns.expect(aquanavi_querymodel)
@aquanavi_ns.produces(["application/json", "text/csv"])
def post(self):
"""
Perform a search query using AQUANAVI API.
"""
try:
sample_data = map_sample_data()
headers = self.get_response_headers()
return make_response(sample_data, 200, headers)
except Exception as e:
aquanavi_ns.logger.error(e)
abort(500, "Problem encountered, check logs.")

def get_response_headers(self):
headers = {}
if request.headers["Accept"] == "application/json":
headers["Content-Type"] = "application/json"
return headers


@aquanavi_ns.route("/service_version")
class ServiceVersion(Resource):
def get(self):
"""
Get the current service version.
"""
result = {"service_version": os.getenv("SERVICE_VERSION")}
return make_response(result, 200, { "Content-Type": "application/json" })
Loading