]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/header.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / header.tt2
1 [%- USE money = format(l('$%.2f'));
2     USE date;
3     USE CGI = CGI_utf8;
4     USE EGI18N;
5     USE POSIX;
6     SET DATE_FORMAT = l('%m/%d/%Y');
7
8     # Don't wrap in l() here; do that where this format string is actually used.
9     SET HUMAN_NAME_FORMAT = '[_1] [_2] [_3] [_4] [_5]';
10
11     # x and y are artifacts of using <input type="image" /> tags instead of
12     # true submit buttons, and their values are never used. page is used, but
13     # currently none of the use cases for rendering the query_string back
14     # into page output call for propagating the value of the page variable.
15
16     query_string = CGI.query_string |
17         replace(';x=\d+','') | replace(';y=\d+','') | replace(';page=\d*', '') |
18         replace(';', '&') | replace('&', '&amp;');
19
20     propagator = '?' _ query_string;
21
22     is_advanced = CGI.param("_adv").size;
23 %]
24
25
26 [%# XXX KCLS Note... Remove me soon...
27 BEGIN;
28 INSERT INTO config.record_attr_definition (name, label, tag, sf_list)
29     VALUES ('mattype', 'Material Type', '998', 'd');
30 INSERT INTO config.coded_value_map (ctype, code, value)
31     VALUES
32         ('mattype', 'a', 'Book'),
33         ('mattype', 'i', 'Book on cassette'),
34         ('mattype', 'n', 'Book on CD'),
35         ('mattype', 'x', 'Download music'),
36         ('mattype', 'y', 'Download video'),
37         ('mattype', 'h', 'DVD'),
38         ('mattype', 'w', 'eBook - Audio'),
39         ('mattype', 'v', 'eBook - Text'),
40         ('mattype', 'e', 'Equipment'),
41         ('mattype', 'f', 'Films'),
42         ('mattype', 'o', 'Kit'),
43         ('mattype', 'q', 'Large print'),
44         ('mattype', 'b', 'Magazine'),
45         ('mattype', 'd', 'Microform'),
46         ('mattype', 'k', 'Music cassette'),                                                                                                                                                              ('mattype', 'j', 'Music CD'),
47         ('mattype', 'l', 'Music LP'),                                                                                                                                                                    ('mattype', 'p', 'Newspaper'),
48         ('mattype', 't', 'Online'),                                                                                                                                                                      ('mattype', 'u', 'Player'),
49         ('mattype', 'c', 'Printed music / scores'),                                                                                                                                                      ('mattype', '2', 'Read along with cassette'),
50         ('mattype', '5', 'Read along with CD'),                                                                                                                                                          ('mattype', 'm', 'Software'),
51         ('mattype', 'g', 'Video'),                                                                                                                                                                       ('mattype', 'r', '3-D Object'),
52         ('mattype', 'z', 'Map'),                                                                                                                                                                         ('mattype', 's', 'Slide set');
53 COMMIT;
54 %]
55