EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03635
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Browse by Author shows empty
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Browse by Author shows empty
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- Date: Wed, 3 Dec 2014 14:07:22 +0000
Hi Kostas I've had a dig through the code, and it looks like the point of group_by_a_to_z (the grouping function you're using) is to explicitly include all characters A-Z if they don't exist in the data. I would suggest you try using the group_by_first_character function instead, which doesn't have this behaviour. The line to change is: grouping_function => "EPrints::Update::Views::group_by_a_to_z", ...to... grouping_function => "EPrints::Update::Views::group_by_first_character", However, you may find that your range navigation looks a bit funny with letters missing from the alphabet. -- Adam On 3 Dec 2014, at 12:48, pgasinos pgs wrote: > Hi Adam > > Thank you for your response. > > Unfortunately hideempty => 1, didn't change a thing (I also have re-generated views and reloaded apache). It is very strange that hideempty works only in Greek Authors!!! I have no issue with Subject, Year, Division or Professor (I use corp_creators for Professors). > > Kostas > > 2014-12-03 11:46 GMT+02:00 Field A.N. <af05v@ecs.soton.ac.uk>: > Hi Kostas > > Try this: > > > menus => [ > { > fields => [ "creators_name" ], > new_column_at => [1, 1], > mode => "sections", > open_first_section => 1, > group_range_function => "EPrints::Update::Views::cluster_ranges_30", > grouping_function => "EPrints::Update::Views::group_by_a_to_z", > hideempty => 1, > }, > ], > > ...and let me know whether that fixed it. > > -- > Adam > > On 3 Dec 2014, at 08:51, pgasinos pgs wrote: > > > I have a multilingual repository (el, en). The strange thing is, that only in English I can't hide empty author records (it only hides the empty author records from the greek letters). All the other views work just fine. > > > > Browse by Author shows: > > A... > > > > No items in this section. > > > > B... > > > > No items in this section. etc > > > > My "views.pl" file has: > > > > { > > id => "creators", > > allow_null => 0, > > hideempty => 1, > > menus => [ > > { > > fields => [ "creators_name" ], > > new_column_at => [1, 1], > > mode => "sections", > > open_first_section => 1, > > group_range_function => "EPrints::Update::Views::cluster_ranges_30", > > grouping_function => "EPrints::Update::Views::group_by_a_to_z", > > }, > > ], > > order => "-date/title", > > variations => [ > > "type", > > "DEFAULT", > > ], > > }, > > > > Am I missing something? > > > > Kostas Pgasinos > > > > > > > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > > *** Archive: http://www.eprints.org/tech.php/ > > *** EPrints community wiki: http://wiki.eprints.org/ > > *** EPrints developers Forum: http://forum.eprints.org/ > > -- > Adam Field > Business Relationship and Community Manager > EPrints Services > > > > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ > *** EPrints developers Forum: http://forum.eprints.org/ > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ > *** EPrints developers Forum: http://forum.eprints.org/ -- Adam Field Business Relationship and Community Manager EPrints Services
- References:
- [EP-tech] Re: Browse by Author shows empty
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- [EP-tech] Browse by Author shows empty
- From: pgasinos pgs <pgasinos@gmail.com>
- [EP-tech] Re: Browse by Author shows empty
- From: pgasinos pgs <pgasinos@gmail.com>
- [EP-tech] Re: Browse by Author shows empty
- Prev by Date: [EP-tech] Re: Browse by Author shows empty
- Next by Date: [EP-tech] Bazzar Plugin: Shelves
- Previous by thread: [EP-tech] Re: Browse by Author shows empty
- Next by thread: [EP-tech] Re: Browse by Author shows empty
- Index(es):