@@ -, +, @@
- Confirm that branch name is shown instead of code.
- Confirm that no [] shows for items without call numbers
- Confirm that clicking a title opens a pop-up window showing details
for that title.
- Confirm that clicking a title opens a pop-up window whether you're on
the first page of results or any subsequent page.
---
.../prog/en/modules/tools/inventory.tt | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
+++ a/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 %]
--
|