Koha/koha-tmpl/intranet-tmpl/prog/en/includes
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
..
virtualshelves/merge Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
acquisitions-add-to-basket.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
acquisitions-menu.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
acquisitions-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
acquisitions-toolbar.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
additem-menu.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
additem.js.inc Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
admin-menu.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
auth-finder-search.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:24 +02:00
authorities-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
authorities-toolbar.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:24 +02:00
biblio-default-view.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
biblio-view-menu.inc Bug 1633 - Interface revisions for the staff client 2012-01-24 11:16:09 +01:00
budgetperiods-admin.inc Bug 2780 - Capitalize strings consistently (Budgets) 2012-04-04 17:51:27 +02:00
budgets-active-currency.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
budgets-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00
budgets-admin-toolbar.inc Bug 2780 - Capitalize strings consistently (Budgets) 2012-04-04 17:51:27 +02:00
calendar.inc Bug 7261 System Preference to select the first day of week 2012-03-14 14:14:12 +01:00
cat-menu.inc
cat-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
cat-toolbar.inc Bug 7739 follow-up for capital cases 2012-05-11 12:20:14 +02:00
cataloging-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
cataloging-toolbar.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
checkin-search.inc Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-04 17:54:07 +02:00
checkouts-table-footer.inc Enh 6887: Add 'checked out from' column to issued items display tables 2011-09-21 09:44:00 +12:00
circ-menu.inc Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-04 17:54:07 +02:00
circ-menu.tt Bug 2780 - Capitalize strings consistently (Circulation) 2012-04-04 17:54:07 +02:00
circ-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
circ-toolbar.inc Bug 2733 - Can't print patron account 2012-04-06 18:30:35 +02:00
cities-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00
contracts-admin-search.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
currencies-admin-search.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
datatables-strings.inc Bug 6836: Add jQuery dataTables plugin 2012-01-27 11:33:11 +01:00
date-format.inc Bug 5543 - Date ISO format wrong separator 2012-01-10 23:28:47 +01:00
dictionary-toolbar.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
doc-head-close-receipt.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
doc-head-close.inc Bug 7616 - Remove unused template markup for css_libs, css_module, js_libs, etc. 2012-03-08 16:06:04 +01:00
doc-head-open.inc Fix for Bug 6458 - incorrect parsing result in translation processing 2011-09-15 08:39:31 +12:00
error-messages.inc Bug 7731 - Library should be used instead of branch and site 2012-03-20 15:17:08 +01:00
facets.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
favicon.ico Bug 7949 - a different favicon for the staff client 2012-05-07 23:19:56 +02:00
file-upload.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
greybox.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
guided-reports-view.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
header.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
help-bottom.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
help-top.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
hold-menu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
home-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
installer-doc-head-close.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
intranet-bottom.inc Bug 7644 - Invalid markup in staff client language chooser 2012-03-16 11:46:01 +01:00
labels-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-menu.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-new-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
letters-search.inc Bug 2780 - Capitalize strings consistently (Tools) 2012-04-04 17:54:45 +02:00
mainmenu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
members-menu.inc Bug 2780 - Capitalize strings consistently (Patrons) 2012-04-04 17:54:37 +02:00
members-toolbar.inc Bug 2733 - Can't print patron account 2012-04-06 18:30:35 +02:00
messaging-preference-form.inc Bug 5184 - Upgrade jQuery to the latest version (staff client) 2012-05-11 11:05:19 +02:00
page-numbers.inc Fix for Bug 6216, Search results pagination links broken 2011-04-21 09:15:40 +12:00
patron-search-box.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
patron-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
patron-title.inc Bug 6303: Display Organisation and Parent Organisation names when viewing a borrower of type organisation 2011-11-24 11:30:08 +01:00
patron-toolbar.inc Bug 2780 - Capitalize strings consistently (Patrons) 2012-04-04 17:54:37 +02:00
patroncards-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-menu.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patrons-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00
popup-bottom.inc
prefs-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00
prefs-menu.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
printers-admin-search.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
quotes-toolbar.inc Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02:00
reports-menu.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
reports-toolbar.inc Bug 7668 - Improve navigation and toolbar options in guided reports 2012-03-19 18:00:15 +01:00
resort_form.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
roadtype-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00
search_indexes.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
serials-menu.inc Bug 7523: Improve checks for routing permissions 2012-02-27 18:22:01 +01:00
serials-search.inc Bug 7979: New design for staff interface + fixes + css call moved 2012-04-20 18:24:38 +02:00
serials-toolbar.inc Bug 2780 - Capitalize strings consistently (Serials) 2012-04-04 17:54:38 +02:00
stopwords-admin-search.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
sysprefs-admin-search.inc Bug 2780 - Capitalize strings consistently (Administration) 2012-04-04 17:54:41 +02:00
table-pager.inc Bug 6842 Alternate fix, Branch transfer limits broken 2012-02-01 22:38:32 +01:00
tools-item-action.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
tools-menu.inc Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02:00
tools-nomatch-action.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
tools-overlay-action.inc Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00
virtualshelves-toolbar.inc Bug 7363: allows downloading of lists in CSV format 2012-01-13 12:13:33 +01:00
z3950-admin-search.inc Bug 7998 - CSS fixes for new interface 2012-05-14 16:07:11 +02:00