LINUX, FOSS AND LIBRARY TECHNOLOGY ENTHUSIAST

Tuesday, December 14, 2021

Using Google Drive create an Image Gallery for Koha's OPAC

0 comments
Lets us see how we can create a separate page for image gallery in our koha's OPAC using Google Drive as image hosting, The advantage is that this will enable our site to load faster as the images are loaded from Google and not from our koha server and we do not need to backup photos for the up-gradation of koha when a new version comes. We are going to do this in two steps 

  • Creating a separate page for Gallery
  • Displaying images in the page from google drive folder

Step 1: Create a page in koha

You can refer to this blogpost for creating pages in koha 

Step 2: Create a folder in Google Drive

Let us create a separate folder in Google Drive for uploading images that are to be displayed on the gallery page along with that you should also make that folder publically accessible


Make the folder publically accessible


You may start uploading images to the newly created folder "Gallery", then go back to 

Koha › Administration › System preferences › Local use › create a new page 

Get your shared folder ID that is available in the sharable link and replace the below ID and paste the complete code on the gallery page

<iframe src="https://drive.google.com/embeddedfolderview?id=1xp_E53qxAbh3Igr1elMoonlT6vSa0LOa#grid" width="100%" height="100%" frameborder="0"></iframe>


Now create a new link on the OpacMoreSearches 

Koha › Administration › System preferences › OPAC ›  OpacMoreSearches paste the below code

<li class="nav-item">
<a href="/pages.pl?p=gallery"target="_blank">Gallery</a>
</li>


Result

No comments:

Post a Comment