]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/default/opac/parts/header.tt2
Repaired merge conflicts resuling from ttopac-move-templates
[Evergreen.git] / Open-ILS / src / templates / default / opac / parts / header.tt2
1 [%- USE money = format(l('$%.2f'));
2     USE date;
3     USE CGI = CGI_utf8;
4     USE POSIX;
5     SET DATE_FORMAT = l('%m/%d/%Y');
6
7     # Don't wrap in l() here; do that where this format string is actually used.
8     SET HUMAN_NAME_FORMAT = '[_1] [_2] [_3] [_4] [_5]';
9
10     # x and y are artifacts of using <input type="image" /> tags instead of
11     # true submit buttons, and their values are never used. page is used, but
12     # currently none of the use cases for rendering the query_string back
13     # into page output call for propagating the value of the page variable.
14
15     query_string = CGI.query_string |
16         replace(';x=\d+','') | replace(';y=\d+','') | replace(';page=\d*', '') |
17         replace(';', '&') | replace('&', '&amp;');
18
19     propagator = '?' _ query_string;
20
21     is_advanced = CGI.param("_adv").size;
22     is_special = CGI.param("_special").size;
23 %]