Bug 18099 - Put call number in its own column on inventory screen
authorDavid Cook <dcook@prosentient.com.au>
Mon, 13 Feb 2017 05:39:41 +0000 (16:39 +1100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 17:09:22 +0000 (17:09 +0000)
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>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt

index b682d55..a76fdef 100644 (file)
@@ -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>