<td data-order="[% borrower.dateofbirth | html %]">[% INCLUDE 'patron-age.inc' patron = borrower %]</td>
<td>[% Categories.GetName( borrower.categorycode ) | html %]</td>
<td>
- [% IF ( Branches.GetLoggedInBranchcode == borrower.branchcode ) %]
+ [% IF ( Branches.GetLoggedInBranchcode == borrower.branchcode && !singleBranchMode ) %]
<span class="currentlibrary">[% Branches.GetName( borrower.branchcode ) | html %]</span>
[% ELSE %]
[% Branches.GetName( borrower.branchcode ) | html %]
+ ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " "
+ ( item.country ? item.country.escapeHtml() : "" )
+ "</small></a>";
- itemString += " <span class=\"ac-library\">" + item.branchname + "</span> " + "</a>";
+ [% UNLESS ( singleBranchMode ) %]
+ itemString += " <span class=\"ac-library\">" + item.branchname + "</span> " + "</a>";
+ [% END %]
return $( "<li></li>" )
.addClass( loggedInClass )
.data( "ui-autocomplete-item", item )
+ ( item.city ? item.city.escapeHtml() : "" ) + " "
+ ( item.zipcode ? item.zipcode.escapeHtml() : "" ) + " "
+ ( item.country ? item.country.escapeHtml() : "" ) + " "
- + "<span class=\"ac-library\">"
- + ( item.branchname ? item.branchname.escapeHtml() : "" )
- + "</span>"
+ [% UNLESS ( singleBranchMode ) %]
+ + "<span class=\"ac-library\">"
+ + ( item.branchname ? item.branchname.escapeHtml() : "" )
+ + "</span>"
+ [% END %]
+ "</small>"
+ "</a>" )
.appendTo( ul );
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% Asset.js("js/members-menu.js") | $raw %]
<script>
+ var singleBranchMode = '[% singleBranchMode | html %]';
$(document).ready(function() {
$('#merge-patrons').prop('disabled', true);
$('#memberresultst').on('change', 'input.selection', function() {
{ 'mDataProp': 'dt_category' },
{
'mDataProp': function ( oObj ) {
- if( oObj.dt_branch == "[% Branches.GetLoggedInBranchname | html %]" ){
+ if( !singleBranchMode && oObj.dt_branch == "[% Branches.GetLoggedInBranchname | html %]" ){
return "<span class=\"currentlibrary\">" + oObj.dt_branch + "</span>";
} else {
return oObj.dt_branch;