[open-ils-commits] [GIT] Evergreen ILS branch master updated. 2714518fb9312b5ed366e353e537cf5477cc40f1

Evergreen Git git at git.evergreen-ils.org
Mon Aug 17 12:46:15 EDT 2015


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  2714518fb9312b5ed366e353e537cf5477cc40f1 (commit)
       via  a1961b0d6ad2d197f538fa6e600642295ea68dc3 (commit)
      from  9c92ac7d5fca16f668232bc94ef969209a71951e (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 2714518fb9312b5ed366e353e537cf5477cc40f1
Author: Ben Shum <bshum at biblio.org>
Date:   Mon Aug 17 12:45:57 2015 -0400

    LP#1433328: Add release note for new class attribute for e-resource links
    
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/new-class-attribute-for-eresource-links.txt b/docs/RELEASE_NOTES_NEXT/OPAC/new-class-attribute-for-eresource-links.txt
new file mode 100644
index 0000000..53ab031
--- /dev/null
+++ b/docs/RELEASE_NOTES_NEXT/OPAC/new-class-attribute-for-eresource-links.txt
@@ -0,0 +1,6 @@
+New class attribute for e-resource links
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+In the catalog, links to electronic resources now have a link class
+attribute of "uri_link" to make them easier to customize or build
+additional services upon.
+

commit a1961b0d6ad2d197f538fa6e600642295ea68dc3
Author: Jeff Davis <jdavis at sitka.bclibraries.ca>
Date:   Tue Mar 17 14:53:05 2015 -0700

    LP#1433328: Add class attribute to e-resource links in TPAC
    
    In the TPAC, links to electronic resources are not directly, uniquely
    identifiable in the DOM. You can specify these links indirectly, with
    something like '.result_table_title_cell > td > a' in search results
    or '.rdetail_uri > a' on the record details page, but this is fragile
    and a bit cumbersome. Adding a unique class attribute directly to the
    link elements would make things easier for services built on top of
    the TPAC, such as Overdrive API integration or JS-based analytics for
    e-resources.
    
    Signed-off-by: Jeff Davis <jdavis at sitka.bclibraries.ca>
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 618a887..76f45ff 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -136,7 +136,7 @@ IF num_uris > 0;
         [%- ELSE -%]
             <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
         [%- END -%]
-        <a href="[% uri.href %]" property="url">
+        <a href="[% uri.href %]" class="uri_link" property="url">
         [%- IF uri.href != uri.link;
                 '<span property="description">' _ uri.link _ '</span>';
             ELSE;
diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2
index bb9c472..06cf8b4 100644
--- a/Open-ILS/src/templates/opac/parts/result/table.tt2
+++ b/Open-ILS/src/templates/opac/parts/result/table.tt2
@@ -302,7 +302,7 @@ END;
                                                                 <td valign='top'>
                                                                     <strong>[% l('Electronic resource') %]</strong>
                                                                 </td>
-                                                                <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+                                                                <td><a href="[% uri.href %]" class="uri_link">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
                                                             </tr>
                                                             [% END %]
                                                          [% END %]

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/summary.tt2    |    2 +-
 Open-ILS/src/templates/opac/parts/result/table.tt2 |    2 +-
 .../new-class-attribute-for-eresource-links.txt    |    6 ++++++
 3 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 docs/RELEASE_NOTES_NEXT/OPAC/new-class-attribute-for-eresource-links.txt


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list