Hi to all,

I have an issue where for all records with several fulltexts, in detailed view, the links are displayed in non-alphabetic order.

For example, a record with the following MARC fields:
8564_ $$uhttp://invenio.lib.auth.gr/record/103094/files/arc-2008-40800.pdf
8564_ $$uhttp://invenio.lib.auth.gr/record/103094/files/arc-2008-40800_001.pdf$$yarc-2008-40800_001.pdf 8564_ $$uhttp://invenio.lib.auth.gr/record/103094/files/arc-2008-40800_002.pdf$$yarc-2008-40800_002.pdf 8564_ $$uhttp://invenio.lib.auth.gr/record/103094/files/arc-2008-40800_003.pdf$$yarc-2008-40800_003.pdf 8564_ $$uhttp://invenio.lib.auth.gr/record/103094/files/arc-2008-40800_004.pdf$$yarc-2008-40800_004.pdf

Is displayed (both in detailed HTML and brief HTML) in this order:

arc-2008-40800_002.pdf: arc-2008-40800_002 - PDF
Fulltext: arc-2008-40800 - PDF
arc-2008-40800_003.pdf: arc-2008-40800_003 - PDF
arc-2008-40800_001.pdf: arc-2008-40800_001 - PDF
arc-2008-40800_004.pdf: arc-2008-40800_004 - PDF

I've checked bfe_fulltext.py and it seems that the only sorting function is the following: urls.sort(lambda (url1, name1, format1), (url2, name2, format2): url1 < url2 and -1 or url1 > url2 and 1 or 0) The above algorithm seems to work for dummy strings, but for some reason, it doesn't work for my records...

Any ideas?

Best regards,
Theodoropoulos Theodoros

Reply via email to