[open-ils-commits] [GIT] Evergreen ILS branch master updated. e1c981fcfc2fa850a90885afd95d8eadff68ae55
Evergreen Git
git at git.evergreen-ils.org
Wed Dec 21 16:30:07 EST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via e1c981fcfc2fa850a90885afd95d8eadff68ae55 (commit)
from 34900f4472145967b4f42f1f9971f0fc33403291 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e1c981fcfc2fa850a90885afd95d8eadff68ae55
Author: Bill Erickson <berick at esilibrary.com>
Date: Mon Dec 19 12:57:08 2011 -0500
TPAC: Change title tooltip in results table to useful message
From dbs's original commit:
The tooltip that would display when hovering over the title of a result
in the results table was simply the URI-escaped version of the title
text - not particularly helpful. Change this to say "Display record
details" as an actual hint about what action will occur when the user
clicks on a title in the results list.
This modified commit changes the title to 'Display record details for
"<title>"'
This commit also introduces the HTML plugin as a new
loaded-by-default template plugin. Among other things, it's useful for
ensuring HTML attributes are safely encoded, moresoe than |html, which
does not escape quotes.
https://bugs.launchpad.net/evergreen/+bug/902979
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Dan Scott <dan at coffeecode.net>
diff --git a/Open-ILS/src/templates/opac/parts/header.tt2 b/Open-ILS/src/templates/opac/parts/header.tt2
index e6addc8..ce51900 100644
--- a/Open-ILS/src/templates/opac/parts/header.tt2
+++ b/Open-ILS/src/templates/opac/parts/header.tt2
@@ -2,6 +2,7 @@
USE date;
USE CGI = CGI_utf8;
USE POSIX;
+ USE HTML;
SET DATE_FORMAT = l('%m/%d/%Y');
# Don't wrap in l() here; do that where this format string is actually used.
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index 1ae2b17..6be3122 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -46,8 +46,9 @@
name='result_table_title_cell'
valign="top">
<div class="bold">
- <a name='record_[% rec.id %]' title="[% attrs.title | uri %]" name='item_title'
+ <a name='record_[% rec.id %]' name='item_title'
href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
+ [% HTML.attributes(title => l('Display record details for "[_1]"', attrs.title)) %]
class='search_link'>[% attrs.title | html %]</a>
</div>
<div>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/header.tt2 | 1 +
Open-ILS/src/templates/opac/parts/result/table.tt2 | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list