Dear Hraban,

In data sabato 7 giugno 2014 18:50:43, Henning Hraban Ramm ha scritto:
> Am 2014-06-06 um 16:11 schrieb Alexander Wagner <[email protected]>:
> > On 06.06.2014 11:52, Henning Hraban Ramm wrote:
> >> In my BFE I check this with:
> >>>>> acc_authorize_action(bfo.user_info, 'viewfulltext‘)
> >> 
> >> And I added this right to access_control_config.py
> >> 
> >> Generally it works, but in list views (collections) it depends on
> >> language - probably a caching problem.
> >> 
> >> E.g. I call my Invenio site and am not logged in - download icons missing
> >> ok in list and detail views. Then I log in and get download icons in
> >> detail views - but in list views only if I switch the language!
> >> (Reloading the page doesn’t help.)> 
> > List view refers to display of hb format, I guess. Usually, in invenio
> > this is cached indeed by means of a bibreformat-job, and this format is
> > redone only if you update the marc of your record. Caching hb is quite
> > advisable, given the fact that it needs to be displayed all the time.
> > 
> > So, displaying links in hb depending on rights of the user is not really
> > supported. We had a similar issue wrt "modify this record" which should
> > only show up if the user has the right to do so. In fact we droped it
> > form HB and it shows only in HD pages.
> 
> Would it be possible to use a different default output format for logged in
> and anonymous users?

That is currently not supported. Additionally, note that depending on your 
configuration, only the English (or default site language format) is cached, 
and that explains why switching language made your download links to appear.

A solution to your problem has been introduced with:
<https://github.com/inveniosoftware/invenio/issues/1464>

in Invenio master.

That means that, if you use Invenio master after commit 
ac059022b55d0848a790fc8c42e8a7dc01cd555e

then you will be able to add 'no_cache="1"' as an attribute to the bibformat 
element you don't want to cache to do the trick :-)

Best regards,
        Samuele
-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>

Reply via email to