From: Bill Erickson Date: Tue, 14 Feb 2012 19:34:21 +0000 (-0500) Subject: kpac : rename files/paths for tpac consistency X-Git-Tag: sprint4-merge-nov22~4001 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=33e75c06ce05826eac9e5abdf2bd2c813db58f88;p=working%2FEvergreen.git kpac : rename files/paths for tpac consistency Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index 93e88913ab..34a81f6278 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -25,29 +25,25 @@ sub load { my $path = $self->apache->path_info; ($self->ctx->{page} = $path) =~ s#.*/(.*)#$1#g; - return $self->load_simple("index") if $path =~ m|kpac/index|; + return $self->load_simple("home") if $path =~ m|kpac/home|; return $self->load_simple("category") if $path =~ m|kpac/category|; - - # note: sets page=rresult - return $self->load_rresults if $path =~ m|kpac/search_results|; # inherited from tpac - - # note: sets page=record - return $self->load_record(no_search => 1) if $path =~ m|kpac/detailed|; + return $self->load_rresults if $path =~ m|kpac/results|; # inherited + return $self->load_record(no_search => 1) if $path =~ m|kpac/record|; # inherited # ---------------------------------------------------------------- # Everything below here requires SSL # ---------------------------------------------------------------- return $self->redirect_ssl unless $self->cgi->https; - if ($path =~ m|kpac/checkout|) { + # XXX auth vs. no-auth, pending list answers + return $self->load_simple("getit_results") if $path =~ m|kpac/getit_results|; + + if ($path =~ m|kpac/getit|) { # after getit_results my $stat = $self->load_record(no_search => 1); - $self->ctx->{page} = 'checkout'; # repair the page + $self->ctx->{page} = 'getit'; # repair the page return $stat; } - # XXX auth vs. no-auth, pending list answers - return $self->load_simple("checkout_results") if $path =~ m|kpac/checkout_results|; - # ---------------------------------------------------------------- # Everything below here requires authentication # ---------------------------------------------------------------- @@ -89,6 +85,4 @@ sub load_kpac_config { } - 1; - diff --git a/Open-ILS/src/templates/kpac/checkout.tt2 b/Open-ILS/src/templates/kpac/checkout.tt2 deleted file mode 100644 index d392168df9..0000000000 --- a/Open-ILS/src/templates/kpac/checkout.tt2 +++ /dev/null @@ -1,114 +0,0 @@ -[% - PROCESS "opac/parts/header.tt2"; - PROCESS "opac/parts/misc_util.tt2"; # MARC - WRAPPER "kpac/parts/subpage.tt2"; - attrs = {marc_xml => ctx.marc_xml}; - PROCESS get_marc_attrs args=attrs; - ctx.page_title = attrs.title | html -%] - -
- [% INCLUDE 'kpac/parts/record_row.tt2' rec_id=ctx.bre_id%] -
- -
- - - - [% END %] - [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %] -

[% l('Enter your password') %]

- [% END %] - -
-

get it!

-

[% |l %]If you would like to request this item, please enter the following information and click
Submit below:[% END %]

-
-
-
 
-
- - [% IF !ctx.user %] - [% seed = l(' Enter Numbers... ') %] -

[% l('Library Card Number without spaces:') %]

-
- -
- pin number help -
 
-
 
- -

[% l('Password') %]

-
- - - [% l('password help') %] - -
 
-
 
- [% END %] - -

[% l('Choose a Pickup Library:') %]

-
- [% def_lib = ctx.default_pickup_lib || ctx.physical_loc; - PROCESS "opac/parts/org_selector.tt2"; - PROCESS build_org_selector name='pickup_lib' - value=def_lib id='pickup_lib' can_have_vols_only=1 %] -
-
-
-
- submit -
-
- - - - - -
-
- - [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='card_help' %] - [% l('library card') %]
-
-
-

save it!

-

If you would like to save this item to a list to be requested later, please choose a location and click
Submit below.

-
-
-
 
-
-

Choose a Pickup Library:

-
-
 
- -
-
-
- submit -
-
-
-
- - - -[% END %] diff --git a/Open-ILS/src/templates/kpac/checkout_results.tt2 b/Open-ILS/src/templates/kpac/checkout_results.tt2 deleted file mode 100644 index 56686f3069..0000000000 --- a/Open-ILS/src/templates/kpac/checkout_results.tt2 +++ /dev/null @@ -1,22 +0,0 @@ -[% PROCESS "opac/parts/header.tt2"; - PROCESS "kpac/parts/grid.tt2"; - WRAPPER "kpac/parts/subpage.tt2"; - ctx.page_title = l('Get it') %] - -

You Got It!

- -
-

Your Request for Book Name was successful.
You will be able to pick up this material at Fairwood.

-
- - - -[% END %] - diff --git a/Open-ILS/src/templates/kpac/detailed.tt2 b/Open-ILS/src/templates/kpac/detailed.tt2 deleted file mode 100644 index 7690773c82..0000000000 --- a/Open-ILS/src/templates/kpac/detailed.tt2 +++ /dev/null @@ -1,133 +0,0 @@ -[% - PROCESS "opac/parts/header.tt2"; - PROCESS "opac/parts/misc_util.tt2"; # MARC - WRAPPER "kpac/parts/subpage.tt2"; - attrs = {marc_xml => ctx.marc_xml}; - PROCESS get_marc_attrs args=attrs; - ctx.page_title = attrs.title | html -%] - -
- -
- [% ident = attrs.isbn_clean || attrs.upc; - href = ctx.media_prefix _ '/images/kpac/item_image.jpg'; - IF ident; href = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident; END %] - [% l('Image of item') %]
-
- -
-
[% attrs.title | html %]
-
[% l('by [_1]', attrs.author) | html %]
-
-
-
-  [% attrs.format_label %]  - -
-
[% attrs.format_label %]
-
- -
- -
rating
- -
 
- -
-
[% attrs.holdings.0.label | html %]
-
- [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] - [% IF attrs.phys_desc %]
[% attrs.phys_desc | html; END %] -
-
-
-
 
-
-
- -
-
[% l('Get it') | html %] -
-
- [% l('Go Back') | html %] -
-
-
 
-
- -
[% l('You can find this item at these locations:') %]
-
- [% INCLUDE 'kpac/parts/copy_table.tt2' %] -
- - [% IF attrs.summary %] -
[% l('About this item:') %]
-
- [% FOR sum IN attrs.summary %] - [% IF !loop.first; '
'; END %] -

[% sum | html %]

- [% END %] -
- [% END %] - - - -
- Reviews -
Rate this Item
- About the Author -
 
-
- -
- - - - - - -
Average Ratingratingout of 132 reviews
-
 
-
- -
-
 
-
-
- - - - - - -
Your email address will not
be displayed to other users.
-
-
- - - - - -
Ratingrating1 = Poor, 5 = Awesome
-
-
-
 
-
-
submit review
-
- - - -[% END %] diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 new file mode 100644 index 0000000000..71ab91b800 --- /dev/null +++ b/Open-ILS/src/templates/kpac/getit.tt2 @@ -0,0 +1,114 @@ +[% + PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; # MARC + WRAPPER "kpac/parts/subpage.tt2"; + attrs = {marc_xml => ctx.marc_xml}; + PROCESS get_marc_attrs args=attrs; + ctx.page_title = attrs.title | html +%] + +
+ [% INCLUDE 'kpac/parts/record_row.tt2' rec_id=ctx.bre_id%] +
+ +
+ + + + [% END %] + [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %] +

[% l('Enter your password') %]

+ [% END %] + +
+

get it!

+

[% |l %]If you would like to request this item, please enter the following information and click
Submit below:[% END %]

+
+
+
 
+
+ + [% IF !ctx.user %] + [% seed = l(' Enter Numbers... ') %] +

[% l('Library Card Number without spaces:') %]

+
+ +
+ pin number help +
 
+
 
+ +

[% l('Password') %]

+
+ + + [% l('password help') %] + +
 
+
 
+ [% END %] + +

[% l('Choose a Pickup Library:') %]

+
+ [% def_lib = ctx.default_pickup_lib || ctx.physical_loc; + PROCESS "opac/parts/org_selector.tt2"; + PROCESS build_org_selector name='pickup_lib' + value=def_lib id='pickup_lib' can_have_vols_only=1 %] +
+
+
+
+ submit +
+
+ + + + + +
+
+ + [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='card_help' %] + [% l('library card') %]
+
+
+

save it!

+

If you would like to save this item to a list to be requested later, please choose a location and click
Submit below.

+
+
+
 
+
+

Choose a Pickup Library:

+
+
 
+ +
+
+
+ submit +
+
+
+
+ + + +[% END %] diff --git a/Open-ILS/src/templates/kpac/getit_results.tt2 b/Open-ILS/src/templates/kpac/getit_results.tt2 new file mode 100644 index 0000000000..56686f3069 --- /dev/null +++ b/Open-ILS/src/templates/kpac/getit_results.tt2 @@ -0,0 +1,22 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + ctx.page_title = l('Get it') %] + +

You Got It!

+ +
+

Your Request for Book Name was successful.
You will be able to pick up this material at Fairwood.

+
+ + + +[% END %] + diff --git a/Open-ILS/src/templates/kpac/home.tt2 b/Open-ILS/src/templates/kpac/home.tt2 new file mode 100644 index 0000000000..99325b6276 --- /dev/null +++ b/Open-ILS/src/templates/kpac/home.tt2 @@ -0,0 +1,53 @@ +[% + PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/base.tt2"; + ctx.page_title = l("Home") +%] + +
+
 
+
 
+
 
+
 
+
+ + + + + + + +
 
+
+

Search your Library

+

for books, movies, music, magazines, and more!

+ + + + + + + + + + + +
search
+
+
+

Or click on an image to get started:

+ [% render_kpac_grid(ctx.kpac_layout.page) %] +
+ +
 
+ +
+
 
+
 
+
 
+
 
+
+ +[% END %] + diff --git a/Open-ILS/src/templates/kpac/index.tt2 b/Open-ILS/src/templates/kpac/index.tt2 deleted file mode 100644 index 99325b6276..0000000000 --- a/Open-ILS/src/templates/kpac/index.tt2 +++ /dev/null @@ -1,53 +0,0 @@ -[% - PROCESS "opac/parts/header.tt2"; - PROCESS "kpac/parts/grid.tt2"; - WRAPPER "kpac/parts/base.tt2"; - ctx.page_title = l("Home") -%] - -
-
 
-
 
-
 
-
 
-
- - - - - - - -
 
-
-

Search your Library

-

for books, movies, music, magazines, and more!

- - - - - - - - - - - -
search
-
-
-

Or click on an image to get started:

- [% render_kpac_grid(ctx.kpac_layout.page) %] -
- -
 
- -
-
 
-
 
-
 
-
 
-
- -[% END %] - diff --git a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 index 665e928611..ff6198acff 100644 --- a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 +++ b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 @@ -1,7 +1,7 @@