[Koha-bugs] [Bug 30082] Bibliographic details tab missing when user can't add local cover image

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 11 16:31:13 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30082

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 130510
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130510&action=edit
Bug 30082: Bibliographic details tab missing when user can't add local cover
image

This patch corrects the template logic which determines whether the
"Images" tab should be displayed on the bibliographic detail page. The
"Images" tab should display whenever local cover images are enabled, not
just if the user has permission to manage cover images.

To test, apply the patch and go to Administration -> System preferences.

- Enable the LocalCoverImages system preference.
- Locate and view the detail page for a bibliographic record in the
  catalog which doesn't have a local cover image attached.

  - If you are logged in as a user with upload_local_cover_images
    permission you should see an "Images" tab with the message "No
    images have been uploaded for this bibliographic record yet" and an
    upload button.
  - If you are logged in as a user without upload_local_cover_images
    permission you should see an "Images" tab with just the "No
    images..." message.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list