Re: [Dspace-tech] Ordering community& collection listings to specific community or collection

2015-07-27 Thread euler
Hi Terry,

My initial solution is to override the xslt and applied xsl:sort by its url.

I assumed that the handle number with the highest value is the newest
collection, but then this is not also ideal because some (old) collections
are created after the most recent collection.

If there's a way to add the title to the xml being referenced for example:

I'm still looking into using javascript as a quick solution for this.

Thanks,
euler




--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Ordering-community-collection-listings-to-specific-community-or-collection-tp4678926p4678951.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] Ordering community& collection listings to specific community or collection

2015-07-27 Thread Terry Brady
In XMLUI, the metadata for each collection lives in a separate XML
document.  The XSLT needs to retrieve and output the title from each
collection.

In XSLT 1.0, I do not believe that you can retrieve the titles from
external documents and sort the titles in a single pass.




xmlui.ArtifactBrowser.CommunityViewer.head_sub_communities














Perhaps as a quick solution, you could add a JavaScript file to your
community theme and apply the sort in JavaScript.  This is not ideal, but
it would be localized to your community.

On Fri, Jul 24, 2015 at 7:17 PM, euler  wrote:

> Dear All,
>
> I know that this has been asked before ( Ordering community& collection
> listings
> <
> http://dspace.2283337.n4.nabble.com/Ordering-community-collection-listings-tp4662451.html
> >
> ). What I would like to know is if this is possible to apply to only
> specific communities and collections. Based on the answers given from that
> post, the suggestion is to modifiy the sql clause "ORDER BY" but this would
> be applied to all communities and collections. Can this be done using just
> xslt?
>
> Thanks in advance and best regards,
> euler
>
>
>
> --
> View this message in context:
> http://dspace.2283337.n4.nabble.com/Ordering-community-collection-listings-to-specific-community-or-collection-tp4678926.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
>
> --
> ___
> 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
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
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] Ordering community& collection listings to specific community or collection

2015-07-24 Thread euler
Dear All,

I know that this has been asked before ( Ordering community& collection
listings

 
). What I would like to know is if this is possible to apply to only
specific communities and collections. Based on the answers given from that
post, the suggestion is to modifiy the sql clause "ORDER BY" but this would
be applied to all communities and collections. Can this be done using just
xslt?

Thanks in advance and best regards,
euler



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Ordering-community-collection-listings-to-specific-community-or-collection-tp4678926.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] Ordering community& collection listings

2015-06-15 Thread Pablo Buenaposada
For collections I think the best way is to modify the sql query of the
function that returns all the collections.
This function is located here
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/Community.java#L661
so playing with the sql clause ORDER BY you can reorder the list anyway you
like.



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Ordering-community-collection-listings-tp4662451p4678362.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] Ordering community& collection listings

2013-03-06 Thread Lighton Phiri
Thank you for this helix84, I was hoping it wouldn't involve me making
changes to the source code... it's not a critical requirement and
would much rather wait for 4.0.

Lighton Phiri
http://lightonphiri.org


On 6 March 2013 14:57, helix84  wrote:
> Hi Lighton,
>
> the order is currently generated in the browse aspect, e.g. here for a
> community list:
>
> https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/CommunityBrowser.java#L217
>
> You could either change it there (probably easier), or later in the XSLT.
>
> Regarding the item counts, you can find them in
> thecommunity_item_count and collection_item_count tables.
>
>
> However, you may want to reconsider customizing it at this time
> because both of these things are quite likely to change in 4.0. What
> the browse aspect does should be taken care of by the Discovery aspect
> and item counts should be also based on data from Solr instead of data
> from DB, which is populated by itemcounter.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
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] Ordering community& collection listings

2013-03-06 Thread helix84
Hi Lighton,

the order is currently generated in the browse aspect, e.g. here for a
community list:

https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/CommunityBrowser.java#L217

You could either change it there (probably easier), or later in the XSLT.

Regarding the item counts, you can find them in
thecommunity_item_count and collection_item_count tables.


However, you may want to reconsider customizing it at this time
because both of these things are quite likely to change in 4.0. What
the browse aspect does should be taken care of by the Discovery aspect
and item counts should be also based on data from Solr instead of data
from DB, which is populated by itemcounter.


Regards,
~~helix84

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

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
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] Ordering community& collection listings

2013-03-05 Thread Lighton Phiri
It appears the default order of community& collection listings is done 
alphabetically. How would one go about altering the listing as follows:

1) Ordering listing alphabetically, but in descending order
2) Ordering by item count in community/collection

-- 
Lighton Phiri
http://lightonphiri.org


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
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