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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt (-90 / +91 lines)
Lines 49-142 Link Here
49
<div class="sql">[% sql | html %]</div>
49
<div class="sql">[% sql | html %]</div>
50
50
51
[% IF ( reserveloop ) %]
51
[% IF ( reserveloop ) %]
52
    <table id="holdst">
52
    <div class="page-section">
53
      <thead>
53
        <table id="holds-ratios">
54
        <tr>
54
            <thead>
55
          <th>Holds</th>
55
                <tr>
56
          <th>Items</th>
56
                <th>Holds</th>
57
          <th>Hold ratio</th>
57
                <th>Items</th>
58
          <th class="anti-the">Title</th>
58
                <th>Hold ratio</th>
59
          <th>Home libraries</th>
59
                <th class="anti-the">Title</th>
60
          <th>Holding libraries</th>
60
                <th>Home libraries</th>
61
          <th>Location</th>
61
                <th>Holding libraries</th>
62
          <th>Itype</th>
62
                <th>Location</th>
63
          <th>Collection</th>
63
                <th>Itype</th>
64
          <th class="natural">Call numbers</th>
64
                <th>Collection</th>
65
          <th>Items needed</th>
65
                <th class="natural">Call numbers</th>
66
        </tr>
66
                <th>Items needed</th>
67
      </thead>
67
                </tr>
68
      <tbody>
68
            </thead>
69
      [% FOREACH reserveloo IN reserveloop %]
69
            <tbody>
70
        <tr>
70
                [% FOREACH reserveloo IN reserveloop %]
71
            <td><p>[% reserveloo.reservecount | html %]</p></td>
71
                    <tr>
72
            <td><p>[% reserveloo.itemcount | html %]</p></td>
72
                        <td><p>[% reserveloo.reservecount | html %]</p></td>
73
            <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber | uri %]" >[% reserveloo.thisratio | html %]</a></td>
73
                        <td><p>[% reserveloo.itemcount | html %]</p></td>
74
            <td>
74
                        <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber | uri %]" >[% reserveloo.thisratio | html %]</a></td>
75
                [% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
75
                        <td>
76
            </td>
76
                            [% INCLUDE 'biblio-title.inc' biblio=reserveloo link = 1 %][% IF ( reserveloo.author ) %] by [% reserveloo.author | html %][% END %]
77
            <td>
77
                        </td>
78
                  <ul>
78
                        <td>
79
                      [% FOREACH homebranch IN reserveloo.homebranch_list %]
79
                            <ul>
80
                          <li>[% Branches.GetName ( homebranch ) | html %]</li>
80
                                [% FOREACH homebranch IN reserveloo.homebranch_list %]
81
                      [% END %]
81
                                    <li>[% Branches.GetName ( homebranch ) | html %]</li>
82
                  </ul>
82
                                [% END %]
83
            </td>
83
                            </ul>
84
            <td>
84
                        </td>
85
                  <ul>
85
                        <td>
86
                      [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
86
                            <ul>
87
                          <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
87
                                [% FOREACH holdingbranch IN reserveloo.holdingbranch_list %]
88
                      [% END %]
88
                                    <li>[% Branches.GetName ( holdingbranch ) | html %]</li>
89
                  </ul>
89
                                [% END %]
90
            </td>
90
                            </ul>
91
            <td>
91
                        </td>
92
                  <ul>
92
                        <td>
93
                      [% FOREACH location IN reserveloo.location %]
93
                            <ul>
94
                          <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => location ) | html %]</li>
94
                                [% FOREACH location IN reserveloo.location %]
95
                      [% END %]
95
                                    <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => location ) | html %]</li>
96
                  </ul>
96
                                [% END %]
97
            </td>
97
                            </ul>
98
            <td>
98
                        </td>
99
                  <ul>
99
                        <td>
100
                      [% FOREACH itype IN reserveloo.itype %]
100
                            <ul>
101
                          <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
101
                                [% FOREACH itype IN reserveloo.itype %]
102
                      [% END %]
