Koha CoverFlow (New Arrivals)
Create a SQL public Report
Create a report and please note down the report id (here is
SQL statement for New Arrivals)
Reports
› Create from SQL
Copy and paste the
following line.
SELECT b.biblionumber, i.Barcode, SUBSTRING_INDEX(m.isbn, ' ', 1) AS isbn, b.title
FROM items i
LEFT JOIN biblioitems m USING (biblioitemnumber)
LEFT JOIN biblio b ON (i.biblionumber=b.biblionumber)
WHERE DATE_SUB(CURDATE(),INTERVAL 15 DAY) <= i.dateaccessioned AND m.isbn IS NOT NULL AND m.isbn != ''
GROUP BY biblionumber
HAVING isbn != ""
LIMIT 30
FROM items i
LEFT JOIN biblioitems m USING (biblioitemnumber)
LEFT JOIN biblio b ON (i.biblionumber=b.biblionumber)
WHERE DATE_SUB(CURDATE(),INTERVAL 15 DAY) <= i.dateaccessioned AND m.isbn IS NOT NULL AND m.isbn != ''
GROUP BY biblionumber
HAVING isbn != ""
LIMIT 30
Koha CoverFlow Setup
Download
the koha-plugin-coverflow
Enable Koha plugins
You must first Enable Koha plugin and
some changes, so visit the video: https://youtu.be/9LJb7X0NXGo
Upload Plugin
Go to Administration > Manage
plugins > Upload a
plugin > Choose > koha-coverflow-plugin-v2.4.0.kpz
and upload
Once
the Koha coverflow plugin was install click on Configure
In the Image options Section
Limit image size (height in pixels) 250
Limit
title length (width in pixels) 150
In the mapping Section following
line copy and paste
---
- id: 27
selector: "#coverflow"
options:
style: coverflow
- id: 27
selector: ".coverflow_class"
options:
selector: ".coverflow_class"
options:
buttons: true
autoplay: 3000
style: wheel
autoplay: 3000
style: wheel
NOTE: Where id: 20 is the report id
please write your SQL report id
Web Server Configuration
Open Applications > System Tools > TerminalApply the following command
sudo
su (Enter the mysql password)
sudo leafpad
/etc/apache2/sites-enabled/library.conf
Add
the following line at the bottom of the file. replace the library with your koha instance name
ScriptAlias /coverflow.pl "/var/lib/koha/library/plugins/Koha/Plugin/Com/ByWaterSolutions/CoverFlow/coverflow.pl"
Alias /plugin/ "/var/lib/koha/library/plugins/"
# The stanza below is needed for Apache 2.4+
<Directory /var/lib/koha/library/plugins/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /plugin/ "/var/lib/koha/library/plugins/"
# The stanza below is needed for Apache 2.4+
<Directory /var/lib/koha/library/plugins/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Restart memcached:
sudo service memcached restart
Restart your webserver:
sudo service apache2 restart
OPAC
Config
Now
go to Administrator > global system preferences > OpacMainUserBlock
I put the
following line in the system preference OpacMainUserBlock:
<b><h2><center><u><font color="purple">New Arrivals</font></h2></b></u>
<span id="coverflow">Loading...</span></center>
<span id="coverflow">Loading...</span></center>
24 Comments
Error: YAML Error: Inconsistent indentation level Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION Line: 2 Document: 1 at /usr/share/perl5/YAML/Loader.pm line 737.
ReplyDeletePlease solved this problem
please verified following lines.
Delete- id: 27
selector: #coverflow
options:
buttons: true
autoplay: 3000
mode: carousel
loop: true
Limit image size (height in pixels) 250
Limit title length (width in pixels) 150
Verified your CoverFlow ID (report section)
Error: YAML Error: Inconsistent indentation level Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION Line: 2 Document: 1 at /usr/share/perl5/YAML/Loader.pm line 737.
DeleteI have got this error. Than what can i do
Cannot unpack file to the plugins directory.
ReplyDeletePlease verify that the Apache user can write to the plugins directory.
It just says loading...
ReplyDeleteTry refresh memcached also.
Deletefollowing above all steps. plugin is not showing images in koha opac just txt new arrivals and loading.....
ReplyDeleteTry refresh apache2 and memcached again.
DeleteHi! Thank you for your tutorial. It was successful for me. But my koha opac just registered with SSL certificate. Since then, the plugin is not working anymore. Do you have any idea how to resolve it?
ReplyDeleteThank you in advance!
Visit: https://youtu.be/MEApc7I5_vQ
DeleteNice video you can also visit here
ReplyDeleteis it possible to use this feature in our own website not in opac. any suggetion
ReplyDeletevisit: https://www.youtube.com/channel/UC3wql6wxktbjRCdPMo9SXoA?sub_confirmation=1
Deletei follow the exact the same step that mention in the video but its not working in koha version 20.05 can you explain please why its happening and is there any solution for that please
ReplyDeleteone more time try re install or part 2 new arrivals video visit
DeleteMessage from Plugin
ReplyDeleteGenerate Carousel
You have no lists or none are set to be generated! Create lists and set them so you can generate carousels.
What happening?
Koha OpacMainUserBlock option is not available in the latest koha release.
ReplyDeleteGo to : koha Tools> News >New enty
Deletecreate the OpacMainUserBlock
This coverflow is compatible with koha 20.11?
ReplyDeleteyes it working koha 20.5 and above.
DeleteWhen creating the report, this message appears. Did you explain to me what the problem was?
ReplyDelete👇
The following error was encountered:
The databases returned the following error:
NO SELECT
please check the log for further details
Sir, I am using koha version 21.11. I used this command sudo gedit /etc/koha......koha-conf.xml changed the value 0 to 1 and sudo service apache2 restart. But it is not showing in system preferences UseKohaPlugins.. Please help...
ReplyDeleteFollowed all the instructions above step by step but not working, what are the prerequisites to install the coverflow plugin?
ReplyDeleteVisit Video: https://youtu.be/rB36I8lG9uk
Delete