Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
#36 display annotation body
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaGerber committed Mar 25, 2009
1 parent 6980ebe commit e68184b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions oaiorebuilder/content/loregui.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ lore.gui_spec = {
}, {
name: 'title'
}, {
name: 'body'
}, {
name: 'modified'
}, {
name: 'type'
Expand All @@ -83,6 +85,10 @@ lore.gui_spec = {
sortable: true,
dataIndex: 'title'
}, {
header: 'Body',
dataIndex: 'body',
hidden: false
}, {
header: 'Modified',
dataIndex: 'modified',
hidden: true
Expand Down
4 changes: 3 additions & 1 deletion oaiorebuilder/content/uifunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ function getAjaxRespSync (uri)
case 'application/xml': return req.responseXML;
case 'application/html': return req.responseText;
case 'application/text': return escapeHTML(req.responseText);
case 'application/xhtml+xml': return req.responseText; // should probably return XML
}
throw new Error('No usable response.\nContent is "' + rtype + '"' +
'\nRequest:\n' + uri + '\n' + req.responseText);
Expand Down Expand Up @@ -1015,7 +1016,8 @@ function Annotation (rdf)

node = rdf.getElementsByTagNameNS(DC_NS, 'language');
this.lang = safeGetFirstChildValue(node);


this.body = getAjaxRespSync(this.bodyURL);

}
catch (ex) {
Expand Down

0 comments on commit e68184b

Please sign in to comment.