From: Dan Scott Date: Mon, 27 Jun 2011 16:32:11 +0000 (-0400) Subject: The TT OPAC proof of concept is dead code - remove it X-Git-Tag: sprint4-merge-nov22~5128^2~75^2~5^2~4^2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdbs%2Ftt-opac-delete-poc;p=working%2FEvergreen.git The TT OPAC proof of concept is dead code - remove it Leading up to the TT OPAC dev fest, some people were confused by the opac-poc directory. It hasn't been touched since February 14th and we can always retrieve the old code from history if absolutely necessary. Signed-off-by: Dan Scott Signed-off-by: Dan Scott --- diff --git a/Open-ILS/web/templates/default/opac-poc/base.tt2 b/Open-ILS/web/templates/default/opac-poc/base.tt2 deleted file mode 100644 index 6d546077d5..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/base.tt2 +++ /dev/null @@ -1,12 +0,0 @@ - - - - [% ctx.page_title %] - - [% BLOCK html_head; END; # provide a default that can be overridden %] - [% PROCESS html_head %] - - - [% content %] - - diff --git a/Open-ILS/web/templates/default/opac-poc/common.tt2 b/Open-ILS/web/templates/default/opac-poc/common.tt2 deleted file mode 100644 index c4caa0e4f5..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/common.tt2 +++ /dev/null @@ -1,58 +0,0 @@ -[% - # Org Unit Selector Widget : - # PROCESS build_org_selector id='selector-id' name='selector-name' - BLOCK build_org_selector; - first_run = 0; - IF !org_unit; - org_unit = ctx.aou_tree; - first_run = 1; -%] - - [% END %] -[% END %] - -[% PROCESS 'default/opac/marc_attrs.tt2' %] -[% USE date; - USE money = format('$%.2f'); - icon_by_mattype = { # XXX KCLS-specific - "a" => "media_book.jpg", - "b" => "media_magazines.jpg", - "c" => "media_printedmusic.jpg", - "d" => "media_microform.jpg", - "e" => "media_equipment.jpg", - "f" => "media_films.jpg", - "g" => "", - "h" => "media_dvd.jpg", - "i" => "media_bookoncassette.jpg", - "j" => "media_musiccd.jpg", - "k" => "media_musiccassette.jpg", - "l" => "media_musicrecord.jpg", - "m" => "media_software.jpg", - "n" => "media_bookoncd.jpg", - "o" => "media_kit.jpg", - "p" => "media_newspaper.jpg", - "q" => "media_largeprint.jpg", - "r" => "media_3dobject.jpg", - "s" => "media_slide.jpg", - "t" => "media_online.jpg", - "u" => "media_eaudio.jpg", - "v" => "media_ebooktext.jpg", - "w" => "media_eaudio.jpg", - "x" => "media_downloadmusic.jpg", - "y" => "media_downloadvideo.jpg", - "z" => "media_map.jpg", - "2" => "media_cassettewithbook.jpg", - "5" => "media_cdwithbook.jpg" - }; -%] diff --git a/Open-ILS/web/templates/default/opac-poc/home.tt2 b/Open-ILS/web/templates/default/opac-poc/home.tt2 deleted file mode 100644 index 03b2ad1c15..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/home.tt2 +++ /dev/null @@ -1,24 +0,0 @@ -[% ctx.page_title = "Home" %] - -[% BLOCK html_head %] - -[% END %] - -[% WRAPPER "default/opac/base.tt2" %] -[% PROCESS "default/opac/common.tt2" %] - -
- -

