HistoryAtState / hsg-shell

Source code for the history.state.gov website
https://history.state.gov
8 stars 13 forks source link

Create component "Filter Administration" #292

Open plutonik-a opened 6 years ago

plutonik-a commented 6 years ago

Display "Filter by administrations" in the result page. First 3 options are shown, the rest ist hidden and will be expanded by clicking the "show more" link.

bildschirmfoto 2017-11-13 um 14 16 04

Update: from https://github.com/HistoryAtState/hsg-shell/issues/284#issuecomment-343969089


Parent: #284 Dependent on: #287

joewiz commented 6 years ago

Please see comments 2-7 from https://github.com/HistoryAtState/hsg-shell/issues/284#issuecomment-343969089.

joewiz commented 6 years ago

@plutonik-a Just to be clear, the Administrations filter will just show a flat list of administrations, not a nested list of volumes in each administration as in the sample code that you just pasted in here. The volumes now have their own separate filter.

plutonik-a commented 6 years ago

@joewiz Ok, thanks for pointing this out. I will delete the comment.

tuurma commented 6 years ago

@plutonik-a please check again the parameters, I will take over afterwards and implement the filter on the backend

tuurma commented 6 years ago

Information about volume being part of administration grouping is stored in collection(" /db/apps/frus/bibliography")//volume[@id={VOLUME}]/administration

plutonik-a commented 6 years ago

Status: The UI is completely implemented, search parameters are correctly passed on.

Template: pages/search/_filter-administrations.html (already implemented but commented-out in pages/search/search-result.html)