@@ -, +, @@ this for now. be warned that there are no reports in the group with code SIGN and given a link for creating a new report. Follow the link and create a new report with report group code SIGN. En example SQL command for the report could be: SELECT * FROM biblio WHERE timestamp > DATE_SUB(NOW(), INTERVAL 7 DAY) or if you are testing the parameters feature of the digital signs, an example report could be: SELECT * FROM biblio WHERE biblionumber < placeholder. warning message, and your newly created report should appear in the list of reports. appear in the list of streams. created. If you have attached a report with a parameter placeholder, edit the parameters so that the placeholder gets substituted with a value. For example, in the edit parameters box, you can have: placeholder = 10000 When you submit, you'll see the SQL replaces the placeholder with your value and completes the query. Your sign is now ready for OPAC. system preference OPACDigitalSigns and reload the page. display. that you attached to your stream. attached should be presented using this cover. If no local cover is available and the book has a ISBN with a cover in openlibrary.org, the cover image from openlibrary.org should be shown. If all of the above fails, a cover matching the theme of the page should be seen, showing the book title and author. can see the books availability. You should also see the two next books and the two previous books in the stream (unless you're at the beginning or end of the stream) left/right should bring you to next/previous book. Clicking on the next/previous books (right/left of the active one) should bring you to the detailed view of the clicked book. specified in step 6. should result in the page automatically switching to the next book in the stream. --- koha-tmpl/opac-tmpl/bootstrap/css/signs.css | 100 ++++ .../opac-tmpl/bootstrap/en/modules/opac-signs.tt | 564 +++++++++++++++++++++ opac/opac-signs.pl | 113 +++++ tools/signs.pl | 1 + 4 files changed, 778 insertions(+) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/css/signs.css create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-signs.tt create mode 100755 opac/opac-signs.pl --- a/koha-tmpl/opac-tmpl/bootstrap/css/signs.css +++ a/koha-tmpl/opac-tmpl/bootstrap/css/signs.css @@ -0,0 +1,100 @@ +.carousel-container { + height: 225px; + position: relative; + margin: 0 auto 40px; + -webkit-perspective: 1100px; + -moz-perspective: 1100px; + -o-perspective: 1100px; + -ms-perspective: 1100px; + perspective: 1100px; +} + +.carousel { + width: 100%; + height: 100%; + -webkit-transform-style: preserve-3d; + -moz-transform-style: preserve-3d; + -o-transform-style: preserve-3d; + -ms-transform-style: preserve-3d; + transform-style: preserve-3d; +} + +.unicorn { + display: inline; + position: relative; + width: 150px; + height: 225px; + left: 10px; + top: 10px; + -webkit-box-reflect: below 0 -webkit-gradient(linear, left bottom, left top, color-stop(0.05, rgba(255, 255, 255, 0.12)), color-stop(0.2, transparent)); +} + +.ui-li { + padding-top: 0px !important; + padding-bottom: 0px !important; + margin-bottom: -7px !important; +} + +.ui-li h4 { + margin-top: 2px !important; + margin-bottom: 2px !important; +} + +.ui-li-icon { + top: 15% !important; +} + +.vspace { + margin-top: 2em; +} + +.content { + text-align: center; +} + +.btn-record { + margin: 10px; +} + +.cover { + border: none; + display: inline-block; + height: 225px; + width: 150px; + background-size: 100%; + background-repeat: round; +} + +.cover.cover-blank { +} + +.cover.placeholder { +} + +.cover .cover-inner { + display: table-cell; + vertical-align: middle; + padding: 25px; + border: 2px solid #fff; + height: 171px; + max-height: 171px; + width: inherit; +} + +.cover-text { + text-align: center; + position: relative; + font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif; + font-size: 1em; + max-height: inherit; + overflow: hidden; +} + +.cover-text .title { + font-weight: bold; +} + +.cover-text .author { + font-style: italic; + margin-top: 1em; +} --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-signs.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-signs.tt @@ -0,0 +1,564 @@ +[% USE Koha %] +[% USE KohaDates %] +[% USE Branches %] +[% USE JSON.Escape %] + +[%- BLOCK item_status -%] + [%- SET itemavailable = 1 -%] + [%- IF ( item.itemlost ) -%] + [%- SET itemavailable = 0 -%] + [%-%]Item lost + [%- END -%] + [%- IF ( item.datedue || issue.date_due ) -%] + [%- SET itemavailable = 0 -%] + [%- IF item.onsite_checkout -%] + [%-%]Currently in local use + [%- ELSE -%] + [%-%]Checked out + [%- END -%] + [%- END -%] + [%- IF ( item.transfertwhen ) %] + [%- SET itemavailable = 0 -%] + [%-%]In transit from [%- item.transfertfrom %] to [%- item.transfertto %] since [%- item.transfertwhen | $KohaDates %] + [%- END %] + [%- IF ( item.waiting ) -%] + [%- SET itemavailable = 0 -%] + [%-%]On hold + [%- END -%] + [%- IF ( item.withdrawn ) -%] + [%- SET itemavailable = 0 -%] + [%-%]Item withdrawn + [%- END -%] + [%- IF ( item.itemnotforloan ) -%] + [%- SET itemavailable = 0 -%] + [%- IF ( item.notforloanvalueopac ) -%] + [%- item.notforloanvalueopac -%] [%- IF ( item.restrictedopac ) -%] ([%- item.restrictedopac -%])[%- END -%] + [%- ELSE -%] + [%-%]Not for loan [%- IF ( item.restrictedopac ) -%] ([%- item.restrictedopac -%])[%- END -%] + [%- END -%] + [%- ELSIF ( item.notforloan_per_itemtype ) -%] + [%- SET itemavailable = 0 -%] + [%-%]Not for loan [%- IF ( item.restrictedopac ) -%] ([%- item.restrictedopac -%])[%- END -%] + [%- END -%] + [%- IF ( item.damaged ) -%] + [%- SET itemavailable = 0 -%] + [%-%]Item damaged + [%- END -%] + [%- IF item.on_order -%] + [%- SET itemavailable = 0 -%] + [%-%]On order + [%- END -%] + [%- IF ( itemavailable ) -%] + [%-%]Available [%- IF ( item.restrictedopac ) -%] ([%- item.restrictedopac -%])[%- END -%] + [%- END -%] +[%- END -%] + +[% INCLUDE 'doc-head-open.inc' %] +
Digital signs are not enabled!
+[%- ELSE -%] + [%# Display a sign, all its streams and all records %] + [%- IF ( sign ) -%] + [%- IF ( streams.0 ) -%] + [%# Iterate through the streams, creating one front page for each %] + [%- FOREACH s IN streams -%] +No streams attached to this sign.
+ [% END # IF ( streams.0 ) %] + [% END # IF ( sign ) %] + + [%# Display a list of all signs, as a default. Links use data-ajax="false" so signs will replace the first page, not be AJAXed in. %] + [%# This page is not meant to be viewed by non-librarians, so it can not be themed. %] + [% IF ( signs ) %] +