}
);
-our $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'}
+our $my_branch = C4::Context->preference("IndependentBranches") && !$staffflags->{'superlibrarian'}
? C4::Context->userenv()->{'branch'}
: undef;
# we show only the TMPL_VAR names $op
independant_branch => $my_branch,
script_name => $script_name,
searchfield => $searchfield,
+ branchcode => $branchcode,
action => $script_name
);
}
else {
push @{$field_selection}, add_fields('biblio','biblioitems'),
- {value => q{}, text => '---ITEMS---' },
+ add_fields('items'),
{value => 'items.content', text => 'items.content'},
- add_fields('issues','borrowers');
+ {value => 'items.fine', text => 'items.fine'},
+ add_fields('borrowers');
if ($module eq 'circulation') {
push @{$field_selection}, add_fields('opac_news');
+
+ }
+
+ if ( $module eq 'circulation' && $code eq "CHECKIN" ) {
+ push @{$field_selection}, add_fields('old_issues');
+ } else {
+ push @{$field_selection}, add_fields('issues');
}
}