Bugzilla – Attachment 71053 Details for
Bug 15794
Add emoji picker to tag entry in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15794: Add Emoji Picker
Bug-15794-Add-Emoji-Picker.patch (text/plain), 4.30 KB, created by
Mark Tompsett
on 2018-01-30 01:11:17 UTC
(
hide
)
Description:
Bug 15794: Add Emoji Picker
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-01-30 01:11:17 UTC
Size:
4.30 KB
patch
obsolete
>From c98b6119d9987f961e52965fc9ae69917877fc67 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Tue, 30 Jan 2018 01:00:01 +0000 >Subject: [PATCH] Bug 15794: Add Emoji Picker > >TEST PLAN >--------- >1) apply this patch >2) Run the commands in comment #10 >3) Attempt to add emoji tags in OPAC > -- some system preferences may need setting >4) run koha qa test tools > >NOTE: The failure resulting from the click will be > a different bug. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 12 ++++++++++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 12 +++++++++++- > 2 files changed, 23 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index 8346691..3e73c60 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -108,6 +108,11 @@ $.widget.bridge('uitooltip', $.ui.tooltip); > <script type="text/javascript" src="[% interface %]/[% theme %]/js/amazonimages.js"></script> > [% END %] > >+<script src="[% interface %]/lib/emoji-picker/js/config.js"></script> >+<script src="[% interface %]/lib/emoji-picker/js/util.js"></script> >+<script src="[% interface %]/lib/emoji-picker/js/jquery.emojiarea.js"></script> >+<script src="[% interface %]/lib/emoji-picker/js/emoji-picker.js"></script> >+ > <script type="text/javascript"> > //<![CDATA[ > var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again") >@@ -252,6 +257,13 @@ $(document).ready(function() { > jQuery.removeCookie("search_path_code", { path: '/'}); > }); > } >+ >+ window.emojiPicker = new EmojiPicker({ >+ emojiable_selector: '[data-emojiable=true]', >+ assetsPath: '[% interface %]/lib/emoji-picker/img/', >+ popupButtonClasses: 'fa fa-smile-o' >+ }); >+ window.emojiPicker.discover(); > }); > </script> > [% PROCESS jsinclude %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 270fc08..83de061 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -40,6 +40,7 @@ > [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %] > [% END %] > [% INCLUDE greybox.inc %] >+ <link href="[% interface %]/lib/emoji-picker/css/emoji.css" rel="stylesheet"> > </head> > [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %] > [% INCLUDE 'masthead.inc' %] >@@ -411,10 +412,19 @@ > [% IF ( loggedinusername ) %] > <form id="tagform[% biblio.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;"> > <label for="newtag[% biblio.biblionumber %]">New tag(s), separated by a comma:</label> >- <input name="newtag[% biblio.biblionumber %]" id="newtag[% biblio.biblionumber %]" maxlength="100" type="text"/> >+ <p class="emoji-picker-container"> >+ <input >+ name="newtag[% biblio.biblionumber %]" >+ id="newtag[% biblio.biblionumber %]" >+ type="text" >+ maxlength="100" >+ data-emojiable="true" >+ data-emoji-input="unicode"> >+ </p> > <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber %]" type="submit" value="Add" /> > <a class="cancel_tag_add" id="cancel[% biblio.biblionumber %]" href="#">(done)</a> > </form> >+ > <span id="newtag[% biblio.biblionumber %]_status" class="tagstatus" style="display:none;"> > Tag status here. > </span> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15794
:
71053
|
71860
|
71861