From cbb5207c1cc5f196ad2682a24ae1db7fb9301876 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 14 May 2018 15:07:42 +0000 Subject: [PATCH] Bug 20756: OPAC "Share list" button should be styled with an icon MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds a new "share" icon to the sprite image used to style controls in the OPAC. The "share list" links now have a "sharelist" class which is used to style the links with the new icon. Also changed: Fixed the page structure markup of opac-shareshelf.tt. To test you must have the OpacAllowSharingPrivateLists system preference enabled. - Log in to the OPAC and go to Lists -> Your lists. - Create one or more private lists if necessary. - In the table of your lists there should be a "Share" link with the new icon. - View one of these lists and confirm that the "Share" link at the top of the table of list items. - Click through to the share list page and confirm that the page looks correct. Signed-off-by: Séverine QUEUNE Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- .../bootstrap/en/modules/opac-shareshelf.tt | 6 ++++-- .../bootstrap/en/modules/opac-shelves.tt | 4 ++-- .../opac-tmpl/bootstrap/images/sprite.png | Bin 3348 -> 2561 bytes koha-tmpl/opac-tmpl/bootstrap/less/opac.less | 11 +++++++++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt index d97a675ce3..6b0fc07d27 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt @@ -13,6 +13,7 @@ [% IF ( loggedinusername ) %]
  • [% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]
  • [% END %] +
  • Lists
  • Share a list
  • @@ -26,10 +27,11 @@ [% END %] +
    +
    + [%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]

    Share a list with another patron

    -
    -
    [% IF errcode %] [% IF errcode==1 && op %]
    The operation [% op | html %] is not supported.
    [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index ca35bc454b..c122ae23f7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -185,7 +185,7 @@ [% IF category == PRIVATE && Koha.Preference('OpacAllowSharingPrivateLists') %] - Share list + Share list [% END %] [% ELSIF category == PRIVATE # not manageshelf and private means shared %]
    @@ -699,7 +699,7 @@
    [% END %] [% IF s.is_private AND s.can_be_managed( loggedinusernumber ) AND Koha.Preference('OpacAllowSharingPrivateLists') %] - Share + Share [% END %] [% IF s.is_shared_with( loggedinusernumber ) %]
    diff --git a/koha-tmpl/opac-tmpl/bootstrap/images/sprite.png b/koha-tmpl/opac-tmpl/bootstrap/images/sprite.png index a6037a9122ac7c7b3f3773bba42d7d3b745de01d..cea1c3ca2529eaf1ed8b31e09f47aaddf31dbcbe 100644 GIT binary patch literal 2561 zcmV+c3jXzpP)h%36S&J=Sk}zSEF=LiafwkiB{qpki?DYO8 zR);HGj?6MLYHDhBc6NS#ezo2I>hu2g_V)Js{~%6%BvXSXR)!~6i7Z@>FJhE7YMnl9 zn`n!!i;Iie?ET*D{a|2VL3F2whll^nW$Wwf@$vEL^ZoDk{`2|%{QdtRPk$m%fG%H< zTU%Q}bESBAczJnw-{ivQ>(b%x{p0Wb==1&e_xJMn|NHy<`~Ch)OG_wMh$&i(Dq4(g zZf@#O6nc7kg@uJGb{d^z`ud{rdg?BT|FWH!a~u9Z7t!QH8lyiM@e= zfrEpC-tGM7^8V@b{_ywy`T6-IRD~v0h9_8wPft%RUXe6snnif5Z*OmMa&q%o3tXXD zjg5_qq`r^DL6Ec6)YR1f>;Tc>^vvh}qaiddvqlt-$W0uO1k&%6xx3#sk|Kw%k@BHZU z{Pp?%_xk?#`v3R){`~y>BvXPjWtBOE&|Z+mq`}>|&*tX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