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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-3 / +19 lines)
Lines 4-9 Link Here
4
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE ColumnsSettings %]
6
[% USE ColumnsSettings %]
7
[% USE ItemTypes %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
10
<title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
Lines 32-37 Link Here
32
    <div class="dialog message">This patron has no holds history.</div>
33
    <div class="dialog message">This patron has no holds history.</div>
33
[% ELSE %]
34
[% ELSE %]
34
35
36
[% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
37
35
<div id="holdshistory" style="overflow:hidden">
38
<div id="holdshistory" style="overflow:hidden">
36
  <table id="table_holdshistory">
39
  <table id="table_holdshistory">
37
      <thead>
40
      <thead>
Lines 43-49 Link Here
43
        <th class="title-string">Expiration date</th>
46
        <th class="title-string">Expiration date</th>
44
        <th class="title-string">Waiting date</th>
47
        <th class="title-string">Waiting date</th>
45
        <th class="title-string">Cancellation date</th>
48
        <th class="title-string">Cancellation date</th>
46
        <th>Item type</th>
49
        [% IF show_itemtype_column %]
50
          <th>Requested item type</th>
51
        [% END %]
47
        <th>Status</th>
52
        <th>Status</th>
48
      </thead>
53
      </thead>
49
      <tbody>
54
      <tbody>
Lines 74-80 Link Here
74
                  <span title="0000-00-00"></span>
79
                  <span title="0000-00-00"></span>
75
              [% END %]
80
              [% END %]
76
          </td>
81
          </td>
77
          <td>[% hold.itemtype %]</td>
82
          [% IF show_itemtype_column %]
83
            <td>
84
              [% IF hold.itemtype %]
85
                  [% ItemTypes.GetDescription( hold.itemtype ) %]
86
              [% ELSE %]
87
                  Any item type
88
              [% END %]
89
            </td>
90
          [% END %]
78
          <td>
91
          <td>
79
          [% IF hold.found == 'F' %]
92
          [% IF hold.found == 'F' %]
80
              Fulfilled
93
              Fulfilled
Lines 110-115 Link Here
110
    <script type="text/javascript" id="js">
123
    <script type="text/javascript" id="js">
111
        $(document).ready(function() {
124
        $(document).ready(function() {
112
            var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
125
            var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
126
            [% UNLESS show_itemtype_column %]
127
              //Remove item type column settings
128
              columns_settings.splice(8,1);
129
            [% END %]
113
            var table = KohaTable("table_holdshistory", {
130
            var table = KohaTable("table_holdshistory", {
114
                "sPaginationType": "four_button",
131
                "sPaginationType": "four_button",
115
                "aaSorting": [[4, 'desc']],
132
                "aaSorting": [[4, 'desc']],
116
- 

Return to bug 20806