Bug 36911: Reindent circ-menu.inc
This patch reindents the circ-menu include file so that it has
consistent indentation. These changes should have no visible effect on
the page.
To test, apply the patch and enable the 'CircSidebar' system
preference if necessary.
- View any circulation page, including the checkout page, to confirm
that the left-hand sidebar menu is unchanged.
- Test with the 'patronimages' system preference both on and off.
Viewing the diff while ignoring whitespace changes should show only
places where a line break was added.
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 002fbdcc62)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
6d9aab06d4
commit
3f561bd2be
|
|
@ -10,8 +10,8 @@
|
|||
[% ELSIF ( patron_is_staff ) %]
|
||||
[% patron_type_class = 'is-staff' %]
|
||||
[% END %]
|
||||
<div class="patroninfo [% patron_type_class | html %]">
|
||||
|
||||
<div class="patroninfo [% patron_type_class | html %]">
|
||||
[% IF ( patronimages ) %]
|
||||
<h5 class="text-center">
|
||||
[% ELSE %]
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
[% END %]
|
||||
[% INCLUDE 'patron-title.inc' %]
|
||||
</h5>
|
||||
|
||||
[% IF Koha.Preference('showLastPatron') %]
|
||||
<input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber | html %]">
|
||||
<input type="hidden" id="hiddenborrowername" value="[% patron.surname | html %] [% patron.firstname | html %]">
|
||||
|
|
@ -41,14 +42,18 @@
|
|||
<img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" class="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
|
||||
[% IF ( CAN_user_tools_batch_upload_patron_images ) %]
|
||||
<div class="patronimage-controls">
|
||||
<div class="patronimage-control"><a data-borrowernumber="[% patron.borrowernumber | uri %]" data-cardnumber="[% patron.cardnumber | html %]" class="btn btn-default edit-patronimage" title="Patron photo" href="#"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></div>
|
||||
<div class="patronimage-control">
|
||||
<a data-borrowernumber="[% patron.borrowernumber | uri %]" data-cardnumber="[% patron.cardnumber | html %]" class="btn btn-default edit-patronimage" title="Patron photo" href="#"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<div class="patronimage empty"></div>
|
||||
[% IF ( CAN_user_tools_batch_upload_patron_images ) %]
|
||||
<div class="patronimage-controls">
|
||||
<div class="patronimage-control"><a data-borrowernumber="[% patron.borrowernumber | uri %]" data-cardnumber="[% patron.cardnumber | html %]" class="btn btn-default edit-patronimage" title="Patron photo" href="#"><i class="fa fa-plus"></i> Add</a></div>
|
||||
<div class="patronimage-control">
|
||||
<a data-borrowernumber="[% patron.borrowernumber | uri %]" data-cardnumber="[% patron.cardnumber | html %]" class="btn btn-default edit-patronimage" title="Patron photo" href="#"><i class="fa fa-plus"></i> Add</a>
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
|
@ -57,7 +62,6 @@
|
|||
[% END %]
|
||||
|
||||
<ul class="patronbriefinfo">
|
||||
|
||||
[% IF patron.pronouns %]
|
||||
<li class="patronpronouns">([% patron.pronouns | html %])</li>
|
||||
[% END %]
|
||||
|
|
@ -66,7 +70,8 @@
|
|||
|
||||
[% PROCESS 'display-address-style' %]
|
||||
|
||||
[% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone">
|
||||
[% IF ( patron.phone || patron.mobile || patron.phonepro ) %]
|
||||
<li class="patronphone">
|
||||
[% IF ( patron.phone ) %]
|
||||
<a href="tel:[% patron.phone | url %]">[% patron.phone | html %]</a>
|
||||
[% ELSE %]
|
||||
|
|
@ -77,12 +82,18 @@
|
|||
<a href="tel:[% patron.phonepro | url %]">[% patron.phonepro | html %]</a>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]</li>[% END %]
|
||||
[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF ( patron.email ) %]
|
||||
<li class="email"> <a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a></li>
|
||||
<li class="email">
|
||||
<a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
[% IF ( patron.emailpro ) %]
|
||||
<li class="email"> <a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a></li>
|
||||
<li class="email">
|
||||
<a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( patron.dateofbirth ) %]
|
||||
|
|
@ -126,7 +137,10 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
<li class="patroncategory">Category: <span class="patroncategory_description">[% patron.category.description | html %]</span> <span class="patroncategory_code">([% patron.categorycode | html %])</span></li>
|
||||
|
||||
<li class="patroncategory">
|
||||
Category: <span class="patroncategory_description">[% patron.category.description | html %]</span> <span class="patroncategory_code">([% patron.categorycode | html %])</span>
|
||||
</li>
|
||||
<li class="patronlibrary">Home library: [% Branches.GetName( patron.branchcode ) | html %]</li>
|
||||
<li class="patronborrowernumber">Borrowernumber: [% patron.borrowernumber | html %]</li>
|
||||
<li><span class="patronupdatedon">Updated on [% patron.updated_on | $KohaDates with_hours => 1 %]</span></li>
|
||||
|
|
@ -137,68 +151,107 @@
|
|||
<li class="blocker account_locked">Account has been locked</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul></div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="menu">
|
||||
<ul>
|
||||
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
|
||||
[% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]">Check out</a></li>
|
||||
[% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]">Check out</a>
|
||||
</li>
|
||||
[% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split(',').grep('^' _ patron.categorycode _ '$').size > 0 %]
|
||||
[% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]&batch=1">Batch check out</a></li>
|
||||
[% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | uri %]&batch=1">Batch check out</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">Details</a></li>
|
||||
[% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">Details</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_updatecharges_remaining_permissions ) %]
|
||||
[% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">Accounting</a></li>
|
||||
[% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">Accounting</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
|
||||
[% IF Koha.Preference("RoutingSerials") %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% patron.borrowernumber | uri %]">Routing lists</a></li>[% END %]
|
||||
[% IF Koha.Preference("RoutingSerials") %]
|
||||
[% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% patron.borrowernumber | uri %]">Routing lists</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( intranetreadinghistory ) %]
|
||||
[% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a></li>
|
||||
[% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber | uri %]">Circulation history</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( IntranetReadingHistoryHolds ) %]
|
||||
[% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
|
||||
[% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( CAN_user_tools_view_system_logs ) %]
|
||||
[% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=CIRCULATION&object=[% patron.borrowernumber | uri %]&src=circ">Modification log</a></li>
|
||||
[% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=CIRCULATION&object=[% patron.borrowernumber | uri %]&src=circ">Modification log</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]">Notices</a></li>
|
||||
[% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]">Notices</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber | uri %]">Statistics</a></li>
|
||||
[% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber | uri %]">Statistics</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers %]
|
||||
[% IF ( EnableBorrowerFiles ) %]
|
||||
[% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a></li>
|
||||
[% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF CAN_user_suggestions_suggestions_manage %]
|
||||
[% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% patron.borrowernumber | uri %]">Purchase suggestions</a></li>
|
||||
[% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% patron.borrowernumber | uri %]">Purchase suggestions</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
|
||||
[% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber | uri %]">Discharges</a></li>
|
||||
[% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber | uri %]">Discharges</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF Koha.Preference('HouseboundModule') %]
|
||||
[% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | uri %]">Housebound</a></li>
|
||||
[% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber | uri %]">Housebound</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF Koha.Preference('ILLModule') && CAN_user_ill %]
|
||||
[% IF illview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/ill-requests.pl?borrowernumber=[% patron.borrowernumber | uri %]">ILL requests history</a></li>
|
||||
[% IF illview %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/ill-requests.pl?borrowernumber=[% patron.borrowernumber | uri %]">ILL requests history</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF Koha.Preference('UseRecalls') && CAN_user_recalls %]
|
||||
[% IF recallsview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/recallshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Recalls history</a></li>
|
||||
[% IF recallsview %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/recallshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Recalls history</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF ( CAN_user_serials && patron.alert_subscriptions.count ) %]
|
||||
[% IF alertsview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/alert-subscriptions.pl?borrowernumber=[% patron.borrowernumber | uri %]">Alert subscriptions ([% patron.alert_subscriptions.count | html %])</a></li>
|
||||
[% IF alertsview %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/members/alert-subscriptions.pl?borrowernumber=[% patron.borrowernumber | uri %]">Alert subscriptions ([% patron.alert_subscriptions.count | html %])</a>
|
||||
</li>
|
||||
[% END %]
|
||||
</ul></div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
[% IF patronimages && CAN_user_tools_batch_upload_patron_images %]
|
||||
<!-- Modal -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue