Skip to content

Commit

Permalink
Remove old javascript code (replace with currentUser placeholder)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhofmann committed Mar 14, 2024
1 parent 528e232 commit a344420
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
<label xml:lang="de">Dokument einreichen (Admin)</label>
<label xml:lang="en">Submit new document (admin)</label>
</item>
<item href="/servlets/solr/select?q=state%3Asubmitted%20AND%20createdby:USERNAME" type="intern" replaceMenu="false" constrainPopUp="false">
<item href="/servlets/solr/select?q=state%3Asubmitted%20AND%20createdby:{CurrentUser}" type="intern" replaceMenu="false" constrainPopUp="false">
<label xml:lang="de">Meine Einreichungen</label>
<label xml:lang="en">My submitted documents</label>
</item>
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/META-INF/resources/js/digibib.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ $(document).ready(function() {
};
}

// replace placeholder USERNAME with username
var userID = $("#currentUser strong").html();
var newHref = 'https://leopard.tu-braunschweig.de/servlets/solr/select?q=state%3Asubmitted%20AND%20createdby:' + userID + '&fq=objectType:mods';
$("a[href='https://leopard.tu-braunschweig.de/servlets/solr/select?q=state%3Asubmitted%20AND%20createdby:USERNAME']").attr('href', newHref);
// spam protection for mails
$('span.madress').each(function(i) {
var text = $(this).text();
Expand Down

0 comments on commit a344420

Please sign in to comment.