Skip to content

Commit

Permalink
Merge pull request #62 from aleishaa/patch-2
Browse files Browse the repository at this point in the history
Give example of how to use a list for slider
  • Loading branch information
kylemhall authored May 3, 2023
2 parents 9943653 + 79bf482 commit a02304e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ The final step is to put your selector element somewhere in your public catalog.
```

Once that is in place, you need only refresh your OPAC page, and there you have it, your very own catalog coverflow widget! Not only do these coverflows look great on a computer screen, but they look great on mobile platforms as well, and are even touch responsive!

# Coverflow slider populated by a list

You can write your SQL report to access the contents of a list. In the example below, replace the shelfnumber with the ID of your chosen list:

```SQL
SELECT biblionumber, SUBSTRING_INDEX(isbn, ' ', 1) AS isbn, title
FROM virtualshelfcontents
LEFT JOIN biblioitems USING (biblionumber)
LEFT JOIN biblio USING (biblionumber)
WHERE shelfnumber=721
ORDER BY rand()
LIMIT 50
```

# Report with parameters
It is now possible to use reports that take input. For example,in a multibranchsystem you can setup a single report as below:

Expand Down

0 comments on commit a02304e

Please sign in to comment.