[OPEN-ILS-DEV] Staff Client - Custom HTML page functionality (howto)
Jason Etheridge
jason at esilibrary.com
Thu Aug 4 13:00:00 EDT 2011
> We'd like to point the Record ID column to the actual OPAC record details:
> <td><a
> href="http://catalogue.nrcan.gc.ca/opac/en-CA/skin/default/xml/rdetail.xml?r=7961854">7961854</a></td>
<snip>
> What kind of additional markup do we need to include in this page so that we
> get this record id link "smart" to being in the staff client, rather than
> simply calling up a 'dumb' rdetail page?
Do something like
var record_id = 7961854;
var content_params = {
'session' : ses(),
'authtime' : ses('authtime'),
'opac_url' : xulG.url_prefix(
urls.opac_rdetail
) + '?r=' + record_id;
};
xulG.new_tab( // or xulG.set_tab
xulG.url_prefix(urls.XUL_OPAC_WRAPPER),
{'tab_name': 'Retrieving title...' },
content_params
);
In master, the '?r=' is bundled into the urls.opac_rdetail constant
and wouldn't be specified here.
--
Jason Etheridge
| Equinox Software, Inc. / Your Library's Guide to Open Source
| phone: 1-877-OPEN-ILS (673-6457)
| email: jason at esilibrary.com
| web: http://www.esilibrary.com
More information about the Open-ils-dev
mailing list