You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Gianmarco De Francisci Morales (Created) (JIRA)" <ji...@apache.org> on 2012/01/02 15:56:30 UTC

[jira] [Created] (INFRA-4270) Sorting on committers page is wrong

Sorting on committers page is wrong
-----------------------------------

                 Key: INFRA-4270
                 URL: https://issues.apache.org/jira/browse/INFRA-4270
             Project: Infrastructure
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Website
            Reporter: Gianmarco De Francisci Morales
            Priority: Trivial


The xsl transformation that sorts the names from the .rdf files does something wrong.
My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178787#comment-13178787 ] 

Sebb commented on INFRA-4270:
-----------------------------

Good catch - I've updated nav.xsl to remove the additional call to "substring-after-last".

Let's see if this fixes the issue.
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179110#comment-13179110 ] 

Sebb commented on INFRA-4270:
-----------------------------

Forgot to return the selected data, which is why the output was empty ... hopefully now fixed.
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (INFRA-4270) Sorting on committers page is wrong

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot closed INFRA-4270.
------------------------------------

    
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178717#comment-13178717 ] 

Sebb commented on INFRA-4270:
-----------------------------

I assume that you are referring to the following pages?

http://people.apache.org/committers.html
and
http://people.apache.org/list_M.html

If so, I'm not sure why the sorting fails; as far as I can tell, the sort only uses tha last name if both the foaf:surname and foaf:family_name entries are missing.

However, the generation process is rather complicated, so I could be missing something.
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (INFRA-4270) Sorting on committers page is wrong

Posted by "Gianmarco De Francisci Morales (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianmarco De Francisci Morales resolved INFRA-4270.
---------------------------------------------------

    Resolution: Fixed

Thanks, looks like everything is working now!
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Gianmarco De Francisci Morales (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178733#comment-13178733 ] 

Gianmarco De Francisci Morales commented on INFRA-4270:
-------------------------------------------------------

Hi,
yes I am referring to those pages.

The logic you describe is the one I would expect.
However, I think there is an undue call to "substring-after-last" in the xsl.

{code}
  <xsl:template match="foaf:Person" mode="sortWord">
    <xsl:variable name="word">
      <xsl:apply-templates select="." mode="lastName"/>
    </xsl:variable>
    <xsl:call-template name="substring-after-last">
      <xsl:with-param name="marker" select="' '"/>
      <xsl:with-param name="input" select="translate($word, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
    </xsl:call-template>
  </xsl:template>
{code}

I will try modifying the script and submitting a patch.
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Gianmarco De Francisci Morales (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178972#comment-13178972 ] 

Gianmarco De Francisci Morales commented on INFRA-4270:
-------------------------------------------------------

It looks like the list is gone now.
Probably not the right fix.

By the way, the snippet I pasted is from privateDetails.xsl and I don't know about nav.xls
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4270) Sorting on committers page is wrong

Posted by "Sebb (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178988#comment-13178988 ] 

Sebb commented on INFRA-4270:
-----------------------------

Oops! not sure why there are no entries now - could not find any errors in the logs.
Will investigate further.

AFAICT, privateDetails.xsl is not used to generate the committers site; it is used by generateFoaflist.pl.

nav.xsl is a utility stylesheet used by the other stylesheets in https://svn.apache.org/repos/asf/infrastructure/site/trunk/people/templates
                
> Sorting on committers page is wrong
> -----------------------------------
>
>                 Key: INFRA-4270
>                 URL: https://issues.apache.org/jira/browse/INFRA-4270
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Website
>            Reporter: Gianmarco De Francisci Morales
>            Priority: Trivial
>
> The xsl transformation that sorts the names from the .rdf files does something wrong.
> My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
> The script should not try to break up surnames around spaces.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira