pelagios / peripleo2

The Pelagios Exploration Engine
Other
21 stars 1 forks source link

Entity cards: display inbound link info #154

Closed rsimon closed 7 years ago

rsimon commented 7 years ago

The 'inverse' to #153. While object selection should list the entities the object refers to, entity selection should show how many objects link to the entity. This now works for places, but not for people or time periods. The process is completely the same though, we only need to streamline and refactor things a bit.

Also requires some work on the query side. There should be no top_places argument any more (but a top_references?), and proper division of people/places/periods in the JSON response.

(BTW: this also relates to the issue of local vs. filtered search, #127. When coming via the item, selecting a referenced entity moves to filtered search. When coming via the entity, selecting the inbound references moves to a local search.)

rsimon commented 7 years ago

Basically done, but related people aren't treated & there is a bit of code redundancy. Eliminate, clean up, move into baseCard.js.