Jessie,
So, if you manually put something in those lists, the carousel shows them?
If you are having issues with the auto population, then you need to turn
your attention to bookbag_update.pl. That perl script needs to run on a
cron. It relys on a few perl custom perl modules:
Loghandler.pm
Mobiusutil.pm
DBhandler.pm
These are located in the parent directory:
https://github.com/mcoia/mobius_evergreen
You can just copy those files and put them into the same directory with
bookbag_update.pl
You can comment out some of the stuff that Mobiusutil.pm is relying on:
use ZOOM;
use Net::FTP;
You can also comment out a dependency from DBhandler.pm
use DBD::Firebird;
so that you don't have to install those dependencies as they are not
used for this.
The script looks at the bookbag's owner (the user that you used to
create the list) and scopes the list to the owner's org unit's parent
org unit. AKA the system level. If you don't want it to do that, you
will need to alter the query:
SELECT ID,(SELECT PARENT_OU FROM ACTOR.ORG_UNIT WHERE ID=(SELECT HOME_OU
FROM ACTOR.USR WHERE ID=A.OWNER)),DESCRIPTION FROM
CONTAINER.BIBLIO_RECORD_ENTRY_BUCKET A WHERE DESCRIPTION IN(";
Change PARENT_OU to just ID if you want the list to only look at items
at the branch level.
Good luck!
-Blake-
Conducting Magic
MOBIUS
573-234-4513
877-312-3517
On 6/29/2015 2:21 PM, Jesse McCarty wrote:
Blake,
Thanks for the information. Yes, I did get the code from Github and
had placed all the files in the default location. After copying the
.tt2 files to our /openils/var/templates_burlington/opac/parts/ folder
(and editing to add the book bag #s) the three book bag titles are now
appearing.
Now, the only issue is nothing is propagating into the three book bags
(ones I created shown below). I created the lists with our circulation
account from a web browser and all three are shared, should they be
created with an admin account? Since this is not our production
server, (running on slightly older data) I checked in/renewed books
from my patron account via the staff client to try and get information
into them, but still nothing has filled the lists. Do these book bags
depend on any cron jobs to propagate?
Thanks again!
Jesse McCarty
City of Burlington
IT Technical Assistant
*From:*Open-ils-general
[mailto:[email protected]] *On Behalf
Of *Blake Henderson
*Sent:* Monday, June 29, 2015 11:20 AM
*To:* [email protected]
*Subject:* Re: [OPEN-ILS-GENERAL] Mobius Book Carousel Demoed at the
EG Conference this year
Jesse,
Did you happen to get the code from Github?
https://github.com/mcoia/mobius_evergreen/tree/master/bookbag_update
There is a folder structure there intended to match the folder
structure in /openilstemplat
/openils/var/web/opac/skin/default/js/carousel
and
/openils/var/web/templates/opac/parts
The various files belong to various places. If you are using a
template override, book_carousel.tt2 needs to be in the base template
folder otherwise the template toolkit breaks.
Be sure and edit book_carousel.tt2 and replace the numbers with your
bookbag id numbers.
If you are getting nothing, then you might need to inspect the
resulting html page and look for
<div id="hidden_bb_info" class="hide_me">
Check to see if that div has any content. If not, the javascript stuff
isn't working. If it does, then take a careful look at your CSS. The
jquery plugin jcarousel is picky about the CSS. If you just use the
CSS example from Github, it should work but it never hurts to double
check.
I would be happy to take a look at what you have.
-Blake-
Conducting Magic
MOBIUS
573-234-4513
877-312-3517
On 6/29/2015 11:56 AM, Jesse McCarty wrote:
Hello All,
Has anyone implemented the Book Carousel that Mobius demoed at the
conference this year?
(http://slides.mobiusconsortium.org/blake/bookcarousel/#/1). I
have been going over the slides trying to implement this on our
test server with no luck so far. I have placed the appropriate
.tt2 files in their locations and created lists with our
circulation account, but nothing is showing up either in the lists
or on our OPAC. Are there additional instructions online somewhere
that I am missing? Extra details: we have four libraries running
on our system and at this point we are only looking to implement
it for one.
Thanks!
Jesse McCarty
City of Burlington
IT Technical Assistant