my $ctx = $self->ctx;
$ctx->{page} = 'record';
+ $self->timelog("load_record() began");
my $org = $self->_get_search_lib();
my $org_name = $ctx->{get_aou}->($org)->shortname;
my $pref_ou = $self->_get_pref_lib();
if ($ctx->{staff_saved_search_size}) {
$ctx->{saved_searches} = ($self->staff_load_searches)[1];
}
+ $self->timelog("past staff saved searches");
$self->fetch_related_search_info($rec_id);
+ $self->timelog("past related search info");
# run copy retrieval in parallel to bib retrieval
# XXX unapi
depth => $depth,
pref_lib => $pref_ou
});
+
+ $self->timelog("past get_records_and_facets()");
$ctx->{bre_id} = $rec_data[0]->{id};
$ctx->{marc_xml} = $rec_data[0]->{marc_xml};
$ctx->{copies} = $copy_rec->gather(1);
+ $self->timelog("past store copy retrieval call");
$ctx->{copy_limit} = $copy_limit;
$ctx->{copy_offset} = $copy_offset;
$self->get_hold_copy_summary($rec_id, $org);
+ $self->timelog("past get_hold_copy_summary()");
$self->ctx->{bib_is_dead} = OpenILS::Application::AppUtils->is_true(
OpenILS::Utils::CStoreEditor->new->json_query({
select => { bre => [ 'deleted' ] },
};
}
+ $self->timelog("past serials holding stuff");
+
my %expandies = (
marchtml => sub {
$ctx->{marchtml} = $self->mk_marc_html($rec_id);
}
}
+ $self->timelog("past expandies");
return Apache2::Const::OK;
}
<a href="http://example.com">[% l('Bottom Link 3') %]</a> |
<a href="http://example.com">[% l('Bottom Link 4') %]</a> |
<a href="http://example.com">[% l('Bottom Link 5') %]</a>
-
+ [% IF ctx.timing %]
+ <div id="timing">
+ [% FOR event IN ctx.timing %]
+ At <span class="timing-time">[% event.0 | format("%0.4f") %]</span>:
+ <span class="timing-event">[% event.1 %]</span><br />
+ [% END %]
+ </div>
+ [% END %]
<div id="copyright_text" style="margin-top: 2em;">
[% l('Copyright © 2006-[_1] Georgia Public Library Service, and others', date.format(date.now, '%Y')) %]
</div>