forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 21
Discojuice set up
Ondrej Kosarko edited this page Oct 2, 2025
·
2 revisions
The basic idea of configuring it is the same as in v5 (aai.js, aai_config.js). There's one new variable:
-
namespacein theaai.js. If you have changed the UI namespace in the FE/BE you must update namespace in the discojuice.
diff --git a/src/aai/aai_config.js b/src/aai/aai_config.js
index ce5480f93..aa1944d3b 100644
--- a/src/aai/aai_config.js
+++ b/src/aai/aai_config.js
@@ -26,6 +26,7 @@ jQuery(document).ready(
// 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.autoInitialize = false;
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>' +
diff --git a/src/app/clarin-navbar-top/clarin-navbar-top.component.html b/src/app/clarin-navbar-top/clarin-navbar-top.component.html
index 5b7de1222..e3e7e7469 100644
--- a/src/app/clarin-navbar-top/clarin-navbar-top.component.html
+++ b/src/app/clarin-navbar-top/clarin-navbar-top.component.html
@@ -11,7 +11,7 @@
<div class="ml-auto pr-3">
<div *ngIf="authenticatedUser == null" class="badge clarin-login-badge px-2 py-1">
<span>
- <a style="color: #FFF;" id="clarin-signon-discojuice" class="signon" >
+ <a routerLink="/login" style="color: #FFF;" id="clarin-signon-discojuice" class="signon" >
<i class="fas fa-sign-in-alt pr-1 fa-lg"></i>{{'login.title' | translate}}
</a>
</span>
originally in https://github.com/ufal/clarin-dspace/issues/1236 it:
- disables the popup
- directs you to login page where you have your standard login choices pass / shibboleth
Get the default (atm 7.6.1 but soon 7.6.5) header and login component
git checkout dspace-7.6.1 -- src/themes/dspace/app/header
git checkout dspace-7.6.1 -- src/app/shared/log-in/methods/password
modified: src/app/shared/log-in/methods/password/log-in-password.component.spec.ts
modified: src/app/shared/log-in/methods/password/log-in-password.component.ts
modified: src/themes/dspace/app/header/header.component.html
modified: src/themes/dspace/app/header/header.component.scss
cp src/aai/aai.js docker/aai.js
- overrides.yml (or edit docker/docker-compose.yml) to mount this file
- fix namespace if necessary
-
diff src/aai/aai.js docker/aai.js 60c60 < opts.responseUrl, --- > '', 67a68 > djc.countryAPI = "https://lindat.mff.cuni.cz/php/discojuice/country.php";- https://github.com/ufal/lindat-aai-discovery/wiki/Problems (partially)
- https://github.com/andreassolberg/DiscoJuice/blob/master/www/country.php (with a caveat - need a different provider, or use your own mmdb file)