File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
system/application/views/widgets/import Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,8 @@ if ('undefined'==typeof(escape_html)) {
257
257
if ( 'object' == typeof ( results_data [ j ] . thumb ) && results_data [ j ] . thumb . length ) results_data [ j ] . thumb = results_data [ j ] . thumb [ 0 ] ;
258
258
results_data [ j ] . mediatype = ( 'undefined' != typeof ( post [ j ] [ 'dcterms:type' ] ) ) ? post [ j ] [ 'dcterms:type' ] : 'Media' ;
259
259
results_data [ j ] . contributor = ( 'undefined' != typeof ( post [ j ] [ 'dcterms:contributor' ] ) ) ? post [ j ] [ 'dcterms:contributor' ] : null ;
260
-
260
+ results_data [ j ] . sourceLocation = ( 'undefined' != typeof ( post [ j ] [ 'art:sourceLocation' ] ) ) ? post [ j ] [ 'art:sourceLocation' ] : null ;
261
+
261
262
}
262
263
263
264
return results_data ;
@@ -477,7 +478,7 @@ if ('undefined'==typeof(escape_html)) {
477
478
} else {
478
479
var url_str = '<div class="url">' ;
479
480
url_str += '<a href="javascript:;" onclick="scalarimport_preview(\'' + results_data [ j ] . url + '\')" class="btn btn-default btn-xs generic_button small">Preview</a> ' ;
480
- url_str += '<a href="' + results_data [ j ] . node_uri + '" target="_blank" class="btn btn-default btn-xs generic_button small">Source</a> ' ;
481
+ url_str += '<a href="' + ( ( null != results_data [ j ] . sourceLocation ) ? results_data [ j ] . sourceLocation : results_data [ j ] . node_uri ) + '" target="_blank" class="btn btn-default btn-xs generic_button small">Source</a> ' ;
481
482
url_str += '<span>' + results_data [ j ] . mediatype + ': ' + basename ( results_data [ j ] . url ) + '</span>' ;
482
483
url_str += '</div>' ;
483
484
$ ( url_str ) . appendTo ( $content ) ;
You can’t perform that action at this time.
0 commit comments