[Koha-bugs] [Bug 28235] Cover images are showing very large in search results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 31 22:00:23 CET 2022


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

Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |caroline.cyr-la-rose at inlibr
                   |                            |o.com

--- Comment #1 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
I agree. I think we should limit the size of the image, regardless of the
source image size. The problem is present in the staff interface search results
and in the OPAC detailed record.

I created a MARC21 file with a couple of records, including one that has a
image URL in 956$u.

To test:
Note: I used MARC 21
1. In Koha, add 956$u to the default MARC bibliographic framework
   1.1. Go to Administration > MARC bibliographic framework
   1.2. Click "Actions" > "MARC Structure" to the right of the default
framework
   1.3. Search for tag 956
   1.4. Click "Actions" > "Edit subfields" next to 956
   1.5. Go to the "u" tab
   1.6. Make sure the subfield is managed in tab 9
   1.7. In Visibility, check OPAC, Intranet, and Editor
   1.8. Click "Save changes"

2. Edit the CustomCoverImages system preferences
   2.1. Go to Administration > Global system preferences
   2.2. Search for CustomCoverImages
   2.3. Edit the system preferences like this
        - CustomCoverImages: Show
        - OPACCustomCoverImages: Show
        - CustomCoverImagesURL: {956$u}
   2.4. Click Save all Enhanced content preferences

3. Import the test records
   3.1. Download the test record file
   3.2. Go to Cataloging > Stage records for import
   3.3. Click "Browse" and choose the test file
   3.4. Click "Upload file"
   3.5. Click "Stage for import"
   3.6. Click "View details of enqueued job"
   3.7. Click "View batch"
   3.8. Click "Import this batch into the catalog"

4. In the staff interface, search the catalogue for "As you like it"
--> Note that the image is huge

5. Click on the title to access the detailed record
--> Note that the image is a normal size

6. Go to the OPAC, search for "As you like it"
--> Note that the image is a normal size

7. Click on the title to access the detailed record
--> Note that the image is huge

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


More information about the Koha-bugs mailing list