You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
Download of cover images for SISIS (maybe for others too, didn't check it) is carried out in libopac (in parse_search and in loadDetail) without (of course) honoring the app's setting on_data_load_covers, i.e. cover images are downloaded even if on_data_load_covers is set to false and you're on mobile data. The reason seems to be that you must download the image as long as the session token has not yet expired. Or maybe this just emerged historically as the option was added much later (8ae23c8) and it wasn't noticed at this point that the download may be performed by libopac itself.
The text was updated successfully, but these errors were encountered:
Indeed, this is because of the session token. I think the only other API where this is needed is OPEN, where covers sometimes need to be accessed using a POST request. We also recently introduced this for covers in the account view, as it is needed by OPEN (ca4b725).
Yes, we should respect the option in this case as well. Probably there should be an additional function defined in OpacApi (e.g. setCoverBitmapsEnabled) and implemented in BaseApi which the app then uses after constructing a new API instance. Then, this can be checked anywhere where setCoverBitmap or downloadCover are used, before trying to download the image.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Download of cover images for SISIS (maybe for others too, didn't check it) is carried out in
libopac
(inparse_search
and inloadDetail
) without (of course) honoring the app's settingon_data_load_covers
, i.e. cover images are downloaded even ifon_data_load_covers
is set tofalse
and you're on mobile data. The reason seems to be that you must download the image as long as the session token has not yet expired. Or maybe this just emerged historically as the option was added much later (8ae23c8) and it wasn't noticed at this point that the download may be performed bylibopac
itself.The text was updated successfully, but these errors were encountered: