Re: [Dspace-tech] Front Page Build

2015-08-14 Thread Keith Jones
Thanks Helix84,

Thank did the trick. This exchange definitely helped me get a better
understanding. I really appreciate the help you've given me.

Thanks
Keith

On Thu, Aug 13, 2015 at 4:35 PM, helix84 heli...@centrum.sk wrote:

 On Thu, Aug 13, 2015 at 7:21 PM, Keith Jones mad...@udel.edu wrote:

 Do you think it is causing your code some problems. When I leave you code
 out this works, but when I have your code in it doesn't.


 Most certainly. This is what builds your collection/community structure to
 be styled as collapsible. Replace
 xsl:apply-templates /
 with your
 ul ...
 ...
 /ul
 and it should work.


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Front Page Build

2015-08-13 Thread Keith Jones
Hi,

I'm working on Dspace version 5.3 XMLUI and I want to make some changes to
the front page. Which XSLT file should I edit. I'm looking to remove the
community list from the front page. I've tried over-riding it with a custom
process but doing so changes the custom function of expanding list on the
community page.

Thanks
Keith
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread helix84
Hi Keith,

XMLUI isn't organized around files but rather around templates, some of
which are shared among different pages.

You probably already figured out [1]. Now you just need [2] to distinguish
between the homepage and /community-list (@target).

[1]
https://wiki.duraspace.org/display/DSPACE/TechnicalFAQ#TechnicalFAQ-HowdoIremovethesearchboxfromthefrontpageinXMLUI
?
[2]
https://wiki.duraspace.org/display/DSPACE/TechnicalFAQ#TechnicalFAQ-HowcanIchangewhatisdisplayedinXMLUIforaparticularcollection
?



Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread Keith Jones
Hi Helix84,

I've actually implemented the over-ride suggestion you gave a few years
ago. It works in removing the community list from the front page, but in
doing so, it breaks my changes to the community list page. On the community
list page I'm using CollapsibleList.js to manage the community list. When I
put in the following:

xsl:template name=add_frontpage_advancedsearch
match=dri:div[@id='aspect.discovery.SiteViewer.div.front-page-search']/dri:p[2]
xsl:apply-templates /
a
href=/advanced-searchi18n:textxmlui.dri2xhtml.structural.search-advanced/i18n:text/a
/xsl:template

It works, but now my ColapsibleList no longer works.



On Thu, Aug 13, 2015 at 8:25 AM, helix84 heli...@centrum.sk wrote:

 Hi Keith,

 XMLUI isn't organized around files but rather around templates, some of
 which are shared among different pages.

 You probably already figured out [1]. Now you just need [2] to distinguish
 between the homepage and /community-list (@target).

 [1]
 https://wiki.duraspace.org/display/DSPACE/TechnicalFAQ#TechnicalFAQ-HowdoIremovethesearchboxfromthefrontpageinXMLUI
 ?
 [2]
 https://wiki.duraspace.org/display/DSPACE/TechnicalFAQ#TechnicalFAQ-HowcanIchangewhatisdisplayedinXMLUIforaparticularcollection
 ?



 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread Keith Jones
Helix,

Thanks for the help, the code is working and will remove the list from the
home page.

Here is my problem.
Currently in production we are using collapsible list for the community
browse page, which you can see here:
http://udspace.udel.edu/community-list. This is in version 3.1 using the
XMLUI. I was able to remove the community list from the main page but
commenting out the template call in the xslt, I did not use the overriding
template method.

When I use the code provided, the collapsible list will partly work, but
the arrow icons do not appear, when viewing the community list.

Thanks
Keith

On Thu, Aug 13, 2015 at 9:07 AM, helix84 heli...@centrum.sk wrote:

 Try this:

 xsl:template name=hide_homepage_community-list
 match=dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']
 xsl:if
 test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']/text()
 xsl:apply-templates /
 /xsl:if
 /xsl:template

 It hides the community browser unless the request URI is non-empty (like
 /community-list).


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread helix84
The code I sent you tries to be as non-invasive as possible. When you add
the template, the only the DRI output of the homepage should change but not
the DRI output of the community-list. Therefore, if your collapse/expand
widgets are just css/js, they should continue to work. If, however, they do
any modifications to XSLT, that may change how the community-list DRI is
rendered and it's possible my snippet interferes with it somehow. Check
whether there are any differences in community-list DRI between how Mirage
renders it and your theme renders it.

