<div dir="ltr"><div><div>Hi Adam<br><br></div>The grouping_function => "EPrints::Update::Views::<div id=":1u7" class="">group_by_first_character", did the job just fine!</div></div><br>Thank you again for your support. <br><div><br>Kostas <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-03 16:07 GMT+02:00 Field A.N. <span dir="ltr"><<a href="mailto:af05v@ecs.soton.ac.uk" target="_blank">af05v@ecs.soton.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kostas<br>
<br>
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:<br>
<span class=""><br>
grouping_function => "EPrints::Update::Views::group_by_a_to_z",<br>
<br>
</span> ...to...<br>
<br>
grouping_function => "EPrints::Update::Views::group_by_first_character",<br>
<br>
However, you may find that your range navigation looks a bit funny with letters missing from the alphabet.<br>
<br>
--<br>
Adam<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 3 Dec 2014, at 12:48, pgasinos pgs wrote:<br>
<br>
> Hi Adam<br>
><br>
> Thank you for your response.<br>
><br>
> 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).<br>
><br>
> Kostas<br>
><br>
> 2014-12-03 11:46 GMT+02:00 Field A.N. <<a href="mailto:af05v@ecs.soton.ac.uk">af05v@ecs.soton.ac.uk</a>>:<br>
> Hi Kostas<br>
><br>
> Try this:<br>
><br>
><br>
> menus => [<br>
> {<br>
> fields => [ "creators_name" ],<br>
> new_column_at => [1, 1],<br>
> mode => "sections",<br>
> open_first_section => 1,<br>
> group_range_function => "EPrints::Update::Views::cluster_ranges_30",<br>
> grouping_function => "EPrints::Update::Views::group_by_a_to_z",<br>
> hideempty => 1,<br>
> },<br>
> ],<br>
><br>
> ...and let me know whether that fixed it.<br>
><br>
> --<br>
> Adam<br>
><br>
> On 3 Dec 2014, at 08:51, pgasinos pgs wrote:<br>
><br>
> > 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.<br>
> ><br>
> > Browse by Author shows:<br>
> > A...<br>
> ><br>
> > No items in this section.<br>
> ><br>
> > B...<br>
> ><br>
> > No items in this section. etc<br>
> ><br>
> > My "<a href="http://views.pl" target="_blank">views.pl</a>" file has:<br>
> ><br>
> > {<br>
> > id => "creators",<br>
> > allow_null => 0,<br>
> > hideempty => 1,<br>
> > menus => [<br>
> > {<br>
> > fields => [ "creators_name" ],<br>
> > new_column_at => [1, 1],<br>
> > mode => "sections",<br>
> > open_first_section => 1,<br>
> > group_range_function => "EPrints::Update::Views::cluster_ranges_30",<br>
> > grouping_function => "EPrints::Update::Views::group_by_a_to_z",<br>
> > },<br>
> > ],<br>
> > order => "-date/title",<br>
> > variations => [<br>
> > "type",<br>
> > "DEFAULT",<br>
> > ],<br>
> > },<br>
> ><br>
> > Am I missing something?<br>
> ><br>
> > Kostas Pgasinos<br>
> ><br>
> ><br>
> ><br>
> > *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
> > *** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>
> > *** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
> > *** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">http://forum.eprints.org/</a><br>
><br>
> --<br>
> Adam Field<br>
> Business Relationship and Community Manager<br>
> EPrints Services<br>
><br>
><br>
><br>
><br>
> *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
> *** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>
> *** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
> *** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">http://forum.eprints.org/</a><br>
><br>
> *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
> *** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>
> *** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
> *** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">http://forum.eprints.org/</a><br>
<br>
--<br>
Adam Field<br>
Business Relationship and Community Manager<br>
EPrints Services<br>
<br>
<br>
<br>
<br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" target="_blank">http://forum.eprints.org/</a><br>
</div></div></blockquote></div><br></div>