From: miker Date: Thu, 23 Jun 2005 20:53:04 +0000 (+0000) Subject: adding View MARC link X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=00266370824d17a84116b7da2756f0748363f6c4;p=Evergreen.git adding View MARC link git-svn-id: svn://svn.open-ils.org/ILS/trunk@919 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/opac/AbstractRecordResultPage.js b/Open-ILS/src/javascript/opac/AbstractRecordResultPage.js index e42783b9b8..82237943b0 100644 --- a/Open-ILS/src/javascript/opac/AbstractRecordResultPage.js +++ b/Open-ILS/src/javascript/opac/AbstractRecordResultPage.js @@ -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";