I've been trying to alter that area of the navigation menu as well, but
have had little success. I too believe it can be done via navigation.xsl,
but don't know xsl/dri well enough to do it.
You could alternatively remove it with Javascript. That is that route I've
gone to make the modifications I needed to make.
Just add this right before your closing footer tag in page_structure.xsl:
<script>
> function myAccountMod()
> {
> var sidebar = document.getElementById('sidebar');
> var h2Array = sidebar.getElementsByClassName('ds-option-set-head');
> var myAccountList =
> document.getElementById('aspect_viewArtifacts_Navigation_list_account');
> var myAccountListArray =
> myAccountList.getElementsByClassName('list-group-item');
> var loggedIn = false;
> var myAccountH2 = '';
> for (var n=0; n!=h2Array.length; n++)
> {
> if (h2Array[n].textContent.match(/my account/i))
> {
> myAccountH2 = h2Array[n];
> }
> }
> for (var p=0; p!=myAccountListArray.length; p++)
> {
> if (myAccountListArray[p].href.match(/\/logout/i))
> {
> var loggedIn = true;
> }
> }
> if (loggedIn == false)
> {
> myAccountH2.parentNode.removeChild(myAccountH2);
> myAccountList.parentNode.removeChild(myAccountList);
> }
> }
> myAccountMod();
> </script>
Shannon
--
Mr. Shannon Meisenheimer
Office of Technology
Blackboard and Academic Application Management
University of Central Missouri
Dockery 207A
[email protected]
Work Phone: (660) 543-8483
On Thu, Oct 8, 2015 at 2:41 AM, Mariangels <[email protected]> wrote:
> Hello,
>
> I need to hide the box "My account" in DSpace 5.3 xmlui only when the user
> is logout. We have another link in our customized page-structure.xls to do
> this.
> Can anyone help me with this topic?
> Maybe it is possible editing the page navigation.xls, but I don't know how
> to do this...
>
> Thanks in advance.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.