How to move community or collection logo in DSpace xmlui? -


i move community or collection logo current position under search within community/collection: form. put logo above <div id="aspect_artifactbrowser_collectionviewer_div_collection-home" class="ds-static-div primary repository collection"> below community/collection name or right of <div id="aspect_artifactbrowser_collectionviewer_div_collection-search-browse" class="ds-static-div secondary search-browse">. don't know template use or how override it.

i tried template:

<xsl:template match="dri:div[@id='aspect.artifactbrowser.collectionviewer.div.collection-search-browse']">     <xsl:apply-templates select="./mets:filesec/mets:filegrp[@use='logo']"/> </xsl:template> 

the template match above removed browse by buttons , search form.

your template removes behaviour happen dri:div[@id='aspect.artifactbrowser.collectionviewer.div.collection-search-browse'] rather adding additional bits it.

to add logo, need

  • find template called dri:div (which depends on theme - using mirage 2?),
  • copy contents of template template
  • add additional stuff template pulls in logo.

there issue approach: you're mixing mets , dri in template, same issue in your other question (see response tim donohue). access mets content within dri context, need load collection's/community's mets file via document() call, see eg here in mirage 2.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -