File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
oscar/src/main/javascript/oscar/lib/oscar/Util/Plugin/Download Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,19 @@ oscar.Util.Plugin.Download.WCSService = new oscar.BaseClass(oscar.Util.Plugin.Do
114
114
} ,
115
115
buildInformationPanel : function ( ) {
116
116
var $panel = $$ ( "<div></div>" ) ;
117
- var title = this . record . title [ 0 ] . value || this . record . identifier [ 0 ] . value ;
117
+ var title = "" ;
118
+ try {
119
+ title = this . record . title [ 0 ] . value || this . record . identifier [ 0 ] . value ;
120
+ } catch ( err ) {
121
+ title = "" ;
122
+ }
118
123
this . setTitle ( title ) ;
119
- var abs = this . record [ "abstract" ] [ 0 ] ;
124
+ var abs = "" ;
125
+ try {
126
+ abs = this . record [ "abstract" ] [ 0 ] ;
127
+ } catch ( err ) {
128
+ abs = "" ;
129
+ }
120
130
$panel = $$ ( "<div></div>" ) ;
121
131
var $abstract = $$ ( "<p></p>" ) . html ( abs ) ;
122
132
$panel . append ( $abstract ) ;
You can’t perform that action at this time.
0 commit comments