Skip to content

Commit

Permalink
Change Metadig Url to /quality
Browse files Browse the repository at this point in the history
Fix bug where Not Found message was being displayed sometimes at the top
of the MetadataView
  • Loading branch information
laurenwalker committed Nov 18, 2016
1 parent eed10d7 commit 4092cc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metacatui/src/main/webapp/js/models/SolrResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ define(['jquery', 'underscore', 'backbone'],
model.trigger("sync");
},
error: function(){
model.trigger("404")
model.notFound();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ define(['jquery', 'underscore', 'backbone'],
checkTokenUrl: null,
prov: true,
useSeriesId: true,
mdqUrl: (window.location.origin || (window.location.protocol + "//" + window.location.host)) + "/mdq-webapp/webapi/"
mdqUrl: (window.location.origin || (window.location.protocol + "//" + window.location.host)) + "/quality/"

},

Expand Down
2 changes: 2 additions & 0 deletions metacatui/src/main/webapp/js/views/MetadataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ define(['jquery',
this.listenToOnce(appUserModel, "change:checked", this.showNotFound);
return;
}

if(!this.model.get("notFound")) return;

var msg = "<h4>Nothing was found for one of the following reasons:</h4>" +
"<ul class='indent'>" +
Expand Down

0 comments on commit 4092cc3

Please sign in to comment.