Skip to content
Ondrej Kosarko edited this page Oct 2, 2025 · 2 revisions

Discojuice

The basic idea of configuring it is the same as in v5 (aai.js, aai_config.js). There's one new variable:

  • namespace in the aai.js. If you have changed the UI namespace in the FE/BE you must update namespace in the discojuice.

Disabling discojuice

Option 1

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

Option 2

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

Making discojuice work correctly

cp src/aai/aai.js docker/aai.js

Clone this wiki locally