[SPT/CWIS] order of display of resources?

Edward Almasy ealmasy at scout.wisc.edu
Tue Jan 16 13:53:36 CST 2007


On Jan 13, 2007, at 2:52 PM, Juan Zuluaga wrote:
> - when opening my table of resources by classification
> (http://205.201.57.101/SPT/SPT--BrowseResources.php?ParentId=172),
>  the list of resource appears in alphabetical order by title.
> - For my purposes a display sorted by "Date Of Record
> Creation" would make more sense.  How can I change this?

    The browsing interface sorts records alphabetically
    in large part because it allows them to be automatically
    broken up into alphabetic groups when the number of
    resources under a given classification is large enough
    that it must be split across multiple pages.  To instead
    sort them by date you would need to rework the code in
    SPT--BrowseResources.php to sort the resources by their
    creation date and then either force it to always display
    all of the resources for a given classification on a
    single page, or come up with an algorithm and code to
    automatically generate and support appropriate browsing
    links to break them up by date ranges.


> Why are the records on
> http://205.201.57.101/SPT/SPT--BrowseResources.php not
> reflected in http://205.201.57.101/SPT/SPT--Home.php ?
> why is that after I make a manual modification to some
> of the records in the first page, they do appear
> magically in the SPT--Home.php?

    Records appear on the front page based on their date of
    release (or date of creation, if release dates are
    identical), so they'll show up there when you toggle
    their Release Flag to "OK for Viewing".

    Ed


---
    Edward Almasy                                      
ealmasy at scout.wisc.edu
    Co-Director                                         1210 W Dayton  
Street
    Internet Scout                                          Madison  
WI 53706
    Computer Sciences Department                        608-262-6606  
(voice)
    University of Wisconsin - Madison                      
608-265-9296 (fax)




More information about the SPT-CWIS-Users mailing list