);
}
+ if(li.eg_bib_id()) {
+ openils.Util.show(nodeByName('catalog', row), 'inline');
+ nodeByName("catalog_link", row).onclick = this.generateMakeRecTab(li.eg_bib_id());
+ } else {
+ // TODO: Add discovery mechanism for bib linking
+ openils.Util.show(nodeByName('link_to_catalog', row), 'inline');
+ }
+
nodeByName("worksheet_link", row).href =
oilsBasePath + "/acq/lineitem/worksheet/" + li.id();
openils.Util.show(nodeByName('po', row), 'inline');
var link = nodeByName('po_link', row);
link.setAttribute('href', oilsBasePath + '/acq/po/view/' + li.purchase_order());
- link.innerHTML = 'PO: ' + po.name(); // TODO i18n
+ link.innerHTML += po.name();
}
}
['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
{params: [this.authtoken, li.picklist()]});
if (pl) {
- if (pl.name() == "")
+ if (pl.name() == "") {
openils.Util.show(nodeByName("bib_origin", row), "inline");
- openils.Util.show(nodeByName('pl', row), 'inline');
- var link = nodeByName('pl_link', row);
- link.setAttribute('href', oilsBasePath + '/acq/picklist/view/' + li.picklist());
- link.innerHTML = 'PL: '+pl.name(); // TODO i18n
+ } else {
+
+ openils.Util.show(nodeByName('pl', row), 'inline');
+ var link = nodeByName('pl_link', row);
+ link.setAttribute('href', oilsBasePath + '/acq/picklist/view/' + li.picklist());
+ link.innerHTML += pl.name();
+ }
}
}
oilsBasePath + "/acq/lineitem/related/" + li.id();
}
- if(li.eg_bib_id()) {
-
- openils.Util.show('acq-lit-info-cat-link');
- var link = dojo.byId('acq-lit-info-cat-link').getElementsByTagName('a')[0];
-
- if(openils.XUL.isXUL()) {
-
- link.setAttribute('href', 'javascript:void(0);');
- link.onclick = this.generateMakeRecTab( li.eg_bib_id() );
-
- } else {
- var href = link.getAttribute('href');
- if(href.match(/=$/))
- link.setAttribute('href', href + li.eg_bib_id());
- }
- } else {
- openils.Util.hide('acq-lit-info-cat-link');
- }
};
this.generateMakeRecTab = function(bib_id,default_view, row) {
<table style='width:100%;'>
<tbody>
<tr>
- <td rowspan='2' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></td>
+ <td rowspan='3' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></td>
<td style='width:70%;font-weight:bold;'>
<span name="bib_origin" class="hidden">
<img src="/opac/images/book-icon.png" />
</span><a attr='title' href='javascript:void(0);'></a>
- <span name="worksheet">(<a name="worksheet_link" href="javascript:void(0);">✍</a>)</span>
- <span name='pl' class='hidden'>(<a name='pl_link' href='javascript:void(0);'></a>)</span>
- <span name='po' class='hidden'>(<a name='po_link' href='javascript:void(0);'>PO</a>)</span>
</td>
<td rowspan='2' style='text-align:right'>
</td>
<span name='source_label'></span>
</td>
</tr>
+ <tr>
+ <td colspan='0'>
+ <span name="catalog" class='hidden'><a title='Show In Catalog' name="catalog_link" href="javascript:void(0);">➟ catalog</a></span>
+ <span name="link_to_catalog" class='hidden'><a title='Link To Catalog Record' name="link_to_catalog_link" href="javascript:void(0);">➾ link to catalog</a></span>
+ <span name="worksheet"> | <a title='Generate Worksheet' name="worksheet_link" href="javascript:void(0);">✍ worksheet</a></span>
+ <span name='pl' class='hidden'> | <a title='Select List' name='pl_link' href='javascript:void(0);'>❖ </a></span>
+ <span name='po' class='hidden'> | <a title='Purchase Order' name='po_link' href='javascript:void(0);'>⌘ </a></span>
+ </td>
+ </tr>
</tbody>
</table>
</td>
- <td><a name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
+ <td><a title='FOOOBAR' name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
<td>
<a name='noteslink' href='javascript:void(0);'>Notes(<span name='notes_count'>0</span>)</a><span name="notes_alert_flag"></span>
</td>