define shib path at top of file

This commit is contained in:
Terry W Brady
2018-03-19 14:39:41 -07:00
parent 79d94d92f9
commit df16cde989

View File

@@ -21,6 +21,7 @@ var Report = function() {
//Indicate if Shibboleth Authentication is supported //Indicate if Shibboleth Authentication is supported
this.makeShibLink = function(){return false;}; this.makeShibLink = function(){return false;};
this.shibPath = "/Shibboleth.sso/Login";
//Override this to return obj.id for DSpace 5 versions //Override this to return obj.id for DSpace 5 versions
this.getId = function(obj) { this.getId = function(obj) {
@@ -269,7 +270,7 @@ var Auth = function(report) {
} }
var anchor = $("<a/>").text(user); var anchor = $("<a/>").text(user);
if (self.report.makeShibLink()) { if (self.report.makeShibLink()) {
anchor.attr("href","/Shibboleth.sso/Login?target="+document.location); anchor.attr("href", self.report.shibPath + "?target="+document.location);
} }
if (self.report.makeAuthLink()) { if (self.report.makeAuthLink()) {
anchor.attr("href","javascript:window.open('authenticate.html','Authenticate (Password Auth Only)','height=200,width=500')"); anchor.attr("href","javascript:window.open('authenticate.html','Authenticate (Password Auth Only)','height=200,width=500')");