Bug 7317: (QA followup) Fix capitalization and terminology issues
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Nov 2017 19:15:32 +0000 (16:15 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Nov 2017 14:42:15 +0000 (11:42 -0300)
This patch fixed terminology issues on the UI, and removes CSS-based
case forcing for column names.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Illrequest/Config.pm
koha-tmpl/intranet-tmpl/prog/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt

index 5c78e80..776cb99 100644 (file)
@@ -19,7 +19,7 @@ package Koha::Illrequest::Config;
 
 use Modern::Perl;
 
-use File::Basename;
+use File::Basename qw/basename/;
 
 use C4::Context;
 
index 020d6e7..9a18b09 100644 (file)
@@ -3137,7 +3137,3 @@ fieldset.rows + fieldset.action {
 table#ill-requests {
     width: 100% !important;
 }
-
-table#ill-requests th {
-    text-transform: capitalize;
-}
index 0c41d02..86a93a3 100644 (file)
@@ -1,5 +1,6 @@
 [% USE Branches %]
 [% USE Koha %]
+[% USE KohaDates %]
 
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; ILL requests  &rsaquo;</title>
                     null :
                     row[thisCol];
             });
-        }
+        };
 
         // Strip the expand prefix if it exists, we do this for display
         var stripPrefix = function(value) {
         };
 
         // Our 'render' function for borrowerlink
-        var createBorrowerLink = function(data, type, row) {
+        var createPatronLink = function(data, type, row) {
             return '<a title="View borrower details" ' +
                 'href="/cgi-bin/koha/members/moremember.pl?' +
                 'borrowernumber='+row.borrowernumber+'">' +
                 'method=illview&amp;illrequest_id=' +
                 row.illrequest_id +
                 '">Manage request</a>' +
-                '</div>'
+                '</div>';
         };
 
         // Columns that require special treatment
                 func: createActionLink
             },
             borrowername: {
-                name: 'Borrower',
-                func: createBorrowerLink
+                name: 'Patron',
+                func: createPatronLink
             },
             illrequest_id: {
                 name: 'Request number',
                 func: createStatus
             },
             biblio_id: {
-                name: 'Biblio number'
+                name: 'Biblio ID'
             },
             branchcode: {
-                name: 'Branch code'
+                name: 'Library'
             }
         };
 
                 .replace(/^filter/, '')
                 .replace(/([A-Z])/g, "_$1")
                 .replace(/^_/,'').toLowerCase();
-        };
+        }
 
         // Toggle request attributes in Illview
         $('#toggle_requestattributes').click(function() {
                     extra.forEach(function(thisExtra) {
                         allCols[thisExtra] = 1;
                     });
-                };
+                }
                 // Different requests will have different columns,
                 // make sure they all have the same
                 $.each(dataCopy, function(k, row) {
                     ) {
                         colObj.render = specialCols[thisCol].func;
                     } else {
-                        colObj.data = thisCol
+                        colObj.data = thisCol;
                     }
                     colData.push(colObj);
                 });
                             <legend>Request details</legend>
                             <ol>
                                 <li class="borrowernumber">
-                                    <label for="borrowernumber">Borrower number:</label>
+                                    <label for="borrowernumber">Patron ID:</label>
                                     <input name="borrowernumber" id="borrowernumber" type="text" value="[% request.borrowernumber %]">
                                 </li>
                                 <li class="biblio_id">
-                                    <label for="biblio_id" class="biblio_id">Biblio number:</label>
+                                    <label for="biblio_id" class="biblio_id">Biblio ID:</label>
                                     <input name="biblio_id" id="biblio_id" type="text" value="[% request.biblio_id %]">
                                 </li>
                                 <li class="branchcode">
-                                    <label for="branchcode" class="branchcode">Branch:</label>
+                                    <label for="branchcode" class="branchcode">Library:</label>
                                     <select name="branchcode" id="branch">
                                         [% FOREACH branch IN branches %]
                                             [% IF ( branch.branchcode == request.branchcode ) %]
                                 </li>
                                 <li class="updated">
                                     <label class="updated">Last updated:</label>
-                                    [% request.updated %]
+                                    [% request.updated | $KohaDates with_hours => 1 %]
                                 </li>
                                 <li class="medium">
                                     <label class="medium">Request type:</label>
                                 </li>
                                 <li class="cost">
                                     <label class="cost">Cost:</label>
-                                    [% request.cost %]
+                                    [% request.cost || 'N/A' %]
                                 </li>
                                 <li class="req_id">
                                     <label class="req_id">Request number:</label>
                                     [% request.orderid || "N/A" %]
                                 </div>
                                 <div class="borrowernumber">
-                                    <span class="label borrowernumber">Borrower:</span>
+                                    <span class="label borrowernumber">Patron:</span>
                                     [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %]
                                     <a href="[% borrowerlink %]" title="View borrower details">
                                     [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" %]
                                 </div>
 
                                 <div class="biblio_id">
-                                    <span class="label biblio_id">Biblio number:</span>
+                                    <span class="label biblio_id">Biblio ID:</span>
                                     [% request.biblio_id || "N/A" %]
                                 </div>
                                 <div class="branchcode">
-                                    <span class="label branchcode">Branch:</span>
+                                    <span class="label branchcode">Library:</span>
                                     [% Branches.GetName(request.branchcode) %]
                                 </div>
                                 <div class="status">
                                 </div>
                                 <div class="updated">
                                     <span class="label updated">Last updated:</span>
-                                    [% request.updated %]
+                                    [% request.updated | $KohaDates with_hours => 1 %]
                                 </div>
                                 <div class="medium">
                                     <span class="label medium">Request type:</span>