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 c2d9a8c550..c6832fca2c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -1,4 +1,5 @@ [% USE KohaDates %] +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Inventory [% INCLUDE 'doc-head-close.inc' %] @@ -32,10 +33,17 @@ $(document).ready(function(){ inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { 'sPaginationType': 'full_numbers', [% IF compareinv2barcd %] - "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ] + "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 1 ] } ], [% ELSE %] - "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ] + "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ], [% END %] + 'fnDrawCallback': function() { + //bind the click handler script to the newly created elements held in the table + $('.openWin').bind('click',function(e){ + e.preventDefault(); + openWindow(this.href,'marcview',800,600); + }); + } } )); @@ -78,7 +86,7 @@ $(document).ready(function(){ $(".checkboxed").unCheckCheckboxes(); return false; }); - }); +}); //]]> @@ -249,10 +257,11 @@ $(document).ready(function(){ [% result.barcode | html %] - [% result.homebranch | html %] [% result.location | html %] [[% result.itemcallnumber | html %]] + [% Branches.GetName( result.homebranch ) %] + [% result.location | html %] [% IF ( result.itemcallnumber ) %][[% result.itemcallnumber | html %]][% ELSE %][% END %] -

[% result.title | html %]

[% result.author | html %]

+

[% result.title | html %]

[% result.author | html %]

[% result.notforloan | html %]