-
- - [% PROCESS build_org_selector name='loc' %] - - -
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/login.tt2 b/Open-ILS/web/templates/default/opac-poc/login.tt2 deleted file mode 100644 index 1bae9588f6..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/login.tt2 +++ /dev/null @@ -1,32 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% - USE CGI; - WRAPPER "default/opac/base.tt2"; - ctx.page_title = "Login"; -%] - -
-
- - - - - - - - - - - - -
Username or Barcode
Password
- -
- -
-
-[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/marc_attrs.tt2 b/Open-ILS/web/templates/default/opac-poc/marc_attrs.tt2 deleted file mode 100644 index 73f12c3499..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/marc_attrs.tt2 +++ /dev/null @@ -1,18 +0,0 @@ -[% - # Extract MARC fields from XML - # get_marc_attrs( { marc_xml => doc } ) - BLOCK get_marc_attrs; - xml = args.marc_xml; - args.isbn = xml.findnodes('//*[@tag="020"]/*[@code="a"]').textContent; - args.upc = xml.findnodes('//*[@tag="024"]/*[@code="a"]').textContent; - args.issn = xml.findnodes('//*[@tag="022"]/*[@code="a"]').textContent; - args.title = xml.findnodes('//*[@tag="245"]/*[@code="a"]').textContent; - args.author = xml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent; - args.publisher = xml.findnodes('//*[@tag="260"]/*[@code="b"]').textContent; - args.pubdate = xml.findnodes('//*[@tag="260"]/*[@code="c"]').textContent; - args.mattype = xml.findnodes('//*[@tag="998"]/*[@code="d"]').textContent; # XXX this is KCLS-specific and will need to change - - # clean up the ISBN - args.isbn_clean = args.isbn.replace('\ .*', ''); - END; -%] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/_links.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/_links.tt2 deleted file mode 100644 index b0341985db..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/_links.tt2 +++ /dev/null @@ -1,20 +0,0 @@ -
[% -pages = [ - {url => "main", name => "My Account"}, - {url => "circs", name => "Items Out"}, - {url => "holds", 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-poc/myopac/bookbags.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/bookbags.tt2 deleted file mode 100644 index 0ac2dc099d..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/bookbags.tt2 +++ /dev/null @@ -1,52 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% WRAPPER "default/opac/base.tt2" %] -[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "bookbags" %] - -[% IF ctx.bookbags.size == 0 %] -No Bookbags -[% STOP; END %] - -
-
-
- - -
-
- - - - - - - - - - - [% FOR bbag IN ctx.bookbags %] - - - - - - - [% END %] - -
NamePublicCreated OnItems
[% bbag.name %][% bbag.pub == 't' ? 'Yes' : 'No' %][% date.format(ctx.parse_datetime(bbag.create_time),'%Y-%m-%d') %]XXX
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/circs.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/circs.tt2 deleted file mode 100644 index 5f08d2e59e..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/circs.tt2 +++ /dev/null @@ -1,77 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% PROCESS "default/opac/common.tt2" %] -[% WRAPPER "default/opac/base.tt2" %] -[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "circs" %] - -[% IF ctx.circs.size == 0 %] -No Items Checked Out -[% STOP; END %] - -
-
- [% IF ctx.success_renewals > 0 %] -
Successfully renewed [% ctx.success_renewals %] items.
- [% END %] - [% IF ctx.failed_renewals > 0 %] -
Failed to renew [% ctx.failed_renewals %] items.
- [% END %] -
- - -
-
- - - - - - - - - - - - [% FOR circ IN ctx.circs %] - [% attrs = {marc_xml => circ.marc_xml}; %] - [% PROCESS get_marc_attrs args=attrs; %] - - - - - - - - - - [% IF circ.renewal_response and circ.renewal_response.textcode != 'SUCCESS' %] - - - - [% END %] - [% END %] - -
TitleAuthorDue DateRenewals RemainingSelect
[% attrs.title %][% attrs.author %][% date.format(ctx.parse_datetime(circ.circ.due_date),'%Y-%m-%d') %][% circ.circ.renewal_remaining %]
-
- [% circ.renewal_response.textcode %] - [% IF circ.renewal_response.payload.fail_part and circ.renewal_response.payload.fail_part != circ.renewal_response.textcode %] - [% circ.renewal_response.payload.fail_part %] - [% END %] -
-
-
- -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/fines.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/fines.tt2 deleted file mode 100644 index 727322f78b..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/fines.tt2 +++ /dev/null @@ -1,107 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% PROCESS "default/opac/common.tt2" %] -[% WRAPPER "default/opac/base.tt2" %] -[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "fines" %] -

Summary

- - - - - - - - - - - - - - - -
Total OwedTotal PaidBalance Owed
[% money(ctx.fines.total_owed) %][% money(ctx.fines.total_paid) %][% money(ctx.fines.balance_owed) %]
- -[% IF ctx.fines.circulation.size > 0 %] -

Overdue materials

- - - - - - - - - - - - - [% FOR f IN ctx.fines.circulation %] - [% attrs = {marc_xml => f.marc_xml}; %] - [% PROCESS get_marc_attrs args=attrs; %] - - - - - - - - - [% END %] - -
TitleAuthorCheckout DateDue DateDate ReturnedBalance Owed
[% attrs.title %][% attrs.author %][% date.format( - ctx.parse_datetime(f.xact.circulation.xact_start), "%Y-%m-%d" - ) %][% date.format( - ctx.parse_datetime(f.xact.circulation.due_date), "%Y-%m-%d" - ) %][% - IF f.xact.circulation.checkin_time; - date.format( - ctx.parse_datetime(f.xact.circulation.checkin_time), - "%Y-%m-%d" - ); - END %][% money(f.xact.balance_owed) %]
-[% END %] - -[% IF ctx.fines.grocery.size > 0 %] -

Other Fees

- - - - - - - - - - - - - [% FOR f IN ctx.fines.grocery %] - - - - - - - - - [% END %] - -
Transaction Start TimeLast Payment TimeInitial Amount OwedTotal Amount PaidBalance OwedBilling Type
[% - date.format( - ctx.parse_datetime(f.xact.xact_start), "%Y-%m-%d" - ) %][% IF f.xact.last_payment_ts; - date.format( - ctx.parse_datetime(f.xact.last_payment_ts), "%Y-%m-%d" - ); - END %][% money(f.xact.total_owed) %][% money(f.xact.total_paid) %][% money(f.xact.balance_owed) %][% f.xact.last_billing_type %]
-[% END %] - -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/holds.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/holds.tt2 deleted file mode 100644 index ce09725149..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/holds.tt2 +++ /dev/null @@ -1,94 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% PROCESS "default/opac/common.tt2"; - WRAPPER "default/opac/base.tt2"; - INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "holds" %] - -[% IF ctx.holds.size == 0 %] -No Items On Hold -[% STOP; END %] - -
- -
-
- - -
-
- - - - - - - - - - - - - - - - [% FOR hold IN ctx.holds %] - [% attrs = {marc_xml => hold.marc_xml}; %] - [% PROCESS get_marc_attrs args=attrs; %] - - - - - - - - - - - - [% END %] - -
TitleAuthorFormatsPickup LocationStatusActiveActivate on...Expiration DateSelect
[% attrs.title %][% attrs.author %] - [% - key = attrs.mattype; - format_desc = ctx.find_citm(key).value; - icon_filename = icon_by_mattype.$key; - IF icon_filename; - %] - [% format_desc %] - [% END %] - [% ctx.find_aou(hold.hold.hold.pickup_lib).name %][% - IF hold.hold.status == 4; - "Available"; - ELSIF hold.hold.estimated_wait; - "Estimated wait (days): "; hold.hold.estimated_wait; - ELSIF hold.hold.status == 3; - "In Transit"; - ELSIF hold.hold.status < 3; - "Waiting for copy"; - END; - %][% IF hold.hold.hold.frozen == 't' %] No [% ELSE %] Yes [% END %][% - IF hold.hold.hold.frozen == 't' AND hold.hold.hold.thaw_date; - date.format(ctx.parse_datetime(hold.hold.hold.thaw_date),'%Y-%m-%d'); - ELSE; - '-'; - END - %][% hold.hold.hold.expire_time ? hold.hold.hold.expire_time : '-' %]
-
-[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/main.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/main.tt2 deleted file mode 100644 index 33a533ee47..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/main.tt2 +++ /dev/null @@ -1,39 +0,0 @@ -[% 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 %]Change
Phone[% ctx.user.day_phone %]
- -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/prefs.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/prefs.tt2 deleted file mode 100644 index d9a60ba1fe..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/prefs.tt2 +++ /dev/null @@ -1,15 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% WRAPPER "default/opac/base.tt2" %] -[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "prefs" %] -

XXX TODO Need to find out whether the list of pref fields can/should be generated - from db entries or something.

- -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/myopac/update_email.tt2 b/Open-ILS/web/templates/default/opac-poc/myopac/update_email.tt2 deleted file mode 100644 index 7666c8f332..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/myopac/update_email.tt2 +++ /dev/null @@ -1,20 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% WRAPPER "default/opac/base.tt2" %] -[% INCLUDE "default/opac/myopac/_links.tt2" %] - -
- - - -
Current Email[% ctx.user.email %]
New Email
- -
- -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/place_hold.tt2 b/Open-ILS/web/templates/default/opac-poc/place_hold.tt2 deleted file mode 100644 index bfbee071a3..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/place_hold.tt2 +++ /dev/null @@ -1,33 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% - USE CGI; - PROCESS "default/opac/common.tt2"; - WRAPPER "default/opac/base.tt2"; - ctx.page_title = "Place Hold"; - attrs = {marc_xml => ctx.marc_xml}; - PROCESS get_marc_attrs args=attrs; -%] - - -
-
Placing hold on [% attrs.title %], by [% attrs.author %]
- [% IF ctx.hold_success %] -
Succeeded
- [% ELSIF ctx.hold_failed %] -
Failed...
- [% ELSE %] -
- Choose a pickup Library [% PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib %] - - - - -
- [% END %] -
- -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/record.tt2 b/Open-ILS/web/templates/default/opac-poc/record.tt2 deleted file mode 100644 index 24f1203f77..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/record.tt2 +++ /dev/null @@ -1,82 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% - WRAPPER "default/opac/base.tt2"; - PROCESS "default/opac/common.tt2"; - ctx.page_title = "Details"; - record = ctx.record; - attrs = {marc_xml => ctx.marc_xml}; - PROCESS get_marc_attrs args=attrs; -%] - -
- - - - - [% IF attrs.title %][% END %] - [% IF attrs.author %][% END %] - [% IF attrs.isbn %][% END %] - [% IF attrs.issn %][% END %] - [% IF attrs.upc %][% END %] - [% IF attrs.pubdate %][% END %] - [% IF attrs.publisher %][% END %] - - - - -
- [% IF attrs.isbn_clean || attrs.upc %] - - [% END %] -
Title[% attrs.title %]
Author[% attrs.author %]
ISBN[% attrs.isbn %]
ISSN[% attrs.issn %]
UPC[% attrs.upc %]
Publication Date[% attrs.pubdate %]
Publishere[% attrs.publisher %]
Subjects - [% FOR node IN ctx.marc_xml.findnodes('//*[@tag="650"]') %] - [% - s0 = node.childNodes.0.textContent; - s1 = node.childNodes.1.textContent; - %] - [% IF s0 %] - [% s0 %] - [% IF s1 %] - -- - [% s1 %] - [% END %] -
- [% END %] - [% END %] -
- - - - - - - - - - - [% FOR acn IN record.call_numbers %] - [% FOR acp IN acn.copies %] - - - - - - - [% END %] - [% END %] - -
Owning LibCall NumberBarcodeStatus
[% ctx.find_aou(acn.owning_lib).shortname %][% acn.label %][% acp.barcode %][% ctx.find_ccs(acp.status).name %]
-
- - -[% END %] diff --git a/Open-ILS/web/templates/default/opac-poc/results.tt2 b/Open-ILS/web/templates/default/opac-poc/results.tt2 deleted file mode 100644 index 9ecead44b7..0000000000 --- a/Open-ILS/web/templates/default/opac-poc/results.tt2 +++ /dev/null @@ -1,117 +0,0 @@ -[% BLOCK html_head %] - -[% END %] - -[% - USE CGI; - USE POSIX; - WRAPPER "default/opac/base.tt2"; - PROCESS "default/opac/common.tt2"; - ctx.page_title = "Results"; - page = CGI.param('page') || 0; - query = CGI.param('query'); - page_count = POSIX.ceil(ctx.hit_count / ctx.page_size); - loc = CGI.param('loc'); -%] - -
-
- - [% PROCESS build_org_selector name='loc' value=loc %] - - -
-
- - - - - - - -
- [% IF ctx.user; %] - -
- - - - - - -
Signed in as [% ctx.user.usrname %]
Total Holds[% ctx.user_stats.holds.total %]
Ready Holds[% ctx.user_stats.holds.ready %]
Items Out[% ctx.user_stats.checkouts.out %]
Fines$[% ctx.user_stats.fines.balance_owed %]
- [% ELSE %] - [% - login = CGI.url("-path" => 1).replace('^http:', 'https:').replace('/results','/login'); - %] - Login - [% END %] - -
- [% FOR facet_type IN ctx.search_facets.keys %] - [% cmf = ctx.search_facets.$facet_type.cmf %] - [% cmf.label %] -
    - [% FOR facet IN ctx.search_facets.$facet_type.data.keys %] - [% facet_count = ctx.search_facets.$facet_type.data.$facet %] -
  • [% facet_count %] / [% facet %]
  • - [% END %] -
- [% END %] -
-
-
- [% l('Hits: [_1] / Page [_2] of [_3]', ctx.hit_count, page + 1, page_count) %] - [% - q = query | url; - np_link = '?query=' _ q; - IF loc; np_link = np_link _ "&loc=" _ loc; END; - IF depth or depth == 0; np_link = np_link _ "&depth=" _ depth; END; - %] - 0 %] href='[% np_link %]&page=[% page - 1 %]' [% END %]>Prev - Next -
- - [% - FOR rec IN ctx.records; - attrs = {marc_xml => rec.marc_xml}; - PROCESS get_marc_attrs args=attrs; - %] - - - - - [% END %] -
- [% IF attrs.isbn %] - - [% END %] - -
- -
- [% rec.copy_counts.available %] / [% rec.copy_counts.visible %] - Hold -
-

-
[% attrs.author %]
-
[% attrs.isbn || attrs.issn || attrs.upc %] [% attrs.publisher %] [% attrs.pubdate %]
-
-
-[% END %]