[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Handle-info] Look Ma, No Plugins!
Hi:
Just posted this entry to CrossTech about JavaScript port of (part of) the
(Java) HCL library.
September 22, 2008
Look Ma, No Plugins!
http://www.crossref.org/CrossTech/2008/09/look_ma_no_plugins.html
(The app mentioned at end of post is kind of fun.)
Tony
var f = function (OpenHandleJson) {
h = new OpenHandle(OpenHandleJson);
hv = h.getHandleValues();
for (i = 0; i < hv.length; i++) {
v = new HandleValue(hv[i]);
if (v.hasType('URL')) {
print(v.getData());
}
else if (v.hasType('HS_ADMIN')) {
var a = new AdminRecord(v.getData());
print(a.getAdminPermissionString())
}
}
}
"And that, gentlemen, is how we do that." - Apollo 13
Following on from my earlier Client Handle Demo [1] post, this entry is just
to mention the availability of a port of (part of) the Handle client library
(in Java) to JavaScript: openhandle-0.1.1.js [2] which is being maintained
on the OpenHandle [3] site. The JavaScript module contains methods for three
classes: OpenHandle, HandleValue and AdminRecord.
What does all that mean? It means that Handles and their constituent values
and value fields can be accessed directly within any Web browser (using an
OpenHandle service) which allows a dynamic Handle client to be generated and
presented within a user context. No plugins required. The port mirrors the
class methods in the standard Java client library for Handle.
As a demo of this JavaScript module in action, see this Inspector [4] app
for a card index view of Handle (and by implication DOI) records.
[1] http://www.crossref.org/CrossTech/2008/07/client_handle_demo.html
[2] http://openhandle.googlecode.com/files/openhandle-0.1.1.js
[3] http://openhandle.googlecode.com/
[4] http://nurture.nature.com/openhandle/inspect.html
********************************************************************************
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and
attachments (if any). No contracts may be concluded on behalf of Macmillan
Publishers Limited or its agents by means of e-mail communication. Macmillan
Publishers Limited Registered in England and Wales with registered number 785998
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS
********************************************************************************
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info