LP#1682923: Social networking links in the catalog: link construction user/kmlussier/lp1682923-social-networking-links
authorKathy Lussier <klussier@masslnc.org>
Tue, 15 Aug 2017 01:59:18 +0000 (21:59 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 15 Aug 2017 01:59:18 +0000 (21:59 -0400)
Social networking links are added to the record details page. Still need styling.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2

index 42835fd..cf93177 100644 (file)
                 [%- IF ctx.refworks.enabled == 'true' %]
                     [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
                 [%- END %]
+                <div class = "rdetail_aux_utils share_record">
+                    <div class = "facebook_button social_links">
+                      <a href="https://www.facebook.com/share.php?u=[% mkurl(canon, {locg =>CGI.param('locg')},1) %]">[% l('Facebook') %]
+                    </div>
+                    <div class = "twitter_button social_links">
+                      <a href="https://twitter.com/intent/tweet?url=[% mkurl(canon, {locg =>CGI.param('locg')},1) %]">[% l('Twitter') %]
+                    </div>
+                    <div class = "pinterest_button social_links">
+                      <a href = "http://pinterest.com/pin/create/button/?url=[% mkurl(canon, {locg =>CGI.param('locg')},1) %]&media=[% ctx.proto %]://[% ctx.hostname %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]">[% l('Pinterest') %]
+                    </div>
+                </div>
+               
             [% IF !ctx.is_staff %]
                 <div class="rdetail_aux_utils share_record">
                     <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">