clarin-eric / fcs-sru-aggregator

CLARIN Federated Content Search v3 Aggregator – Augmenting your Search Engine
GNU General Public License v3.0
7 stars 2 forks source link

Add advanced layer grouping by search hit #38

Closed Querela closed 1 year ago

Querela commented 2 years ago

This introduces grouping of the AdvancedDataView layers in the frontend. If an corpus/endpoint provides more than one layer for a single result then the layers will be grouped with a small, visible line. If all results of a corpus/endpoint only provide a single layer then no line is shown.

I'm a bit unsure how to test the src/main/resources/assets/js/pages/aggregatorpage.jsx code. Theoretically, it should be sound but a test might be good. Or console log outputs. Exports seem to work fine.

Examples #### Example without line: ![grafik](https://user-images.githubusercontent.com/1648294/176925794-cf416044-4b6f-477f-b079-a7f2c055264b.png) #### Example with line: ![grafik](https://user-images.githubusercontent.com/1648294/176925845-6a544dbb-1e11-4e8c-8641-ad5a069f6c91.png)
Querela commented 1 year ago

Done in #51.