[%
    prefix = c.cfg('settings').lab_number_prefix;
    yy = data.year - 2000 | format('%02d');
    formatted_labno = prefix _ data.request_number _ '/' _ yy;
%]

[% IF want_url %]
  <a href="[% app_url %]/search/=/[% data.id %][%
        IF query_modifiers; '?'; query_modifiers.join(';'); END %]">
    [% formatted_labno %]
  </a>
[% ELSE; formatted_labno; END %]
