From 8586b0ae47063f91973d18d3d9c2085eb696a691 Mon Sep 17 00:00:00 2001
From: David Cook <dcook@prosentient.com.au>
Date: Mon, 13 Feb 2017 16:39:41 +1100
Subject: [PATCH] Bug 18099 - Put call number in its own column on inventory
 screen

TEST PLAN

0) Apply patch

1) Create an item with a call number in 952$o (e.g. ABC 123)
2) Using the inventory tool, make sure you "Select items you want to check"
which include that item (e.g. Item callnumber between: A and C)
3) Click "Submit"
4) The call number appears in the column marked "Call number"
instead of appearing as [ABC 123] under the library in the
"Library" column

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
index b682d55..a76fdef 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
@@ -242,6 +242,7 @@ $(document).ready(function(){
         <tr>
             [% UNLESS compareinv2barcd %]<th>Seen</th>[% END %]
             <th>Barcode</th>
+            <th>Call number</th>
             <th>Library</th>
             <th>Title</th>
             <th>Status</th>
@@ -263,9 +264,10 @@ $(document).ready(function(){
             <td>
             [% result.barcode | html %]
             </td>
+            <td>[% result.itemcallnumber | html %]</td>
             <td>
                 [% Branches.GetName( result.homebranch ) %]
-                [% result.location | html %] [% IF ( result.itemcallnumber ) %][[% result.itemcallnumber | html %]][% ELSE %][% END %]
+                [% result.location | html %]
             </td>
             <td>
             <p><a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% result.biblionumber %]" class="openWin">[% result.title | html %]</a></p><p>[% result.author | html %]</p>
-- 
2.1.4