Display images in lists and loan histories in both OPAC and the staff interface, similar to when conducting a search.
The patch adds images in the list page in staff interface and make the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl) and the Checkout history page (opac-readingrecord.pl) to be able to display images comming from plugin.
Created attachment 163744 [details] [review] Bug 36154: Add the ability for some pages to be able to use images comming from plugin The patch adds images in the list page in staff interface and make the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl) and the Checkout history page (opac-readingrecord.pl) to be able to display images comming from plugin. To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a nwalist 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover»
I tested this. I added some local cover images to a few items in a list. I could see the Cover column for the list, but not the local images. I checked the Opac and did not see any local cover images. I turned on the system preference OPACLocalCoverImages to see the images in the OPAC and they did not show in the Patron Summary, Patron Checkout History, or in the public list. There was no separate column for the Cover image in the Patron Summary or Checkout History. I then turned on: AmazonCoverImages OPACAmazonCoverImages This then displayed Amazon cover images and my local cover images in the OPAC. The cover images still did not show in the staff interface list.
Created attachment 168157 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover»
Created attachment 168158 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin.
Created attachment 168925 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins
Created attachment 170295 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover»
Created attachment 170296 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin.
Created attachment 170297 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins
Created attachment 173593 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover» https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 173594 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin. https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 173595 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 175490 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover» https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 175491 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin. https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 175492 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 179892 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover» https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 179893 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin. https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 179894 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 181290 [details] [review] Bug 36154: Showing LocalCoverImages and CustomCoverImages in the list page in staff interface To test 1. Log in to the staff interface 2. Make sure the system preference LocalCoverImages has «Show» value 3. Create a new list 4.1. Click on «More» menu then click on «List» and click on «New List» 4. Search for a record and add a local image to it 5. Add the record to the list created on step 4.1 6. Check the list ----> The image is not displayed 7. Apply the patch 8. Check the list again ----> the image is now display in a new column named «Cover» 9. Put the system preference LocalCoverImages to «Don't show» and CustomCoverImages to « Show » and add an image url to CustomCoverImagesURL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/481px-Cat03.jpg) 10. Check the list again ----> the image in CustomCoverImagesURL is display in the column named «Cover» https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 181291 [details] [review] Bug 36154: Display images coming from plugin this patch makes the summary page(opac-user), the list pages (opac-shelves.pl, shelves.pl), the Checkout history page (opac-readingrecord.pl) and shelfbrowser to be able to display images coming from plugin. https://bugs.koha-community.org/show_bug.cgi?id=37916
Created attachment 181292 [details] [review] Bug 36154: Make shelfbrowser.tt to be able to use images coming from plugins https://bugs.koha-community.org/show_bug.cgi?id=37916
rebased