Changeset 26545

Show
Ignore:
Timestamp:
04.12.2012 15:22:41 (7 years ago)
Author:
ak19
Message:

List.pm makes all bucket titles lowercase now, for sorting purposes (so that titles that start with d and D can still go under bucket D), while css is used to titlecase buckets and bookshelves.

Location:
main/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/classify/List.pm

    r26267 r26545  
    401401            } 
    402402 
    403             # Don't uppercase metadata here, user can change the display with CSS or javascript 
    404             # further on. Moreover, CSS is unable to turn letters that are capitals by default  
    405             # into lowercase, whereas letters that are lowercase by default can be titlecased or  
    406             # capitalised later with CSS if necessary. 
    407             # uppercase the metadata - makes the AZList nicer 
    408             #$metadata_value = uc($metadata_value); 
     403            # lowercase metadata both for sorting meta (d/D under D), and to allow CSS to be able to 
     404            # text-transform the stored lowercase values as capitalize or uppercase (can't CSS  
     405            # text-transform if stored uppercase). 2 CSS text-transforms have been added to core.css 
     406            $metadata_value = lc($metadata_value); 
    409407             
    410408            # We are already working with unicode aware strings at this  
  • main/trunk/greenstone3/web/interfaces/default/style/core.css

    r26395 r26545  
    8686    padding-left:0px; 
    8787    margin:0px; 
     88    text-transform: uppercase; /* To get the bookshelves and buckets titlecased (they're stored lowercased) */ 
    8889} 
    8990 
     
    844845} 
    845846 
     847/* To get the bookshelves and buckets titlecased (they're stored lowercased) */ 
     848table#classifiernodelist { 
     849     
     850    text-transform: capitalize; 
     851} 
     852 
    846853/* 
    847854ul.childrenlist li {