added sub to collect the HTML version of a record for display
authorBill Erickson <erickson@esilibrary.com>
Mon, 14 Feb 2011 16:47:57 +0000 (11:47 -0500)
committerBill Erickson <erickson@esilibrary.com>
Mon, 14 Feb 2011 16:47:57 +0000 (11:47 -0500)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm

index ac15a59..71c7bd4 100644 (file)
@@ -116,4 +116,11 @@ sub mk_copy_query {
     #return $self->editor->json_query($query);
 }
 
+sub mk_marc_html {
+    my($self, $rec_id) = @_;
+
+    $self->ctx->{marc_html} = $U->simplereq(
+        'open-ils.search', 'open-ils.search.biblio.record.html', $rec_id);
+}
+
 1;