Publications revamp refs #3790: Register the relevant JavaScript and CSS for the publications_view

git-svn-id: https://svn.plone.org/svn/collective/slc.publications/branches/plone4-compatible@251311 db7f04ef-aaf3-0310-a811-c281ed44c4ad
Publications revamp refs #3790: Add extra image resources

git-svn-id: https://svn.plone.org/svn/collective/slc.publications/branches/plone4-compatible@251312 db7f04ef-aaf3-0310-a811-c281ed44c4ad
PEP8/pylint cleanup

git-svn-id: https://svn.plone.org/svn/collective/slc.publications/branches/plone4-compatible@251330 db7f04ef-aaf3-0310-a811-c281ed44c4ad
fix a bug in code that tries to remove tmp_pdf_in

git-svn-id: https://svn.plone.org/svn/collective/slc.publications/branches/plone4-compatible@251331 db7f04ef-aaf3-0310-a811-c281ed44c4ad
Replace deprecated 'has_key' with 'in', some other minor cleanups.

git-svn-id: https://svn.plone.org/svn/collective/slc.publications/branches/plone4-compatible@251332 db7f04ef-aaf3-0310-a811-c281ed44c4ad
clean up .zcml files
Don't include 'Subject' in the query if no keywords have been selected.

Otherwise we get an empty result set.
Use translation_service to localize time.

Script toLocalizeTime was erroring out (on Plone 4.1.4).
Minor publications template update.

Remove reduntant 'content' div, don't show carousel and results table if there are no results, show dynamic context title.
consistent spacing in publications.pt
Updated styling to make it more consistent with the publication revamp prototype.

Also commented out ".wide" styles for now, because they break the publication view.
only look in current folder and subfolders when fetching keywords
module-level constant for max results
use try/except when converting to localized time

There is an issue with effective dates earlier than 1900 (but I don't know why they are set so low in the first place).
sort publications on effective date (descending)
add some tests for PublicationsView
display a message if no results have been found
minor styling update for publication portlets
add extra headings and description to the publication template
Add support for selecting the number of results to display.

It is now possible to toggle between showing all results or only the last 10. Also rearranged js code a bit.