From: senator Date: Tue, 25 Jan 2011 23:48:41 +0000 (-0500) Subject: starts X-Git-Tag: opac-tt-poc-demo2~87^2~5 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa76342c2b1269b27b1da8e9e04eb992f4aaba5b;p=evergreen%2Fequinox.git starts --- diff --git a/Open-ILS/web/templates/default/opac/myopac.tt2 b/Open-ILS/web/templates/default/opac/myopac.tt2 deleted file mode 100644 index fc8c74cff0..0000000000 --- a/Open-ILS/web/templates/default/opac/myopac.tt2 +++ /dev/null @@ -1,44 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% - WRAPPER "default/opac/base.tt2"; - ctx.page_title = "My Account"; -%] - - - - - - - - - - - - - - - - - - - - - - - - - - -
First Name[% ctx.user.first_given_name %]
Middle Name[% ctx.user.second_given_name %]
Last Name[% ctx.user.family_name %]
Library Card[% ctx.user.card.barcode %]
Email Address[% ctx.user.email %]
Phone[% ctx.user.day_phone %]
- - - -[% END %] diff --git a/Open-ILS/web/templates/default/opac/myopac/_links.tt2 b/Open-ILS/web/templates/default/opac/myopac/_links.tt2 new file mode 100644 index 0000000000..4ab11d4c9d --- /dev/null +++ b/Open-ILS/web/templates/default/opac/myopac/_links.tt2 @@ -0,0 +1,17 @@ +[% +pages = [ + {url => "main", name => "My Account"}, + {url => "items_out", name => "Items Out"}, + {url => "items_held", name => "Items on Hold"}, + {url => "fines", name => "Fines"}, + {url => "prefs", name => "Account Preferences"}, + {url => "bookbags", name => "My Bookbags"} +]; +FOREACH page IN pages; + IF page.url != myopac_page %] [% END; + page.name; + IF page.url != myopac_page %] + [% ELSE; + ctx.page_title = page.name; + END; +END %] diff --git a/Open-ILS/web/templates/default/opac/myopac/main.tt2 b/Open-ILS/web/templates/default/opac/myopac/main.tt2 new file mode 100644 index 0000000000..dc86a482bf --- /dev/null +++ b/Open-ILS/web/templates/default/opac/myopac/main.tt2 @@ -0,0 +1,39 @@ +[% BLOCK html_head %] + +[% END %] + +[% WRAPPER "default/opac/base.tt2" %] +[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "main" %] + + + + + + + + + + + + + + + + + + + + + + + + + +
First Name[% ctx.user.first_given_name %]
Middle Name[% ctx.user.second_given_name %]
Last Name[% ctx.user.family_name %]
Library Card[% ctx.user.card.barcode %]
Email Address[% ctx.user.email %]
Phone[% ctx.user.day_phone %]
+ +[% END %] diff --git a/Open-ILS/web/templates/default/opac/results.tt2 b/Open-ILS/web/templates/default/opac/results.tt2 index 2a495f5e99..fa09ccaa3d 100644 --- a/Open-ILS/web/templates/default/opac/results.tt2 +++ b/Open-ILS/web/templates/default/opac/results.tt2 @@ -37,7 +37,7 @@ [% IF ctx.user; %]
diff --git a/Open-ILS/web/templates/default/opac/welcome.tt2 b/Open-ILS/web/templates/default/opac/welcome.tt2 index 85d19ac253..0cccd3fb34 100644 --- a/Open-ILS/web/templates/default/opac/welcome.tt2 +++ b/Open-ILS/web/templates/default/opac/welcome.tt2 @@ -18,7 +18,7 @@ Logout - Account + Account [% ELSE %]