Koha/opac
Chris Nighswonger eb7e930eea Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC
This feature will add the option of displaying a select quote
for the day on the OPAC homepage. It will include the addition
of a QOTD editor in the tools section of the staff interface
which will allow the addition, editing, and deletion of quotes.
A single system preference will enable/disable the display of
the QOTD on the OPAC homepage. A new granular permission will
also be added to conrol user access to the QOTD editor tool.

Possible extentions to this would be code to allow alternate
quote selection algorithms to be added to vary how the currently
displayed quote is selected from the table of quotes.

This patch is a squash of the following work:

--Adding quotes table to kohastructure.sql and updatedatabase.pl

Note: This patch is intended for a MySQL based installation only.
That means that it includes backticks because that is what is required
at this point in history to install Koha correctly on a MySQL based
installation.

Feel free to port this over to the Pg stuff in the data/Pg directory.

--Adding system preference to control display of QOTD on OPAC main page
--Adding sample quote data

These quotes are taken from various US presidents. I'm not sure these
are applicable to the rest of the world, so I'm leaving it to translators
and others to add sample quote data for other languages.

--Adding edit_quotes user permissions
--Squash with other db related patches in this series
--Adding quotes editor pages to tools
--Adding QOTD editor link to tools homepage
--Integration of DataTables into QOTD Editor
--Impleminting jEditable into the quote editor
--Adding delete and add option to editor
--Fixing OPAC display so the QOTD div does not show if no quote is returned
--Also removing useless code from tools/quotes.pl
--Adding spans around QOTD foo in opac-main.tt
--Also fixing quote selection logic to accomodate the possibility of
    a single quote in the db a litte better.
--Changing timestamp column header to a more user-friendly 'Last Displayed'
--Fixing bug in quote selection logic. This bug caused a situation where
    when the table had only a single quote with an id greater than 1 in it,
    no quote would be selected.
--Fixing up sorting in the quote editor table. --jcamins
--Adding span element to quote separator --jcamins
--Overriding the default empty table message supplied by datatables-strings.inc
--Adds missing page heading
--Adds beginning of click-for-help elements.
--Refactors delete functionality to allow selecting of quotes to delete,
    enabling multi-delete.
--Refactors saving added quote functionality so that striking <Enter>
    saves the new quote.
--Refactors canceling aded quote functionality so that striking <Esc>
    cancels the new quote.
--Removing debug console.log statements
--Implementng the YUI button widget/toolbar used on other pages.
--Adds a 5px radius to all YUI buttons to bring them into
    conformity with the general trend toward rounded corners
--Fixes capitalization in quote editor
--Implements improvements suggested by jcamins and oleonard
--Adds DataTables Plugin dataTables.fnReloadAjax.js

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
2012-05-24 14:14:05 +02:00
..
errors Bugfix in errors/*.pl and opac/errors/*.pl 2010-02-14 20:04:40 -05:00
rss adding file just for creating the rss directory 2007-08-02 08:50:43 +00:00
sco Bug 7743: Update sco/sco-main.pl to use KohaDates TT plugin 2012-03-26 16:22:43 +02:00
svc Bug 7248 follow-up (alternative) 2012-05-15 18:05:58 +02:00
changelanguage.pl Bug 6755 Followup setlanguagecookie used in 2 places 2011-09-27 08:22:18 +13:00
ilsdi.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-01-27 12:11:06 +01:00
maintenance.pl Bug 2505: Add warnings to opac/maintenance.pl 2010-02-18 11:10:30 -05:00
oai.pl Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
opac-account.pl Bug 7743: Update opac-account.pl to use KohaDates TT plugin 2012-03-26 16:22:35 +02:00
opac-addbybiblionumber.pl Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected 2012-05-22 12:06:26 +02:00
opac-alert-subscribe.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-authorities-home.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-authoritiesdetail.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-basket.pl Bug 5990: Lists and Cart show LOC code not Location Authorized value 2011-04-01 12:07:46 +13:00
opac-browser.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-changelanguage.pl Bug 7514 Choose OPAC language with URL parameter 2012-02-17 11:36:09 +01:00
opac-detail.pl Bug 8035 - bibs with comments show an error in opac 2012-05-14 13:58:49 +02:00
opac-downloadcart.pl bug 5579 : Fixes several exports to embed items 2011-04-19 22:35:15 +12:00
opac-downloadshelf.pl Bug 7788: [SIGNED-OFF] Remove two unused calls to GetShelf 2012-05-22 12:06:25 +02:00
opac-export.pl Bug 7345: Enable exporting records sans private fields 2012-02-13 11:32:18 +01:00
opac-ics.pl Bug 5549 : GetPendingIssues now returns DateTime objects 2012-03-20 12:33:37 +13:00
opac-image.pl Bug 7600: Return a single-pixel GIF when no local cover image exists 2012-03-20 16:54:31 +01:00
opac-imageviewer.pl Bug 1633: QA follow-up 2012-01-24 11:16:10 +01:00
opac-ISBDdetail.pl Merge remote-tracking branch 'origin/new/bug_3215' 2012-02-27 12:12:59 +01:00
opac-main.pl Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02:00
opac-MARCdetail.pl Merge remote-tracking branch 'origin/new/bug_3215' 2012-02-27 12:12:59 +01:00
opac-messaging.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-modrequest-suspend.pl Bug 7641: Suspend Reserves 2012-03-29 14:37:49 +02:00
opac-modrequest.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-mymessages.pl bug 2615: remove unneeded 'require Exporter' 2008-09-26 09:05:08 -05:00
opac-passwd.pl Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl. 2009-08-12 21:28:24 -04:00
opac-patron-image.pl Bug 3516 [REVISED] Display picture of patrons in OPAC 2012-03-05 17:12:16 +01:00
opac-privacy.pl Bug 3881: OPAC Privacy reimplementation 2011-01-31 22:23:50 +13:00
opac-ratings-ajax.pl Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
opac-ratings.pl Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
opac-readingrecord.pl Bug 7743: Update opac-readingrecord.pl to use KohaDates TT plugin 2012-03-26 16:22:52 +02:00
opac-renew.pl Bug 7551 : Can only renew for the user you are logged in as now 2012-02-17 09:12:21 +01:00
opac-reserve.pl Merge remote-tracking branch 'kc/master' into merged_5549 2012-03-22 09:36:55 +13:00
opac-review.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-search-history.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-search.pl Bug 3337 - RSS link is not correct for searches without results 2012-04-19 11:21:24 +02:00
opac-sendbasket.pl Bug 3651 Follow-up, Require patron login to send shelves and baskets 2012-01-06 15:57:57 +01:00
opac-sendshelf.pl Bug 3651 Follow-up, Require patron login to send shelves and baskets 2012-01-06 15:57:57 +01:00
opac-serial-issues.pl Bug 6195 : Opac user should not have serial manage tab 2011-04-19 13:29:01 +12:00
opac-shelves.pl Bug 7310: Code changes for Improving list permissions 2012-03-21 16:46:40 +01:00
opac-showmarc.pl Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00
opac-showreviews.pl Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00
opac-suggestions.pl Bug 5928 :wr77152 : AllowPurchaseSuggestionBranchChoice sys pref 2011-03-23 10:35:16 +13:00
opac-tags.pl Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00
opac-tags_subject.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-topissues.pl Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00
opac-user.pl Bug 7641: Suspend Reserves 2012-03-29 14:37:49 +02:00
opac-userdetails.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-userupdate.pl Bug 7743: Update opac-userupdate.pl to use KohaDates TT plugin 2012-03-26 16:22:45 +02:00
unapi Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00