adding View MARC link
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Jun 2005 20:53:04 +0000 (20:53 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Jun 2005 20:53:04 +0000 (20:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@919 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/opac/AbstractRecordResultPage.js

index e42783b..8223794 100644 (file)
@@ -286,6 +286,22 @@ AbstractRecordResultPage.prototype.displayRecord =
                        span.appendChild(createAppTextNode(" " + record.edition()));
 
                        author_cell.appendChild(span);
+
+               var marcb = elem( "a",
+                       {
+                               href:"javascript:void(0)",
+                               style: "text-decoration:underline"
+                       },
+                       {}, "View MARC" );
+
+               debug("Setting up view marc callback with record " + record.doc_id());
+               var func = buildViewMARCWindow(record);
+               marcb.onclick = func;
+
+               var marcd = elem( "div", { style: "float:right" } );
+               marcd.appendChild(marcb);
+               author_cell.appendChild(marcd);
+
        }
 
        var classname = "result_even";