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

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