projects
/
koha-ffzg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 32437: Add Objects for ImportAuths
[koha-ffzg.git]
/
circ
/
transferstoreceive.pl
diff --git
a/circ/transferstoreceive.pl
b/circ/transferstoreceive.pl
index
d398ac7
..
0116278
100755
(executable)
--- a/
circ/transferstoreceive.pl
+++ b/
circ/transferstoreceive.pl
@@
-23,7
+23,7
@@
use CGI qw ( -utf8 );
use C4::Context;
use C4::Output qw( output_html_with_http_headers );
use C4::Auth qw( get_template_and_user );
use C4::Context;
use C4::Output qw( output_html_with_http_headers );
use C4::Auth qw( get_template_and_user );
-use C4::Circulation qw( GetTransfers
GetTransfers
FromTo );
+use C4::Circulation qw( GetTransfersFromTo );
use C4::Members;
use Date::Calc qw( Add_Delta_Days Date_to_Days Today );
use C4::Members;
use Date::Calc qw( Add_Delta_Days Date_to_Days Today );
@@
-31,7
+31,7
@@
use C4::Reserves;
use Koha::Items;
use Koha::ItemTypes;
use Koha::Libraries;
use Koha::Items;
use Koha::ItemTypes;
use Koha::Libraries;
-use Koha::DateUtils qw( dt_from_string
output_pref
);
+use Koha::DateUtils qw( dt_from_string );
use Koha::BiblioFrameworks;
use Koha::Patrons;
use Koha::BiblioFrameworks;
use Koha::Patrons;
@@
-111,9
+111,11
@@
while ( my $library = $libraries->next ) {
}
# check for a recall for this transfer
}
# check for a recall for this transfer
- my $recall = $item->recall;
- if ( defined $recall ) {
- $getransf{recall} = $recall;
+ if ( C4::Context->preference('UseRecalls') ) {
+ my $recall = $item->recall;
+ if ( defined $recall ) {
+ $getransf{recall} = $recall;
+ }
}
push( @transferloop, \%getransf );
}
push( @transferloop, \%getransf );
@@
-127,7
+129,7
@@
while ( my $library = $libraries->next ) {
$template->param(
branchesloop => \@branchesloop,
$template->param(
branchesloop => \@branchesloop,
- show_date =>
output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 })
,
+ show_date =>
dt_from_string
,
TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'),
latetransfers => $latetransfers ? 1 : 0,
);
TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'),
latetransfers => $latetransfers ? 1 : 0,
);