Bug 19806: Add classes to itemnotes in issues table
authorNick Clemens <nick@bywatersolutions.com>
Thu, 14 Dec 2017 12:54:14 +0000 (12:54 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Dec 2017 15:16:25 +0000 (12:16 -0300)
To test:
1 - Checkout an item with both public and non-public notes
2 - Note the notes display and both have circ-hlt class
3 - Apply patch
4 - Ensure display has not changed
5 - Note notes now have classes 'item-note-public' and
'item-note-nonpublic'
6 - Sign off

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js

index 9ec8d43..f3c05a6 100644 (file)
@@ -258,7 +258,7 @@ $(document).ready(function() {
                             if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) {
                                 span_class = "circ-hlt";
                             }
-                            title += " - <span class='" + span_class + "'>" + oObj.itemnotes + "</span>";
+                            title += " - <span class='" + span_class + " item-note-public'>" + oObj.itemnotes + "</span>";
                         }
 
                         if ( oObj.itemnotes_nonpublic ) {
@@ -266,7 +266,7 @@ $(document).ready(function() {
                             if ( $.datepicker.formatDate('yy-mm-dd', new Date(oObj.issuedate) ) == ymd ) {
                                 span_class = "circ-hlt";
                             }
-                            title += " - <span class='" + span_class + "'>" + oObj.itemnotes_nonpublic + "</span>";
+                            title += " - <span class='" + span_class + " item-note-nonpublic'>" + oObj.itemnotes_nonpublic + "</span>";
                         }
 
                         var onsite_checkout = '';