Holger Knublauch

Fixed resource search, added index

This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
......@@ -29,6 +29,15 @@ body {
display: inline-block !important;
}
.appIndex {
font-size: 12px;
text-align: right;
}
.appIndexSummary {
font-size: 12px;
}
.appLabeledObjectsBodyTD {
padding: 0px 0px 1px 0px;
}
......
......@@ -73,6 +73,18 @@ function appAddRow(id, single) {
/**
* Programmatically closes and destroys the elements of a dialog that was previously
* loaded through a ui:loadable.
* @param loadId the id of the loadable surrounding the dialog
*/
function appCloseDialog(loadId) {
var div = $('#div-' + loadId);
div.dialog("destroy");
div.remove();
}
/**
* Called when the user clicks delete to delete a row from a widget.
* This completely deletes the element with the given id.
* The hidden fields to instruct the server that the given object
......@@ -108,7 +120,7 @@ function appInitAutoComplete(id, hiddenId, link) {
return item.label;
},
select : function(event, ui) {
$('#' + hiddenId).val(ui.item.resource);
$('#' + hiddenId).val('<' + ui.item.resource + '>');
}
});
}
......@@ -312,6 +324,22 @@ function appNavigateToInTab(resourceURI, queryGraphURI) {
}
// Private
function appOpenIndexLetterDialog(loadId, letter) {
appLoad(loadId, { letter: '"' + letter + '"' }, function() {
var div = $('#div-' + loadId);
var title = div.attr('title');
var options = {
modal: true,
title: title,
width: 500,
height: 400
};
div.dialog(options);
});
}
/**
* Loads and then opens a dialog that was inserted into the current
* document using app:ResourceViewDialog.
......
......@@ -82,8 +82,8 @@ rhswp:AGResourceViewDialog
]
] ;
ui:childIndex 0 ;
ui:varName "noLinks"^^xsd:string ;
ui:varValue "true"^^xsd:boolean
ui:varName "createLinkFunction"^^xsd:string ;
ui:varValue <http://appschema.org/noLink>
] ;
ui:childIndex 0
] ;
......