102
                                    <li>[% ItemTypes.GetDescription( itype ) | html %]</li>
103
                  </ul>
103
                                [% END %]
104
            </td>
104
                            </ul>
105
            <td>
105
                        </td>
106
                  <ul>
106
                        <td>
107
                      [% FOREACH ccode IN reserveloo.ccode %]
107
                            <ul>
108
                          <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ccode ) | html %]</li>
108
                                [% FOREACH ccode IN reserveloo.ccode %]
109
                      [% END %]
109
                                    <li>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => ccode ) | html %]</li>
110
                  </ul>
110
                                [% END %]
111
            </td>
111
                            </ul>
112
            <td>
112
                        </td>
113
                  <ul>
113
                        <td>
114
                      [% FOREACH listcall IN reserveloo.listcall %]
114
                            <ul>
115
                          <li>[% listcall | html %]</li>
115
                                [% FOREACH listcall IN reserveloo.listcall %]
116
                      [% END %]
116
                                    <li>[% listcall | html %]</li>
117
                  </ul>
117
                                [% END %]
118
            </td>
118
                            </ul>
119
            <td class="actions" data-sort="[% reserveloo.copies_to_buy | html %]">
119
                        </td>
120
                <p>
120
                        <td class="actions" data-sort="[% reserveloo.copies_to_buy | html %]">
121
                    [% IF ( reserveloo.thisratio_atleast1 ) %]
121
                            <p>
122
                        [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.copies_to_buy | html %] -->
122
                                [% IF ( reserveloo.thisratio_atleast1 ) %]
123
                            <a href="/cgi-bin/koha/acqui/neworderempty.pl?biblionumber=[% reserveloo.biblionumber | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;rr_quantity_to_order=[% reserveloo.copies_to_buy | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% reserveloo.copies_to_buy | html %] to order</a>
123
                                    [% IF ( CAN_user_acquisition && basketno && booksellerid ) %]<!-- [% reserveloo.copies_to_buy | html %] -->
124
                        [% ELSE %]
124
                                        <a href="/cgi-bin/koha/acqui/neworderempty.pl?biblionumber=[% reserveloo.biblionumber | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;rr_quantity_to_order=[% reserveloo.copies_to_buy | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% reserveloo.copies_to_buy | html %] to order</a>
125
                            <strong>[% reserveloo.copies_to_buy | html %] to order</strong>
125
                                    [% ELSE %]
126
                        [% END %]
126
                                        <strong>[% reserveloo.copies_to_buy | html %] to order</strong>
127
                        [% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
127
                                    [% END %]
128
                    [% ELSE %]
128
                                    [% IF ( reserveloo.pendingorders ) %]<br><strong>[% reserveloo.pendingorders | html %] pending</strong>[% END %]
129
                        <span>0 to order</span>
129
                                [% ELSE %]
130
                    [% END %]
130
                                    <span>0 to order</span>
131
                </p>
131
                                [% END %]
132
            </td>
132
                            </p>
133
        </tr>
133
                        </td>
134
      [% END %]
134
                    </tr>
135
      </tbody>
135
                [% END %]
136
    </table>
136
            </tbody>
137
    [% ELSE %]
137
        </table>
138
        <strong>No items found.</strong>
138
    </div> <!-- /.page-section -->
139
    [% END %]
139
[% ELSE %]
140
    <strong>No items found.</strong>
141
[% END %]
140
142
141
            </main>
143
            </main>
142
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
144
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
Lines 202-208 Link Here
202
    <script>
204
    <script>
203
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
205
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holdsratios', 'holds-ratios', 'json' ) | $raw %];
204
        $(document).ready(function() {
206
        $(document).ready(function() {
205
            KohaTable("holdst", {
207
            KohaTable("holds-ratios", {
206
                "aaSorting": [ [2,'desc'], [3,'asc'] ],
208
                "aaSorting": [ [2,'desc'], [3,'asc'] ],
207
                  "aoColumnDefs": [
209
                  "aoColumnDefs": [
208
                      { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
210
                      { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
209
- 

Return to bug 35820