View | Details | Raw Unified | Return to bug 10868
Collapse All | Expand All

(-)a/catalogue/issuehistory.pl (-7 / +1 lines)
Lines 26-32 use C4::Output; Link Here
26
use C4::Circulation;    # GetBiblioIssues
26
use C4::Circulation;    # GetBiblioIssues
27
use C4::Biblio;    # GetBiblio GetBiblioFromItemNumber
27
use C4::Biblio;    # GetBiblio GetBiblioFromItemNumber
28
use C4::Search;		# enabled_staff_search_views
28
use C4::Search;		# enabled_staff_search_views
29
use Koha::DateUtils;
30
29
31
my $query = new CGI;
30
my $query = new CGI;
32
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
31
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Lines 67-78 if ($itemnumber){ Link Here
67
               %{$biblio},
66
               %{$biblio},
68
	);
67
	);
69
} 
68
} 
70
foreach (@{$issues}){
69
71
	$_->{date_due}   = format_sqldatetime($_->{date_due});
72
	$_->{issuedate}  = format_sqldatetime($_->{issuedate});
73
	$_->{returndate} = format_sqldatetime($_->{returndate});
74
	$_->{lastreneweddate} = format_sqldatetime($_->{lastreneweddate});
75
}
76
$template->param(
70
$template->param(
77
    total        => scalar @$issues,
71
    total        => scalar @$issues,
78
    issues       => $issues,
72
    issues       => $issues,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-5 / +3 lines)
Lines 22-28 Link Here
22
    Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]
22
    Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]
23
  [% END %]
23
  [% END %]
24
</title>
24
</title>
25
[% INCLUDE 'doc-head-close.inc' %]<script type="text/JavaScript" language="JavaScript">
25
[% INCLUDE 'doc-head-close.inc' %]<script type="text/JavaScript">
26
//<![CDATA[
26
//<![CDATA[
27
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
27
// http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
28
function verify_images() {
28
function verify_images() {
Lines 63-77 function verify_images() { Link Here
63
//]]>
63
//]]>
64
</script>
64
</script>
65
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
65
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
66
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
66
[% INCLUDE 'datatables.inc' %]
67
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
67
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
68
[% INCLUDE 'browser-strings.inc' %]
68
[% INCLUDE 'browser-strings.inc' %]
69
<!--[if lt IE 9]>
69
<!--[if lt IE 9]>
70
<script type="text/javascript" src="[% interface %]/lib/shims/json2.min.js"></script>
70
<script type="text/javascript" src="[% interface %]/lib/shims/json2.min.js"></script>
71
<![endif]-->
71
<![endif]-->
72
<script type="text/javascript" src="[% interface %]/js/browser.js"></script>
72
<script type="text/javascript" src="[% interface %]/js/browser.js"></script>
73
[% INCLUDE 'datatables-strings.inc' %]
74
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
75
<script type="text/javascript">
73
<script type="text/javascript">
76
//<![CDATA[
74
//<![CDATA[
77
    var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
75
    var browser = KOHA.browser('[% searchid %]', parseInt('[% biblionumber %]', 10));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-14 / +12 lines)
Lines 1-16 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
3
<title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<link rel="stylesheet" href="[% themelang %]/css/datatables.css" />
5
<link rel="stylesheet" href="[% themelang %]/css/datatables.css" />
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables.inc' %]
6
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
7
[% INCLUDE 'datatables-strings.inc' %]
8
<script type="text/javascript" id="js">
7
<script type="text/javascript" id="js">
9
$(document).ready(function() {
8
$(document).ready(function() {
10
    [% IF (dateformat == 'metric') %]
11
        dt_add_type_uk_date();
12
    [% END %]
13
    $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
9
    $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
10
            "aoColumns": [
11
                null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },{ "sType": "title-string" }
12
            ],
14
            "aaSorting": [[ 4, "desc" ]]
13
            "aaSorting": [[ 4, "desc" ]]
15
        })
14
        })
16
    );
15
    );
Lines 61-85 $(document).ready(function() { Link Here
61
                        &nbsp;
60
                        &nbsp;
62
                    [% END %]</td>
61
                    [% END %]</td>
63
                <td>[% IF ( issue.renewals ) %]
62
                <td>[% IF ( issue.renewals ) %]
64
                        Yes[% IF ( issue.lastreneweddate ) %], <small>last on: [% issue.lastreneweddate %]</small>
63
                        Yes[% IF ( issue.lastreneweddate ) %], <small>last on: [% issue.lastreneweddate |$KohaDates with_hours => 1  %]</small>
65
                            [% END %]
64
                            [% END %]
66
                    [% ELSE %]
65
                    [% ELSE %]
67
                        No
66
                        No
68
                    [% END %]</td>
67
                    [% END %]</td>
69
                <td>[% IF ( issue.issuedate ) %]
68
                <td>[% IF ( issue.issuedate ) %]
70
                        [% issue.issuedate %]
69
                        <span title="[% issue.issuedate %]">[% issue.issuedate |$KohaDates with_hours => 1  %]</span>
71
                    [% ELSE %]
70
                    [% ELSE %]
72
                        &nbsp;
71
                        <span title="0000-00-00"></span>
73
                    [% END %]</td>
72
                    [% END %]</td>
74
                <td>[% IF ( issue.date_due ) %]
73
                <td>[% IF ( issue.date_due ) %]
75
                        [% issue.date_due %]
74
                        <span title="[% issue.date_due %]">[% issue.date_due |$KohaDates with_hours => 1  %]</span>
76
                    [% ELSE %]
75
                    [% ELSE %]
77
                        &nbsp;
76
                        <span title="0000-00-00"></span>
78
                    [% END %]</td>
77
                    [% END %]</td>
79
                <td>[% IF ( issue.returndate ) %]
78
                <td>[% IF ( issue.returndate ) %]
80
                        [% issue.returndate %]
79
                        <span title="[% issue.returndate %]">[% issue.returndate |$KohaDates with_hours => 1  %]</span>
81
                    [% ELSE %]
80
                    [% ELSE %]
82
                        &nbsp;
81
                        <span title="0000-00-00"></span>
83
                    [% END %]</td>
82
                    [% END %]</td>
84
           </tr>
83
           </tr>
85
        [% END %]
84
        [% END %]
86
- 

Return to bug 10868