Bug 19469: Clean up template whitespace

Sponsored-by: Stockholm University Library

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Passed QA test tool
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2017-09-30 08:03:30 -04:00 committed by Nick Clemens
parent 83e515820a
commit 18d85cc8d7

View file

@ -507,23 +507,23 @@
[% END %] [% END %]
[% UNLESS ( patron ) %] [% UNLESS ( patron ) %]
[% IF ( reserveloop ) %] [% IF ( reserveloop ) %]
<form name="T[% time | html %]" action="modrequest.pl" method="post"> <form name="T[% time %]" action="modrequest.pl" method="post">
[% IF ( multi_hold ) %] [% IF ( multi_hold ) %]
<input type = "hidden" name="multi_hold" value="1"/> <input type = "hidden" name="multi_hold" value="1"/>
<input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/> <input type = "hidden" name="biblionumbers" value="[% biblionumbers %]"/>
[% END %] [% END %]
<fieldset class="rows left"> <fieldset class="rows left">
<legend>Existing holds</legend> <legend>Existing holds</legend>
[% FOREACH biblioloo IN biblioloop %]
[% FOREACH biblioloo IN biblioloop %]
[% IF ( biblioloo.reserveloop ) %] [% IF ( biblioloo.reserveloop ) %]
<table> <table>
[% IF ( multi_hold ) %] [% IF ( multi_hold ) %]
<caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | html %]">[% biblioloo.title | html %]</a></caption> <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></caption>
[% END %] [% END %]
<tr> <tr>
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
<th>Priority</th> <th>Priority</th>
@ -538,17 +538,18 @@
<th>Pickup library</th> <th>Pickup library</th>
<th>Details</th> <th>Details</th>
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
<th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th> <th><img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
[% END %] [% END %]
<th>&nbsp;</th> <th>&nbsp;</th>
[% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %] [% IF SuspendHoldsIntranet %]<th>&nbsp;</th><!-- Suspend Holds Column Header -->[% END %]
</tr> </tr>
[% FOREACH reserveloo IN biblioloo.reserveloop %] [% FOREACH reserveloo IN biblioloo.reserveloop %]
<tr> <tr>
<td> <td>
<input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id | html %]" /> <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber | html %]" /> <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" />
<input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber | html %]" /> <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" />
<select name="rank-request"> <select name="rank-request">
[% IF ( reserveloo.found ) %] [% IF ( reserveloo.found ) %]
[% IF ( reserveloo.intransit ) %] [% IF ( reserveloo.intransit ) %]
@ -561,82 +562,93 @@
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
[% FOREACH optionloo IN reserveloo.optionloop %] [% FOREACH optionloo IN reserveloo.optionloop %]
[% IF ( optionloo.selected ) %] [% IF ( optionloo.selected ) %]
<option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option> <option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>
[% ELSE %] [% ELSE %]
<option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option> <option value="[% optionloo.num %]">[% optionloo.num %]</option>
[% END %] [% END %]
[% END %] [% END %]
[% ELSIF !reserveloo.found %] [% ELSIF !reserveloo.found %]
<option value="[% reserveloo.priority | html %]" selected="selected">[% reserveloo.priority | html %]</option> <option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option>
[% END %] [% END %]
<option value="del">del</option> <option value="del">del</option>
</select> </select>
</td> </td>
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
<td style="white-space:nowrap;"> <td style="white-space:nowrap;">
<a title="Move hold up" href="request.pl?action=move&amp;where=up&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a title="Move hold up" href="request.pl?action=move&amp;where=up&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
<img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" /> <img src="[% interface %]/[% theme %]/img/go-up.png" alt="Go up" />
</a> </a>
<a title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a title="Move hold to top" href="request.pl?action=move&amp;where=top&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
<img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" /> <img src="[% interface %]/[% theme %]/img/go-top.png" alt="Go top" />
</a> </a>
<a title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a title="Move hold to bottom" href="request.pl?action=move&amp;where=bottom&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" /> <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Go bottom" />
</a> </a>
<a title="Move hold down" href="request.pl?action=move&amp;where=down&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a title="Move hold down" href="request.pl?action=move&amp;where=down&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" /> <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Go down" />
</a> </a>
</td> </td>
[% END %] [% END %]
<td> <td>
[% INCLUDE 'patron-title.inc' patron=reserveloo.patron hide_patron_infos_if_needed=1 %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrowernumber %]" >
[% IF ( reserveloo.hidename ) %]
[% reserveloo.cardnumber (reserveloo.borrowernumber) %]
[% ELSE %]
[% reserveloo.firstname %] [% reserveloo.surname %]
[% END %]
</a>
</td> </td>
<td>[% reserveloo.notes | html %]</td>
<td>[% reserveloo.date | html %]</td> <td>[% reserveloo.notes %]</td>
<td>[% reserveloo.expirationdate | html %]</td> <td>[% reserveloo.date %]</td>
<td>[% reserveloo.expirationdate %]</td>
<td> <td>
[% IF ( reserveloo.found ) %] [% IF ( reserveloo.found ) %]
[% IF ( reserveloo.atdestination ) %] [% IF ( reserveloo.atdestination ) %]
[% IF ( reserveloo.found ) %] [% IF ( reserveloo.found ) %]
Item waiting at <b> [% reserveloo.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" /> since [% reserveloo.waiting_date | $KohaDates %] Item waiting at <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" /> since [% reserveloo.waiting_date | $KohaDates %]
[% ELSE %] [% ELSE %]
Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" /> Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
[% END %] [% END %]
[% ELSE %] [% ELSE %]
Item being transferred to <b> [% reserveloo.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" /> Item being transferred to <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
[% END %] [% END %]
[% ELSE %] [% ELSE %]
[% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %] [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
[% Branches.GetName(reserveloo.branchcode) | html %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode | html %]" /> [% Branches.GetName(reserveloo.branchcode) %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode %]" />
[% ELSE %] [% ELSE %]
<select name="pickup"> <select name="pickup">
[% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, selected => reserveloo.branchcode }) %] [% PROCESS options_for_libraries libraries => Branches.all( selected => reserveloo.branchcode ) %]
</select> </select>
[% END %] [% END %]
[% END %] [% END %]
</td> </td>
<td> <td>
[% IF ( reserveloo.found ) %] [% IF ( reserveloo.found ) %]
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber | html %]"> <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
[% IF ( reserveloo.barcodenumber ) %] [% IF ( reserveloo.barcodenumber ) %]
[% reserveloo.barcodenumber | html %] [% reserveloo.barcodenumber %]
<input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber | html %]" /> <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
[% ELSE %] [% ELSE %]
No barcode No barcode
[% END %] [% END %]
</a> </a>
[% ELSE %] [% ELSE %]
[% IF ( reserveloo.item_level_hold ) %] [% IF ( reserveloo.item_level_hold ) %]
<i>Only item <i>
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber | html %]"> Only item
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
[% IF ( reserveloo.barcodenumber ) %] [% IF ( reserveloo.barcodenumber ) %]
[% reserveloo.barcodenumber | html %] [% reserveloo.barcodenumber %]
<input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber | html %]" /> <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
[% ELSE %] [% ELSE %]
No barcode No barcode
[% END %] [% END %]
@ -644,10 +656,11 @@
</i> </i>
[% ELSE %] [% ELSE %]
[% IF reserveloo.itemtype %] [% IF reserveloo.itemtype %]
<i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) | html %] item</i> <i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) %] item</i>
[% ELSE %] [% ELSE %]
<i>Next available</i> <i>Next available</i>
[% END %] [% END %]
<input type="hidden" name="itemnumber" value="" /> <input type="hidden" name="itemnumber" value="" />
[% END %] [% END %]
[% END %] [% END %]
@ -655,34 +668,35 @@
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
<td> <td>
<a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
[% IF ( reserveloo.lowestPriority ) %] [% IF ( reserveloo.lowestPriority ) %]
<img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" /> <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Unset lowest priority" />
[% ELSE %] [% ELSE %]
<img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" /> <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Set to lowest priority" />
[% END %] [% END %]
</a> </a>
</td> </td>
[% END %] [% END %]
<td> <td>
<a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;date=[% reserveloo.date | html %]"> <a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;reserve_id=[% reserveloo.reserve_id %]&amp;date=[% reserveloo.date %]">
<img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" /> <img src="[% interface %]/[% theme %]/img/x.png" alt="Cancel" />
</a> </a>
</td> </td>
[% IF SuspendHoldsIntranet %] [% IF SuspendHoldsIntranet %]
<td> <td>
[% UNLESS ( reserveloo.found ) %] [% UNLESS ( reserveloo.found ) %]
<input type="button" value="[% IF ( reserveloo.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&amp;reserve_id=[% reserveloo.reserve_id | html %]&amp;borrowernumber=[% reserveloo.borrowernumber | html %]&amp;biblionumber=[% reserveloo.biblionumber | html %]&amp;date=[% reserveloo.date | html %]&amp;suspend_until=' + $('#suspend_until_[% reserveloo.reserve_id | html %]').val()" /> <input type="button" value="[% IF ( reserveloo.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&amp;reserve_id=[% reserveloo.reserve_id %]&amp;borrowernumber=[% reserveloo.borrowernumber %]&amp;biblionumber=[% reserveloo.biblionumber %]&amp;date=[% reserveloo.date %]&amp;suspend_until=' + $('#suspend_until_[% reserveloo.reserve_id %]').val()" />
[% IF AutoResumeSuspendedHolds %] [% IF AutoResumeSuspendedHolds %]
<label for="suspend_until_[% reserveloo.reserve_id | html %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label> <label for="suspend_until_[% reserveloo.reserve_id %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
<input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id | html %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" /> <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
<a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id | html %]').value='';">Clear date</a> <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id %]').value='';">Clear date</a>
[% ELSE %] [% ELSE %]
<input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id | html %]" value=""/> <input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" value=""/>
[% END %] [% END %]
[% ELSE %] [% ELSE %]
<input type="hidden" name="suspend_until" value="" /> <input type="hidden" name="suspend_until" value="" />
[% END %] [% END %]
@ -694,14 +708,14 @@
[% END %] <!-- existing reserveloop --> [% END %] <!-- existing reserveloop -->
</table> </table>
[% END %]<!-- /reserveloop --> [% END %]<!-- /reserveloop -->
[% END %]<!-- /biblioloop --> [% END %]<!-- /biblioloop -->
<fieldset class="action"> <fieldset class="action">
<input type="submit" name="submit" value="Update hold(s)" /> <input type="submit" name="submit" value="Update hold(s)" />
</fieldset> </fieldset>
</fieldset> </fieldset>
</form> </form>
[% END %] [% END %]
[% END %] [% END %]
</div> </div>
</div> </div>