[open-ils-commits] r16123 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Apr 4 12:18:18 EDT 2010
Author: erickson
Date: 2010-04-04 12:18:15 -0400 (Sun, 04 Apr 2010)
New Revision: 16123
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
in related viewer mode, go ahead and show the li attrs in the detail page since we're using the bib-level attrs for the summary display
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-04-04 05:19:03 UTC (rev 16122)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-04-04 16:18:15 UTC (rev 16123)
@@ -655,23 +655,23 @@
while(this.infoTbody.childNodes[0])
this.infoTbody.removeChild(this.infoTbody.childNodes[0]);
- if (!this._isRelatedViewer) {
- for(var i = 0; i < li.attributes().length; i++) {
- var attr = li.attributes()[i];
- var row = this.infoRow.cloneNode(true);
+ for(var i = 0; i < li.attributes().length; i++) {
+ var attr = li.attributes()[i];
+ var row = this.infoRow.cloneNode(true);
- var type = attr.attr_type().replace(/lineitem_(.*)_attr_definition/, '$1');
- var name = openils.acq.Lineitem.attrDefs[type].filter(
- function(a) {
- return (a.code() == attr.attr_name());
- }
- ).pop().description();
+ var type = attr.attr_type().replace(/lineitem_(.*)_attr_definition/, '$1');
+ var name = openils.acq.Lineitem.attrDefs[type].filter(
+ function(a) {
+ return (a.code() == attr.attr_name());
+ }
+ ).pop().description();
- dojo.query('[name=label]', row)[0].appendChild(document.createTextNode(name));
- dojo.query('[name=value]', row)[0].appendChild(document.createTextNode(attr.attr_value()));
- this.infoTbody.appendChild(row);
- }
+ dojo.query('[name=label]', row)[0].appendChild(document.createTextNode(name));
+ dojo.query('[name=value]', row)[0].appendChild(document.createTextNode(attr.attr_value()));
+ this.infoTbody.appendChild(row);
+ }
+ if (!this._isRelatedViewer) {
nodeByName("rel_link", dojo.byId("acq-lit-info-related")).href =
"/eg/acq/lineitem/related/" + li.id();
}
More information about the open-ils-commits
mailing list