Hi Mark,

I don't know XMLUI at all, but I've been mucking around with the REST API and 
you might be able to apply this basic (I don't have the most efficient jQuery 
coding skills) jQuery script. I've attached *part* of our <ul> tree (the whole 
thing goes on for miles...) so you get the idea of how the classes are applied 
to collections, communities and sub-communities. I've also attached the jQuery 
script - you'll need to modify it as it's using "noconflict" mode (I'm applying 
this in Wordpress, mind you, I don't bother with noconflict any more, but 
that's another story). It would probably be much neater to use the toggle() 
function, but as it does what I need it to for my purposes now, I'll leave that 
up to you.
I've used the community/collection title as the anchor for 
expanding/collapsing, and a ">" to the right of each as a link to the 
community/collection home page, but you could quite easily use a +/- for 
expanding/collapsing and the title as the link to the home pages.

Hope this helps,
Gary

From: Kariuki, Mark (FAOSO) [mailto:[email protected]]
Sent: Friday, 17 August 2012 12:27 AM
To: Nemiz, Elvi S.
Cc: [email protected]
Subject: Re: [Dspace-tech] Collection Browse tree

Thank you for your swift response, I have just started to work on this feature, 
though I am using the Mirage theme, I will try to find my way around it.

Mark

From: Nemiz, Elvi S. [mailto:[email protected]]
Sent: Wednesday, August 15, 2012 5:01 PM
To: Kariuki, Mark (FAOSO)
Cc: [email protected]
Subject: Collection Browse tree

Hello Mark,

Please see this link 
http://developer.edina.ac.uk/projects/jorumdspace/wiki/Collection_Browse_tree 
from http://www.developer.edina.ac.uk<http://developer.edina.ac.uk> website 
where I based our collapsible communities & collection structure. Please note 
that the patch is for XMLUI. Hope this helps.

Regards,
Elvi
On Wed, Aug 15, 2012 at 7:32 PM, 
<[email protected]<mailto:[email protected]>> wrote:
Hi, how were you able to achieve the collapsible community-collection structure 
of the front page of your repository at http://repository.seafdec.org.ph/ ? 
Please assist



--
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines

Access and download SEAFDEC/AQD publications for FREE

http://repository.seafdec.org.ph<http://repository.seafdec.org.ph/>

[SEAFDEC/AQD Institutional Repository (SAIR)]

- the official digital repository of scholarly and research information of the 
department



Search our library collection

http://opac.seafdec.org.ph<http://opac.seafdec.org.ph/common/welcome.jsp?site=100>

[SEAFDEC/AQD Library Online Public Access Catalog]



Questions? Ask a Librarian!

Email:               [email protected]<mailto:[email protected]> | 
[email protected]<mailto:[email protected]> | 
[email protected]<mailto:[email protected]>

Chat:                [Google Talk]                 seafdecaqdlibrary | 
[email protected]<mailto:[email protected]>

[Yahoo Messenger]        seafdecaqdlibrary

Call:                  63 33 5119170, 63 33 5119171 local 409 and 413

Visit:                 Library, SEAFDEC Aquaculture Department, Tigbauan, 
Iloilo, Philippines



Like us on Facebook      
facebook.com/seafdecaqdlib<http://www.facebook.com/seafdecaqdlib>
Follow us on Twitter:      
twitter.com/seafdecaqdlib<http://ww.twitter.com/seafdecaqdlib>
Follow us on Google +:   
gplus.to/seafdecaqdlibrary<http://gplus.to/seafdecaqdlib>

<ul id='communities'>
<li class="community" handle="2123/164" id="10">
<p>Agriculture, Food and Natural Resources</p><a href="community" 
class="click"> ></a><ul>
<li class="collection" id="2123/165">
<a href="2123/165">Honours Theses</a>
</li>
<li class="collection" id="2123/6337">
<a href="2123/6337">Research Papers and Publications. Agriculture, Food and 
Natural Resources</a>
</li>
</ul>
</li>
<li class="community" handle="2123/3630" id="79">
<p>Architecture, Design and Planning</p><a href="community" class="click"> 
></a><ul>
<li class="community" id="91" handle="2123/5394">
<p>Architectural & Design Science</p><ul>
<li class="community" id="92" handle="2123/5395">
<p>DECO1013: Sound Design and Sonification</p><ul>
<li class="collection" id="2123/5422">
<a href="2123/5422">2009. Assign 2: Data Sonification</a>
</li>
<li class="collection" id="2123/5396">
<a href="2123/5396">2010. Assign 1: Synthesis of Auditory Alerts</a>
</li>
<li class="collection" id="2123/6268">
<a href="2123/6268">2010. Assign 2: Data Sonification</a>
</li>
</ul>
</ul>
<ul>
<li class="community" id="130" handle="2123/7526">
<p>DESC9115: Digital Audio Systems</p><ul>
<li class="community" id="139" handle="2123/8174">
<p>DESC9115: Digital Audio Systems - 2012</p><ul>
<li class="collection" id="2123/8176">
<a href="2123/8176">Digital Audio Systems: Final Review</a>
</li>
<li class="collection" id="2123/8175">
<a href="2123/8175">Digital Audio Systems: Initial Review</a>
</li>
<li class="collection" id="2123/8177">
<a href="2123/8177">Digital Audio Systems: Lab Report 1</a>
</li>
<li class="collection" id="2123/8178">
<a href="2123/8178">Digital Audio Systems: Lab Report 2</a>
</li>
</ul>
</ul>
<ul>
<li class="collection" id="2123/7527">
<a href="2123/7527">DESC9115: Digital Audio Systems - 2011</a>
</li>
</ul>
</ul>
<ul>
</ul>
</ul>
<ul>
<li class="community" id="80" handle="2123/3631">
<p>Architecture and Allied Arts</p><ul>
<li class="community" id="127" handle="2123/7512">
<p>BDES1010 (Architecture Studio 101)</p><ul>
<li class="collection" id="2123/7515">
<a href="2123/7515">BDES1010 (Architecture Studio 101) - 2011</a>
</li>
</ul>
</ul>
<ul>
<li class="community" id="81" handle="2123/3632">
<p>BDES1020 (Architecture Studio 102).</p><ul>
<li class="collection" id="2123/6650">
<a href="2123/6650">BDES1020 (Architecture Studio 102) - 2010</a>
</li>
<li class="collection" id="2123/3633">
<a href="2123/3633">DESA1002 – 2008</a>
</li>
<li class="collection" id="2123/5465">
<a href="2123/5465">DESA1002 – 2009</a>
</li>
</ul>
</ul>
<ul>
<li class="community" id="128" handle="2123/7513">
<p>BDES2010 (Architecture Studio 201</p><ul>
<li class="collection" id="2123/7519">
<a href="2123/7519">BDES2010 (Architecture Studio 201) - 2011</a>
</li>
</ul>
</ul>
<ul>
<li class="community" id="119" handle="2123/6662">
<p>BDES2020 (Architecture Studio 202)</p><ul>
<li class="collection" id="2123/6726">
<a href="2123/6726">BDES2020 (Architecture Studio 202) - 2010</a>
</li>
</ul>
</ul>
$j = jQuery.noConflict();

$j(document).ready(function($) {
        /* First, hide all children of top level items */
        var allKids = $('#communities li ul');
        allKids.hide();
        
        /*
           When clicking top level item, hide any 
           open top level items, and add the 'open'
           class to this item
        */
        $('#communities > li > p').click(function() {
                $('#communities li.open ul').slideUp('600').removeClass('open');
                $(this).parent().addClass('open');
        });    

        /* reveal clicked community's next child */
        $('#communities p').click(function() {
            $(this).nextAll().slideDown('600');
            return false;
        });

});
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to