tpac ac part 3
authorBill Erickson <berick@esilibrary.com>
Mon, 14 May 2012 21:12:07 +0000 (17:12 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 14 May 2012 21:12:07 +0000 (17:12 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/templates/opac/parts/record/addedcontent.tt2

index 9e80bd7..ac9d5fc 100644 (file)
@@ -411,6 +411,7 @@ sub load_email_record {
     return Apache2::Const::OK;
 }
 
+# for each type, fire off the reqeust to see if content is available
 # ctx.added_content.$type.status:
 #   1 == available
 #   2 == not available
@@ -445,8 +446,9 @@ sub added_content_stage1 {
     }
 }
 
-# check each outstanding request.  If it's ready to be read, read 
-# the HTTP status and use it to determine if content is available.
+# check each outstanding request.  If it's ready, read the HTTP 
+# status and use it to determine if content is available.  Otherwise,
+# leave the status as unknown.
 sub added_content_stage2 {
     my $self = shift;
     my $ctx = $self->ctx;
index 60fb3a7..21e81ef 100644 (file)
@@ -15,7 +15,6 @@
     # content, do not render the link if it's known to not have content.  If 
     # the content status is unknown, render the link, but hide the link via CSS
     # if dojo is enabled.  If dojo is not enabled, render and display the link.
-
 %]
 
     <div id='ac_tab_wrapper'>