ou_id = attrs.plib_copy_counts.$depth.org_unit;
UNLESS depth < 0 || displayed_ous.exists(ou_name);
%]
+ [%- IF attrs.plib_copy_counts.$depth.count > 0; %]
<li class="preferred">[%
l('[_1] of [quant,_2,copy,copies] available at [_3].',
attrs.plib_copy_counts.$depth.available,
l('(Show preferred library)');
%]</a></li>
[%- END %]
+ [%- END %]
</ul>
</span>
WHILE depth < depths;
ou_name = ctx.get_aou(attrs.copy_counts.$depth.org_unit).name;
displayed_ous.$ou_name = 1;
+ IF attrs.copy_counts.$depth.count > 0;
%]
<div class="result_count">
[% l('[_1] of [quant,_2,copy,copies] available at [_3].',
ou_name) | html
%]
</div>
-[%- depth = depth + 1;
+[%- END;
+ depth = depth + 1;
END;
depth = attrs.plib_copy_counts.size - 1;
UNLESS displayed_ous.exists(ou_name);
%]
+[%- IF attrs.plib_copy_counts.$depth.count > 0; %]
<div class="result_count preferred">[%
l('[_1] of [quant,_2,copy,copies] available at [_3].',
attrs.plib_copy_counts.$depth.available,
%]<span> [% l('(Preferred)') %]</span>
</div>
[%- END %]
+[%- END %]