[Building Sakai] Proposed minor enhancement: SAK-23567 NeoPortal site title handling

Alex Ballesté alexandre.balleste at udl.cat
Fri May 31 00:48:48 PDT 2013


Hi, that solution is perfect for us too. We usually tend to put the 
course code and and the academic year at the end of the title to help 
users to identify them. Our course planning system uses very long names 
and always have to modify portal to keep them visible. I would like to 
have it on 2.9.3. It seems very easy way to custom and solve our problem.

Thanks guys to provide it.


On 05/31/2013 09:40 AM, Adrian Fish wrote:
> Hi José,
>
> I see from the JIRA ticket that a technical discussion is well under 
> way. I think your approach is fine and is a sensible improvement over 
> basic truncation. I'll move over to the JIRA ticket now. Thanks for 
> the work :)
>
> Cheers,
> Adrian.
>
>
> On 30 May 2013 22:32, José Mariano Luján <jmariano at um.es 
> <mailto:jmariano at um.es>> wrote:
>
>     Hi dev list,
>     Today, on the CLE Call, we discussed jira *SAK-23567 [1]* which is
>     a feature request from Univ. of Murcia. The CLE Team thinks that
>     some discussion from the list is needed so, please, consider
>     taking a few minutes to look at it. It would be much appreciated.
>
>     *Use case*
>     Our CLE installation features many long site titles, as in, "This
>     is the subject part I", "This is the subject part II".  In each
>     case, truncating the site titles at position X results in site
>     titles that are indistinguishable from one another (e.g., "This is
>     the subj..."). We need greater flexibility than what the current
>     solution provides.
>
>     *Proposed Solution (patches provided)*
>     We patched
>     portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java
>     portal-render-engine-impl/pack/src/webapp/vm/neoskin/includeTabs.vm
>
>     Note the introduction of 2 new properties
>
>           site.title.cut.method = customize the cut method. Default
>     100:0.
>           site.title.cut.separator = separator string. Default ...
>
>     We basically use a couple of new properties to choose the way we
>     want to cut the title displayed. The value 'cut.method' has the
>     format X:Y, wich means that X is the percent of maxlength at
>     the beginning and Y is the percent of maxlength at the end. Now,
>     if you choose 50:50 and [...], the above example, will get
>     something like "This is[...]part I" and "This is[...]part II".
>
>     An example of how it could work. Screenshots attached on the jira.
>
>        # Max length for site title display
>        # Default 25 characters
>        #site.title.maxlength=25
>
>        # Cut method for site title display
>        # Default 100:0 display the first site.title.maxlength
>     characters and the separator string at the end
>        # Other values:
>        # 0:100 display the last site.title.maxlength characters and
>     the separator string at the beginning
>        # 50:50 display first site.title.maxlength*50% characters the
>     separator string and the last site.title.maxlength*50%
>        #site.title.cut.method=100:0
>
>        # Separator string used to separate characters in cut method
>        # Default ...
>        #site.title.cut.separator= ...
>
>     *Proposed fix version*
>     Trunk (2.10), 2.9.3
>
>     Feel free to review or comment, your help is much appreciated.
>
>     Thanks, Mariano
>
>     [1] - https://jira.sakaiproject.org/browse/SAK-23567
>
>     _______________________________________________
>     sakai-dev mailing list
>     sakai-dev at collab.sakaiproject.org
>     <mailto:sakai-dev at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>     TO UNSUBSCRIBE: send email to
>     sakai-dev-unsubscribe at collab.sakaiproject.org
>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


-- 
Alexandre Ballesté Crevillén  alexandre.balleste at udl.cat
=====================
Universitat de Lleida
Àrea de sistemes d'Informació i Comunicacions
Analista/Programador

University of Lleida
Information and Communication Systems Service
Analyst / Programmer

Tlf: +34 973 702148
Fax: +34 973 702130
=====================


AVÍS LEGAL
Aquest missatge pot contindre informació privada o confidencial, i s'adreça exclusivament a la persona destinatària. Si l'heu rebut per error, comuniqueu-nos-ho i destruïu-lo, i tingueu present que no teniu autorització per fer-ne cap ús.

LEGAL NOTICE
This message may contain private or confidential information, and is addressed exclusively to its intended recipient. If you have received it in error, please notify the sender and delete it. Please bear in mind that you are not authorized to use it for any purposes.

AVISO LEGAL
Este mensaje puede contener información privada o confidencial, y va dirigido exclusivamente a la persona destinataria. Si lo ha recibido por error, comuníquenoslo y destrúyalo, y recuerde que en ningún caso tiene autorización para utilizarlo.

AVERTIMENT LEGAL
Aqueste messatge pòt conténer d'informacion privada o confidenciala, e s¿adreça sonque a la persona destinatària. Se l¿avètz recebut per causa erronèa, vos demandam d'o nos far saber e de lo destrusir immediatament, e vos remembram qu'avètz pas cap d'autorizacion per l'utilizar per qué que siá.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130531/5fc929ac/attachment.html 


More information about the sakai-dev mailing list