inveniosoftware / invenio

Invenio digital library framework
https://invenio.readthedocs.io
MIT License
621 stars 291 forks source link

search: broken display for facets #2904

Open kaplun opened 9 years ago

kaplun commented 9 years ago

The following URL:

http://localhost:4000/search?p=ellis&action_search=&filter=%5B%5B%22%2B%22%2C%22author%22%2C%22Ellis%2C+J%22%5D%2C%5B%22%2B%22%2C%22collection%22%2C%22Articles+%26+Preprints%22%5D%2C%5B%22%21%22%2C%22collection%22%2C%22Articles+%26+Preprints%22%5D%2C%5B%22%2B%22%2C%22year%22%2C%222002%22%5D%5D&ln=en&so=a&sf=most+cited#[["+","author","Ellis, J"],["+","collection","Articles & Preprints"],["!","collection","Articles & Preprints"],["+","year","2002"]]

(Obtained by playing a bit with facets and then sorting by by citations), breaks the facets display (see picture). record1

PXke commented 9 years ago

Any news about this one ?

Do you have an idea of why there is this bad behaviour ?

cc @audub

crepererum commented 9 years ago

Seems that we use an affix element here but that it is somehow broken. If someone wants to pick it up: I introduced a general affix helper in 539e6c5a9d056bfb0efde2664e4f2d159c4716da. See https://github.com/inveniosoftware/invenio/blob/master/invenio/modules/deposit/templates/deposit/run_base.html#L54-L67 for a usage example. Ignore the scrollspy-target because this is for another feature.