Disable most added content types
authorDan Scott <dscott@laurentian.ca>
Wed, 14 Sep 2016 03:55:30 +0000 (23:55 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 14 Sep 2016 03:59:33 +0000 (23:59 -0400)
We're using OpenLibrary, which rarely provides hits for this kind of added
content. Save ourselves 5 additional web server hits and delayed record display
time by disabling the added content outright. Note that we will still get cover
images!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm

index 5f3d51c..83c1065 100644 (file)
@@ -26,8 +26,8 @@ sub load_record {
     return Apache2::Const::HTTP_BAD_REQUEST 
         unless $rec_id and $rec_id =~ /^\d+$/;
 
-    $self->added_content_stage1($rec_id);
-    $self->timelog("past added content stage 1");
+#    $self->added_content_stage1($rec_id);
+#    $self->timelog("past added content stage 1");
 
     my $org = $self->_get_search_lib();
     my $org_name = $ctx->{get_aou}->($org)->shortname;
@@ -196,9 +196,9 @@ sub load_record {
 
     $self->timelog("past expandies");
 
-    $self->added_content_stage2($rec_id);
+#    $self->added_content_stage2($rec_id);
 
-    $self->timelog("past added content stage 2");
+#    $self->timelog("past added content stage 2");
 
     return Apache2::Const::OK;
 }