From: Jared Camins-Esakov Date: Fri, 18 Jan 2013 02:59:34 +0000 (-0500) Subject: Merge branch 'bug_9108' into 3.12-master X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=243cfbe7cebb8f90225a4b72f7ffb63c3f9b8ca0;hp=4c96b5fb1fae26265cc217fac9c6dc6a96a04e03;p=koha.git Merge branch 'bug_9108' into 3.12-master --- diff --git a/C4/Auth.pm b/C4/Auth.pm index 2eb63f5170..92f1d4c41d 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -300,6 +300,7 @@ sub get_template_and_user { } if(C4::Context->preference('dateformat')){ + $template->param( dateformat => C4::Context->preference('dateformat') ); if(C4::Context->preference('dateformat') eq "metric"){ $template->param(dateformat_metric => 1); } elsif(C4::Context->preference('dateformat') eq "us"){ diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl index 5a1c2480d1..1341dc10b0 100755 --- a/acqui/booksellers.pl +++ b/acqui/booksellers.pl @@ -148,7 +148,6 @@ $template->param( loop_suppliers => $loop_suppliers, supplier => ( $booksellerid || $supplier ), count => $supplier_count, - dateformat => C4::Context->preference('dateformat'), ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index e89bcae394..1ffbffeed0 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -132,8 +132,6 @@ $template->param( basketgroupname => $basketgroupname, from_placed_on => $from_date, to_placed_on => $to_date, - DHTMLcalendar_dateformat=> C4::Dates->DHTMLcalendar(), - dateformat => C4::Dates->new()->format(), debug => $debug || $input->param('debug') || 0, uc(C4::Context->preference("marcflavour")) => 1 ); diff --git a/acqui/invoice.pl b/acqui/invoice.pl index 7c51ebcd39..6e6bb25138 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -195,7 +195,6 @@ $template->param( total_quantity => $total_quantity, invoiceincgst => $bookseller->{invoiceincgst}, currency => $bookseller->{listprice}, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), budgets_loop => \@budgets_loop, ); diff --git a/acqui/invoices.pl b/acqui/invoices.pl index 4b45e31dba..b7f360e987 100755 --- a/acqui/invoices.pl +++ b/acqui/invoices.pl @@ -151,7 +151,6 @@ $template->param( branchname => $branchname, suppliers_loop => \@suppliers_loop, branches_loop => \@branches_loop, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 544370d0b8..6dea529923 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -173,6 +173,5 @@ $template->param( estimateddeliverydateto => $estimateddeliverydateto, total => $total, intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/acqui/parcels.pl b/acqui/parcels.pl index 4f2849d43f..de868df8b2 100755 --- a/acqui/parcels.pl +++ b/acqui/parcels.pl @@ -175,7 +175,6 @@ $template->param( dateto => $dateto, resultsperpage => $resultsperpage, name => $bookseller->{'name'}, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), shipmentdate_today => C4::Dates->new()->output(), booksellerid => $booksellerid, GST => C4::Context->preference('gist'), diff --git a/acqui/supplier.pl b/acqui/supplier.pl index d113de2044..df417c0934 100755 --- a/acqui/supplier.pl +++ b/acqui/supplier.pl @@ -105,7 +105,6 @@ if ( $op eq 'display' ) { basketcount => $supplier->{'basketcount'}, subscriptioncount => $supplier->{'subscriptioncount'}, contracts => $contracts, - dateformat => C4::Context->preference("dateformat"), ); } elsif ( $op eq 'delete' ) { # no further message needed for the user diff --git a/admin/aqbudgetperiods.pl b/admin/aqbudgetperiods.pl index 5f34dc235e..9371d01d24 100755 --- a/admin/aqbudgetperiods.pl +++ b/admin/aqbudgetperiods.pl @@ -133,7 +133,6 @@ if ( $op eq 'add_form' ) { %$budgetperiod_hash ); } # IF-MOD - $template->param( DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),); } elsif ( $op eq 'add_validate' ) { @@ -175,7 +174,6 @@ elsif ( $op eq 'delete_confirmed' ) { # display the form for duplicating elsif ( $op eq 'duplicate_form'){ $template->param( - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), 'duplicate_form' => '1', 'budget_period_id' => $budget_period_id, ); @@ -291,7 +289,6 @@ $template->param( active_pagination_bar => $active_pagination_bar, inactive_pagination_bar => $inactive_pagination_bar, tab => $tab, - dateformat => C4::Context->preference('dateformat'), ); $template->param($op=>1); diff --git a/admin/aqcontract.pl b/admin/aqcontract.pl index 9d3f0acec5..d744953d93 100755 --- a/admin/aqcontract.pl +++ b/admin/aqcontract.pl @@ -51,8 +51,6 @@ $template->param( contractnumber => $contractnumber, booksellerid => $booksellerid, booksellername => $bookseller->{name}, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), - dateformat => C4::Context->preference("dateformat"), ); #ADD_FORM: called if $op is 'add_form'. Used to create form to add or modify a record @@ -70,7 +68,6 @@ if ( $op eq 'add_form' ) { contractdescription => $contract->{contractdescription}, contractstartdate => format_date( $contract->{contractstartdate} ), contractenddate => format_date( $contract->{contractenddate} ), - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar, ); } else { $template->param( @@ -79,7 +76,6 @@ if ( $op eq 'add_form' ) { contractdescription => undef, contractstartdate => undef, contractenddate => undef, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar, ); } diff --git a/admin/categorie.pl b/admin/categorie.pl index 496415839b..952ef7a1fd 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -130,7 +130,6 @@ if ($op eq 'add_form') { reservefee => sprintf("%.2f",$data->{'reservefee'}), hidelostitems => $data->{'hidelostitems'}, category_type => $data->{'category_type'}, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), SMSSendDriver => C4::Context->preference("SMSSendDriver"), TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification"), "type_".$data->{'category_type'} => 1, diff --git a/circ/circulation.pl b/circ/circulation.pl index 91fd1a2068..fe9ae6088e 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -735,8 +735,6 @@ $template->param( SpecifyDueDate => $duedatespec_allow, CircAutocompl => C4::Context->preference("CircAutocompl"), AllowRenewalLimitOverride => C4::Context->preference("AllowRenewalLimitOverride"), - dateformat => C4::Context->preference("dateformat"), - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), export_remove_fields => C4::Context->preference("ExportRemoveFields"), export_with_csv_profile => C4::Context->preference("ExportWithCsvProfile"), canned_bor_notes_loop => $canned_notes, diff --git a/circ/overdue.pl b/circ/overdue.pl index e44e792f0a..cef345cbff 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -221,7 +221,6 @@ $template->param( borname => $bornamefilter, order => $order, showall => $showall, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), dateduefrom => $input->param( 'dateduefrom' ) || '', datedueto => $input->param( 'datedueto' ) || '', ); diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index e532faff3e..0f5d3da78a 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -201,8 +201,6 @@ $template->param( run_report => $run_report, reserveloop => \@reservedata, "BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), - dateformat => C4::Context->preference("dateformat"), HoldsToPullStartDate => (C4::Context->preference('HoldsToPullStartDate')?C4::Context->preference('HoldsToPullStartDate'):2), ); diff --git a/circ/reserveratios.pl b/circ/reserveratios.pl index 1517adfb97..209a09e758 100755 --- a/circ/reserveratios.pl +++ b/circ/reserveratios.pl @@ -185,7 +185,6 @@ $template->param( to => $enddate, ratio => $ratio, reserveloop => \@reservedata, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl index 86f799275c..a037726059 100755 --- a/circ/transferstoreceive.pl +++ b/circ/transferstoreceive.pl @@ -120,7 +120,6 @@ foreach my $br ( keys %$branches ) { $template->param( branchesloop => \@branchesloop, show_date => format_date(C4::Dates->today('iso')), - 'dateformat_' . (C4::Context->preference("dateformat") || '') => 1, TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'), latetransfers => $latetransfers ? 1 : 0, ); diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl index cf529f04aa..80bb6097ee 100755 --- a/circ/view_holdsqueue.pl +++ b/circ/view_holdsqueue.pl @@ -58,7 +58,6 @@ if ( $run_report ) { total => scalar @$items, itemsloop => $items, run_report => $run_report, - dateformat => C4::Context->preference("dateformat"), ); } diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl index ec3feb55f2..158b847e05 100755 --- a/circ/waitingreserves.pl +++ b/circ/waitingreserves.pl @@ -155,7 +155,6 @@ $template->param( overloop => \@overloop, overcount => $overcount, show_date => format_date(C4::Dates->today('iso')), - dateformat => C4::Context->preference("dateformat"), ReservesMaxPickUpDelay => C4::Context->preference('ReservesMaxPickUpDelay') ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 98161b2331..3627077f64 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -15,6 +15,9 @@ [% INCLUDE 'datatables-strings.inc' %] - +//]]> + [% INCLUDE 'header.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt index 558f988d28..cc25c6895c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt @@ -9,7 +9,11 @@