Skip to content
Permalink
Browse files

Working on shib

  • Loading branch information
amontenegro committed Feb 25, 2019
1 parent 2793c03 commit fe31fc1f4eddac767094e5e59c54765f81940b35

This file was deleted.

@@ -130,7 +130,7 @@
<div class="row wizards">
<div class="col-md-12 col-sm-12 col-xs-12">
<div *ngFor="let wtw of fundingImportWizardList">
<strong><a (click)="openImportWizardUrlFilter('{{getBaseUri()}}/oauth/authorize', wtw)">{{wtw.name}}</a></strong>
<strong><a (click)="openImportWizardUrlFilter(getBaseUri() + '/oauth/authorize', wtw)">{{wtw.name}}</a></strong>

<br />
<div class="justify">
@@ -113,7 +113,7 @@
<div class="row wizards">
<div class="col-md-12 col-sm-12 col-xs-12">
<div *ngFor="let wtw of peerReviewImportWizardList">
<strong><a (click)="openImportWizardUrlFilter('{{getBaseUri()}}/oauth/authorize', wtw)">{{wtw.name}}</a></strong>
<strong><a (click)="openImportWizardUrlFilter(getBaseUri() + '/oauth/authorize', wtw)">{{wtw.name}}</a></strong>

<br />
<div class="justify">
@@ -207,7 +207,7 @@
<div class="row wizards">
<div class="col-md-12 col-sm-12 col-xs-12">
<div *ngFor="let wtw of workImportWizardsOriginal | orderBy: 'name' | filterImportWizards : selectedWorkType : selectedGeoArea; let index = index; let first = first; let last = last;">
<strong><a (click)="openImportWizardUrlFilter('{{getBaseUri()}}/oauth/authorize', wtw)">{{wtw.name}}</a></strong>
<strong><a (click)="openImportWizardUrlFilter(getBaseUri() + '/oauth/authorize', wtw)">{{wtw.name}}</a></strong>

<br />
<div class="justify">
@@ -360,10 +360,10 @@ function logAjaxError(e){
console.log("responseText: " + e.responseText);*/
}

function getBaseUri() {
function getBaseUri() {
var uri = location.protocol + '//' + location.host
if(window.location.host.startsWith('localhost')) {
uri = uri + '/orcid-web'
if(window.location.host.startsWith('localhost:8443') | window.location.host.startsWith('localhost:8080')) {
uri = uri + '/orcid-web';
}
return uri;
}
@@ -460,7 +460,7 @@ function logOffReload(reload_param) {
$(function() {

// Common
window.baseUrl = $('body').data('baseurl');
window.baseUrl = getBaseUri() + '/';
window.basePath = window.location.pathname;

// fire off check, if this page wasn't loaded via iframe (or html5

0 comments on commit fe31fc1

Please sign in to comment.