From b5aed033ba18442561db499c6a9f54a0f523a34b Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 23 May 2008 03:56:11 +0000 Subject: [PATCH] added author to display git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9690 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js | 3 +++ .../web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html | 1 + 2 files changed, 4 insertions(+) diff --git a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js index cbbdcdddda..76f71e5021 100644 --- a/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js +++ b/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js @@ -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'); }, diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html index e0799711ca..ddc287d24f 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html @@ -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}, -- 2.11.0