Hello,

please consider this tiny patch for inclusion.  It applies cleanly to
current git tree.

Thanks,

Ferran

PS Is it ok to send ot to Jerome CCing the list, or should I address it
   to Tibor instead?
BibHarvest: sort remote set names

* When remote OAI site has a large number of sets, showing them in random
  order makes very difficult to make a sensible selection.  Sort them.
---
 modules/bibharvest/lib/oai_harvest_admin.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/bibharvest/lib/oai_harvest_admin.py b/modules/bibharvest/lib/oai_harvest_admin.py
index 2684122..4a06472 100644
--- a/modules/bibharvest/lib/oai_harvest_admin.py
+++ b/modules/bibharvest/lib/oai_harvest_admin.py
@@ -208,6 +208,7 @@ def perform_request_editsource(oai_src_id=None, oai_src_name='',
 
     sets = findSets(oai_src_baseurl)
     if sets:
+        sets.sort()
         # Show available sets to users
         sets_specs = [set[0] for set in sets]
         sets_names = [set[1] for set in sets]

Reply via email to