added author to display
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 May 2008 03:56:11 +0000 (03:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 May 2008 03:56:11 +0000 (03:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9690 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html

index cbbdcdd..76f71e5 100644 (file)
@@ -29,6 +29,9 @@ var JUBGrid = {
     getJUBTitle : function(rowIndex) {
         return JUBGrid._getMARCAttr(rowIndex, 'title');
     },
+    getJUBAuthor : function(rowIndex) {
+        return JUBGrid._getMARCAttr(rowIndex, 'author');
+    },
     getJUBIsbn : function(rowIndex) {
         return JUBGrid._getMARCAttr(rowIndex, 'isbn');
     },
index e079971..ddc287d 100644 (file)
@@ -47,6 +47,7 @@ pointing to the JUB model (and store) that you have created.
         cells: [[
             {name: "ID", field: 'id'},
             {name: "Title", width: "auto", get:JUBGrid.getJUBTitle},
+            {name: "Author", get:JUBGrid.getJUBAuthor},
             {name: "ISBN", get:JUBGrid.getJUBIsbn},
             {name: '${_("Pubdate")}', get:JUBGrid.getJUBPubdate},
             {name: "Price", get:JUBGrid.getJUBPrice},