Koha/C4
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
..
AuthoritiesMarc
Barcodes
ClassSortRoutine
Creators
External
Form
Heading bug 7284: fix package build problem, move BEGIN into new 2012-04-04 18:18:12 +02:00
ILSDI Bug 5549 : Format Date in ILSDI::Services to include hhmm 2012-03-20 12:37:07 +13:00
Installer Bug 7977: Adding DateTime::Format::MySQL as a core dependency 2012-05-24 14:14:03 +02:00
Labels Bug 7615 - Give option to use description for homebranch/holding branch in label creator instead of the branchcode 2012-03-08 16:12:50 +01:00
Linker signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
Members But 5742: Batch edit patrons 2012-05-15 17:44:19 +02:00
OAI Bug 6440: Implement OAI-PMH Sets 2012-03-20 11:38:26 +01:00
Output
Patroncards
Reports Bug 7249 : Allow reports to be called through a restful interface 2012-05-11 10:26:29 +02:00
Search
SIP Bug 6335 Set branch in sip session 2012-05-11 11:15:06 +02:00
Utils
VirtualShelves Bug 4032 XSLT systempreference takes a path to file rather than YesNo 2012-03-29 16:58:55 +02:00
Accounts.pm Bug 7597 - Part 5 - Remove my from $branch, which was masking previous declaration 2012-03-21 17:13:43 +01:00
Acquisition.pm Bug 7757 - Edit basket vendor after it has been created 2012-05-24 13:35:52 +02:00
Auth.pm Bug 7935: Introduce sys pref to control 'browse results' in OPAC 2012-04-10 15:26:37 +02:00
Auth_cas_servers.yaml.orig
Auth_with_cas.pm Bug 7745: Wrong service name for CAS authentification 2012-03-22 06:21:23 +01:00
Auth_with_ldap.pm
AuthoritiesMarc.pm Bug 7617: Sort authority results by authid 2012-03-29 11:04:58 +02:00
BackgroundJob.pm
Barcodes.pm
Biblio.pm Bug 7722 - Insidious problem with searching 2012-05-15 16:08:51 +02:00
Bookseller.pm Bug 7291: Adds new field aqbooksellers.deliverytime 2012-04-03 18:19:46 +02:00
Boolean.pm
Branch.pm bug_7264: [SIGNED-OFF] Branch popup on OPAC detail.Added opac_info field to branches table. 2012-03-22 11:50:00 +01:00
Breeding.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
Budgets.pm bug_4831: Use unitprice (actual cost) when totalling spent amounts for "All available funds", as in "Already received" 2011-09-22 19:35:40 +12:00
Calendar.pm Bug 7477: Followup: Fix perlcritic issues 2012-03-19 18:16:40 +01:00
Category.pm
Charset.pm Bug 7400: Add auto-completion on auth_finder 2012-03-19 18:20:30 +01:00
Circulation.pm Bug 7704 -Fix bug that prevent items to be returned to home branch, when independentbranches and canreservefromotherbranch sysprefs are both turned on. 2012-05-21 18:43:13 +02:00
ClassSortRoutine.pm
ClassSource.pm
Context.pm Bug 5549 : Add a timezone object to C4::Context 2012-03-20 12:08:20 +13:00
Contract.pm
Creators.pm
Csv.pm
Dates.pm
Debug.pm
Heading.pm Bug 7617: Sort authority results by authid 2012-03-29 11:04:58 +02:00
Images.pm Bug 7600: Return a single-pixel GIF when no local cover image exists 2012-03-20 16:54:31 +01:00
ImportBatch.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
ImportExportFramework.pm
Input.pm
Installer.pm Bug 6008 - Locating mysql/psql commands on Installer.pm 2012-02-27 15:38:07 +01:00
ItemCirculationAlertPreference.pm
Items.pm Bug 3521 - Items table in catalogue/detail.pl and cataloguing/additem.pl is sorted nonsensically 2012-05-22 23:18:40 +02:00
ItemType.pm
Koha.pm Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02:00
Labels.pm
Languages.pm Bug 6193 - Follow up: use SetEnv and remove memcached from koha-conf.xml 2012-02-20 23:24:02 +01:00
Letters.pm Bug 7756: FIX send email for late orders 2012-04-12 16:50:27 +02:00
Linker.pm Bug 7284: Fix unit test broken by erroneous POD 2012-03-08 15:24:18 +01:00
Log.pm
Maintainance.pm
Matcher.pm bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
Members.pm But 5742: Batch edit patrons 2012-05-15 17:44:19 +02:00
Message.pm bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
NewsChannels.pm
Output.pm Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
Overdues.pm bug 7849 Instant Fine Calculation\n Adds functionality of calculate fines instantly. This is very important for Hourly loans becuase of a loophole from the cron. 2012-04-19 17:52:18 +02:00
Patroncards.pm
Print.pm bug 7001 follow-up fixing POD mistake 2012-03-13 11:18:39 +01:00
Ratings.pm Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
Record.pm
Reports.pm
Reserves.pm Bug 7641 - Followup - Suspend Until not set on by suspend button. 2012-05-15 15:48:12 +02:00
Review.pm
Ris.pm Bug 2505 follow-up: C4::Ris not ready for use strict;use warnings; 2012-04-10 15:08:47 +02:00
RotatingCollections.pm
Scheduler.pm
Scrubber.pm
Search.pm Bug 8041: lost items are no longer available in search 2012-05-15 16:44:50 +02:00
Serials.pm Bug 7701: Error when sending serial alerts 2012-03-29 11:13:04 +02:00
Service.pm
ShelfBrowser.pm
SMS.pm
SocialData.pm bug 7470 follow-up, fix POD doc 2012-03-26 17:53:28 +02:00
SQLHelper.pm
Stats.pm
Suggestions.pm bug_7001: Issue and Reserve slips are notices. 2012-03-09 10:11:20 +01:00
Tags.pm
Templates.pm Bug 8019 - Preserve language choice between Browser sessions 2012-05-14 18:37:56 +02:00
TmplToken.pm
TmplTokenType.pm
TTParser.pm
UploadedFile.pm
Utils.pm
VirtualShelves.pm 7368 Followup for indentation in VirtualShelves.pm 2012-04-06 16:01:38 +02:00
XISBN.pm
XSLT.pm Bug 7821 - fix C4::Templates::_current_language 2012-04-02 11:33:17 +02:00
Z3950.pm