On Thu, Aug 13, 2015 at 4:25 PM, Keith Jones mad...@udel.edu wrote:

 Helix,

 Thanks for the help, the code is working and will remove the list from the
 home page.

 Here is my problem.
 Currently in production we are using collapsible list for the community
 browse page, which you can see here:
 http://udspace.udel.edu/community-list. This is in version 3.1 using the
 XMLUI. I was able to remove the community list from the main page but
 commenting out the template call in the xslt, I did not use the overriding
 template method.

 When I use the code provided, the collapsible list will partly work, but
 the arrow icons do not appear, when viewing the community list.

 Thanks
 Keith

 On Thu, Aug 13, 2015 at 9:07 AM, helix84 heli...@centrum.sk wrote:

 Try this:

 xsl:template name=hide_homepage_community-list
 match=dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']
 xsl:if
 test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']/text()
 xsl:apply-templates /
 /xsl:if
 /xsl:template

 It hides the community browser unless the request URI is non-empty (like
 /community-list).


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread Keith Jones
Helix,

After looking over my changes, I did have to add this to the utils.xsl file:

xsl:choose
  xsl:when
test=/dri:document/dri:body/dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']
ul class=collapsibleList
li
xsl:attribute name=class
xsl:textds-artifact-item /xsl:text
xsl:choose
xsl:when test=@type='DSpace Community'
xsl:textcommunity /xsl:text
/xsl:when
xsl:otherwise
xsl:textcollection /xsl:text
/xsl:otherwise
/xsl:choose
xsl:choose
xsl:when test=position() mod 2 = 0even/xsl:when
xsl:otherwiseodd/xsl:otherwise
/xsl:choose
/xsl:attribute
xsl:apply-templates select=document($externalMetadataURL)
mode=summaryList/
xsl:apply-templates /
/li
/ul
  /xsl:when
  xsl:otherwise

Do you think it is causing your code some problems. When I leave you code
out this works, but when I have your code in it doesn't.

Thanks
Keith


On Thu, Aug 13, 2015 at 11:01 AM, helix84 heli...@centrum.sk wrote:

 The code I sent you tries to be as non-invasive as possible. When you add
 the template, the only the DRI output of the homepage should change but not
 the DRI output of the community-list. Therefore, if your collapse/expand
 widgets are just css/js, they should continue to work. If, however, they do
 any modifications to XSLT, that may change how the community-list DRI is
 rendered and it's possible my snippet interferes with it somehow. Check
 whether there are any differences in community-list DRI between how Mirage
 renders it and your theme renders it.

 On Thu, Aug 13, 2015 at 4:25 PM, Keith Jones mad...@udel.edu wrote:

 Helix,

 Thanks for the help, the code is working and will remove the list from
 the home page.

 Here is my problem.
 Currently in production we are using collapsible list for the community
 browse page, which you can see here:
 http://udspace.udel.edu/community-list. This is in version 3.1 using the
 XMLUI. I was able to remove the community list from the main page but
 commenting out the template call in the xslt, I did not use the overriding
 template method.

 When I use the code provided, the collapsible list will partly work, but
 the arrow icons do not appear, when viewing the community list.

 Thanks
 Keith

 On Thu, Aug 13, 2015 at 9:07 AM, helix84 heli...@centrum.sk wrote:

 Try this:

 xsl:template name=hide_homepage_community-list
 match=dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']
 xsl:if
 test=/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']/text()
 xsl:apply-templates /
 /xsl:if
 /xsl:template

 It hides the community browser unless the request URI is non-empty (like
 /community-list).


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Front Page Build

2015-08-13 Thread helix84
On Thu, Aug 13, 2015 at 7:21 PM, Keith Jones mad...@udel.edu wrote:

 Do you think it is causing your code some problems. When I leave you code
 out this works, but when I have your code in it doesn't.


Most certainly. This is what builds your collection/community structure to
be styled as collapsible. Replace
xsl:apply-templates /
with your
ul ...
...
/ul
and it should work.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette