Skip to content

Commit 2054681

Browse files
committed
Summary: Hotfix: The Journal Citation page does not correctly show the signed-in user #182.
1 parent f2c681e commit 2054681

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

WebRoot/journalCitations.jsp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
String path = request.getContextPath();
1313
HttpSession httpSession = request.getSession();
1414
String journalCitationsHTML = "";
15-
String uname = "";
1615
String uid = (String) httpSession.getAttribute("uid");
16+
String cname = (String) httpSession.getAttribute("cname");
1717
Boolean vetted = (Boolean) httpSession.getAttribute("vetted");
1818
if (vetted == null || !vetted) {
1919
String packageId = request.getParameter("packageid");
@@ -28,7 +28,6 @@
2828
requestDispatcher.forward(request, response);
2929
}
3030
else {
31-
uname = LoginServlet.uidFromDistinguishedName(uid);
3231
JournalCitationsClient jcc = null;
3332
try {
3433
jcc = new JournalCitationsClient(uid);
@@ -117,8 +116,7 @@
117116

118117
<div class="row distance_2">
119118
<div class="col">
120-
<h2>View and edit journal article citations recorded by <%= uname %>
121-
</h2>
119+
<h2>View and edit journal article citations recorded by <em><%= cname %></em></h2>
122120
</div>
123121
</div>
124122

0 commit comments

Comments
 (0)