Hi Gu,

thanks for your input. I agree that the Factbox should be more configurable in 
general. I think we will supply one or more extension hooks that enable you 
even to completely replace the Factbox with your own HTML, and to extend of 
restrict the displayed properties. The order option also would be feasible, 
but as you say it is not applicable when a wiki's pages have less uniform 
annotations.

"Hidden" annotations would be nice as well, but it would still be required to 
store them as part of the text somehow, or to implement versioning for 
annotations. Maybe some developer is interested to work on this? (we will 
also approach this, but it may take us some time; and it's a nice challenging 
task to solve properly)

The collapsing thingy certainly should be a standard feature. Should be done 
before SMW1.0.

Best regards,

Markus



On Dienstag, 2. Oktober 2007, [EMAIL PROTECTED] wrote:
> Hi,
>
> Thanks for the info about the factbox.
>
> Right now I'm really just testing out different option of SMW1.0 but I'm
> considering if it might be sufficient for my purpose to display much of the
> info just in the factbox and not duplicate it on the actual page.
>
> However the default alphabetical listing of the properties in the factbox
> is for that purpose not really useful but (as far as I know) there are no
> official options to modify directly the display of the entries.
>
> As most of my properties are automatically generated and pre-known on
> certain page types I messed a bit around with the php code in the
> SMW_SemanticData.php and SMW_Factbox.php files. Although I havn't really
> programmed with php before I came up with a solution to group the property
> listing in the factbox and add some headers which should be good enough for
> me. Maybe at a later stage something like that could be included in an
> official release?
>
> On a normal page my factbox would look something like this:
>
>
> Facts about PFB0050c                                                 RDF
> feed [hide] Alias PF02 0009  +
>                         CDS Length 519  +
>    DeRisi Minimum Expression Level -0.1103  +
>       DeRisi Timing of Maximum Exp 8  +
>       DeRisi Timing of Minimum Exp 33  +
>                        External id UNIPROT;Q8I671 PLAF7  +, UNIPROT;Q8I671 
> +, EMBL;AE001368;AAC71800.1;-;Genomic DNA  +, GOannotation GO:0008150
> (biological_process, Biological Process, ND, PSU Curators, PLASMODB)  +,
> GO:0016020 (membrane, Cellular Component, IEA, PSU Curators, PLASMODB)  +
> Gene Strand Reverse  +
>                          Gene Type Protein coding  +
>                  Isoelectric Point 6.77  +
>                           Location MAL2;54418;54936  +
>                   Molecular Weight 19304  +
>                               Name PFB0050c  +
>                            Product Stevor isoform gam beta  +
>                            Protein Length 172  +
>                         Transcript Length 519  +
>
>
> I can now add to the page (either directly or via a template) a property
> 'Factorder' which defines my desired order of the listed properties and
> some headings on that page (all properties not mentioned in Factorder are
> added at the end under 'Other properties'):
>
>   [[Factorder::IDENTIFIERS;External id;Name;Alias;;DATA!!--
> GENERAL;Location;GOannotation;;-- DERISI;DeRisi*;;SEQUENCES;Transcript
> Length;CDS Length;Protein Length| ]]
>
> and the factbox automagically displays like this:
>
>
> Facts about PFB0050c                                                    RDF
> feed [hide]
>
> IDENTIFIERS
>                           External id UNIPROT;Q8I671 PLAF7  +,
> UNIPROT;Q8I671  +, EMBL;AE001368;AAC71800.1;-;Genomic DNA  + Name PFB0050c 
> +
>                                 Alias PF02 0009  +
> DATA
> -- GENERAL
>                              Location MAL2;54418;54936  +
>                          GOannotation GO:0008150 (biological_process,
> Biological Process, ND, PSU Curators, PLASMODB)  +, GO:0016020 (membrane,
> Cellular Component, IEA, PSU Curators, PLASMODB)  + -- DERISI
>       DeRisi Minimum Expression Level -0.1103  +
>          DeRisi Timing of Maximum Exp 8  +
>          DeRisi Timing of Minimum Exp 33  +
> SEQUENCES
>                     Transcript Length 519  +
>                            CDS Length 519  +
>                        Protein Length 172  +
> Other properties
>                    Gene Strand Reverse  +
>                      Gene Type Protein coding  +
>              Isoelectric Point 6.77  +
>               Molecular Weight 19304  +
>                 Product Stevor isoform gam beta  +
>
>
> The property Factorder itself is not shown in the listing.
> That is of course only really useful if one does know most properites which
> will appear on a page beforehand but than it looks much better.
>
> Maybe of more general use might be the option to show/hide the factbox
> which is simply done by adding to the table definition in SMW_Factbox.php
> the class 'collapsible' (plus an extra empty row to make some space for the
> [hide]/[show] links). To optionally add this could maybe be an option for
> $smwgShowFactbox?
>
> Cheers,
> Gu
>
> Quoting Markus Krötzsch <[EMAIL PROTECTED]>:
> > == SMW1.0 feature feed ==
> >
> > Some wikis completely disable the Factbox for display, and I recently
> > found that this makes it rather hard to debug SMW inputs properly (since
> > errors are



-- 
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
[EMAIL PROTECTED]        www  http://korrekt.org

Attachment: pgpgPi18bMEWp.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to