Bug 19022: inventory location and author display
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Aug 2017 08:43:44 +0000 (10:43 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 19:05:52 +0000 (16:05 -0300)
In inventory result page :
Location is displayed after branch without any difference.
Author is displayed into a paragraph making row hight.

This patch adds for location a span with class like in catalogue detail page, and changes author to be on same line in order to have a more compact display for this table that may be huge.

Test plan :
- Perform inventory with a barcode file
- Look at result
=> you see localtion in a new line after library and in italic
=> you see author after title on same line with "by" separator

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt

index 6fcbff8..13359ad 100644 (file)
@@ -303,11 +303,13 @@ $(document).ready(function(){
             <td>[% result.itemcallnumber | html %]</td>
             <td>
                 [% Branches.GetName( result.homebranch ) %]
-                [% result.location | html %]
+                <span class="shelvingloc">[% result.location | html %]</span>
             </td>
             <td>
                 <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% result.biblionumber %]" class="openWin">[% result.title | html %]</a>
-                <p>[% result.author | html %]</p>
+                [% IF ( result.author ) %]
+                    by <span class="author">[% result.author | html %]</span>
+                [% END %]
             </td>
             <td>
             [% result.notforloan | html %]