Skip to content

Commit

Permalink
discojuice setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondra Kosarko authored and kosarko committed Nov 8, 2023
1 parent 6b74646 commit 6e7c959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
7 changes: 0 additions & 7 deletions src/aai/aai.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
djc.textHelpMore = opts.textHelpMore;

djc.inlinemetadata = typeof opts.inlinemetadata === 'object' ? opts.inlinemetadata : [];
djc.inlinemetadata.push({
'country': '_all_',
'entityID': 'https://idm.clarin.eu',
'geo': {'lat': 51.833298, 'lon': 5.866699},
'title': 'Clarin.eu website account',
'weight': 1000
});
djc.inlinemetadata.push({
'country': 'CZ',
'entityID': 'https://cas.cuni.cz/idp/shibboleth',
Expand Down
11 changes: 2 additions & 9 deletions src/aai/aai_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ jQuery(document).ready(
"themes/UFAL/lib/html/disco-juice.html?";
// e.g., instance.metadataFeed = "http://localhost:8080/server/api/discojuice/feeds?callback=dj_md_1";
instance.metadataFeed = instance.target + "discojuice/feeds";
instance.serviceName = "LINDAT/CLARIAH-CZ Repository";
instance.localauth =
'<form method="post" action="' + instance.target + 'password-login"> ' +
'<p>Sign in using your local account obtained from the LINDAT/CLARIAH-CZ administrator.</p>' +
'<p style="margin: 5px; color: #888" ><input type="text" name="login_email" style="font-size: 160%; width: 100%" id="login" /> <label for="login">E-Mail Address</label></p>' +
'<p style="margin: 5px; color: #888" ><input type="password" name="login_password" style="font-size: 160%; width: 100%" id="pass" /> <label for="pass">Password</label></p>' +
'<p style="margin: 5px; color: #607890; text-decoration: underline;"><a href="' + instance.target + 'forgot">Forgot your password?</a></p>' +
'<p style="" ><input type="submit" style="margin: 20px 2px" name="submit" value="Sign in" /></p>' +
'</form>';
instance.serviceName = "Data repository at CUNI";
instance.localauth = true; // used to be html snippet; that was not used anymore
instance.target = instance.target + "authn/shibboleth";
return instance;
})();
Expand Down

0 comments on commit 6e7c959

Please sign in to comment.