×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles
    in:

    Hyperwave: Difference between revisions

    Content added Content deleted
    imported>RobiH
    imported>Took
    (→‎Code snippets: hw10 fixed)
    Line 23: Line 23:


    == Code snippets ==
    == Code snippets ==

    === Hyperwave Titel-Erkennung ===
    Hyperwave-Wikis vom Typ 5, 7, 9 und 10 funktionieren zZt noch nicht korrekt. Links zu Beispiel-Wikis der genannten Typen findet man [http://s23.org/wikistats/hyperwave_html.php?sort=type_desc hier].

    ==== hw05.php ====
    ...work in progress
    <HighlightSyntax>
    IDs 20, 24
    $urlpattern = '@<SPAN class=AttrValue>([0-9]*)</SPAN>@iU';
    $urlpattern = '@<TR><TD ALIGN="RIGHT"><SPAN class=AttrName>Title (English):</SPAN></TD>[.\\W]*<TD><SPAN class=AttrValue>(.+)</SPAN></TD></TR>@';
    </HighlightSyntax>

    ==== hw07.php ====
    ...work in progress
    <HighlightSyntax>
    ID 37
    $urlpattern = '@<SPAN class=AttrValue>([0-9]*)</SPAN>@iU';
    $urlpattern = '@<TD VALIGN="TOP" ALIGN="RIGHT"><IMG SRC="/wavemaster.internal/v6.2/uistyle/icons/empty.gif" WIDTH="1" HEIGHT="4"><BR><SPAN class=AttrName>Title&nbsp;(English):</SPAN></TD>[.\\W]*<TD><SPAN class=AttrValue>(.+)</SPAN>@';
    </HighlightSyntax>


    ==== hw09.php ====
    ...work in progress
    <HighlightSyntax>
    IDs 18, 19, 25
    $urlpattern = '@<SPAN class=AttrValue>([0-9]*)</SPAN>@iU';
    $urlpattern = '@<TD VALIGN="TOP" ALIGN="RIGHT"><IMG SRC="/wavemaster.internal/v6.2/uistyle/icons/empty.gif" WIDTH="1" HEIGHT="4"><BR><SPAN class=AttrName>Titel&nbsp;(English):</SPAN></TD>[.\\W]*<TD><SPAN class=AttrValue>(.+)</SPAN></TD></TR>@';
    </HighlightSyntax>

    ==== hw10.php ====
    this seems to work. id 14 spinnt allerdings total. sieht offline aus.
    <HighlightSyntax>
    //$url='http://isc.e-colt.com/rootcollection';
    $url='http://elpub.bib.uni-wuppertal.de/rootcollection';
    $in=file_get_contents($url);
    preg_match('@<TITLE>(.*)</TITLE>@', $in, $out);
    //print_r($out);
    echo $out[1]."\n";
    </HighlightSyntax>



    [[Category:Wiki]]
    [[Category:Wiki]]

    Revision as of 18:06, 1 March 2008

    Rationale

    Hyperwave ist eine Serverplattform, die man am besten als proprietären und geschlossenen Vorläufer zu Wiki-Plattformen betrachten kann.

    Tasks

    <tasks> [1] Repariere Titelerkennung der Methoden 05,07,09,10; zu finden auf geist:/home/took/ (took) [2] Add autopasting, formats, coalesced, | after its working (mutante) </tasks>

    No stats at this time

    1. http://egmcp1.cgv.tugraz.at/rootcollection
    2. http://els.pa-feldkirch.ac.at/rootcollection
    3. http://w01.my-files.de/rootcollection
    4. http://w01.net-files.de/rootcollection
    5. http://www.bancaditalia.it/rootcollection
    6. http://www.broxbourne.gov.uk/internet
    7. http://www.jucs.org/rootcollection
    8. https://pmronline.eads.com/rootcollection

    Code snippets

    Hyperwave Titel-Erkennung

    Hyperwave-Wikis vom Typ 5, 7, 9 und 10 funktionieren zZt noch nicht korrekt. Links zu Beispiel-Wikis der genannten Typen findet man hier.

    hw05.php

    ...work in progress <HighlightSyntax> IDs 20, 24 $urlpattern = '@([0-9]*)@iU';

    $urlpattern = '@Title (English):[.\\W]*(.+)@';

    </HighlightSyntax>

    hw07.php

    ...work in progress <HighlightSyntax> ID 37 $urlpattern = '@([0-9]*)@iU';

    $urlpattern = '@<IMG SRC="/wavemaster.internal/v6.2/uistyle/icons/empty.gif" WIDTH="1" HEIGHT="4">
    Title (English):[.\\W]*(.+)@';

    </HighlightSyntax>


    hw09.php

    ...work in progress <HighlightSyntax> IDs 18, 19, 25 $urlpattern = '@([0-9]*)@iU';

    $urlpattern = '@<IMG SRC="/wavemaster.internal/v6.2/uistyle/icons/empty.gif" WIDTH="1" HEIGHT="4">
    Titel (English):[.\\W]*(.+)@';

    </HighlightSyntax>

    hw10.php

    this seems to work. id 14 spinnt allerdings total. sieht offline aus. <HighlightSyntax> //$url='http://isc.e-colt.com/rootcollection'; $url='http://elpub.bib.uni-wuppertal.de/rootcollection'; $in=file_get_contents($url); preg_match('@<TITLE>(.*)</TITLE>@', $in, $out); //print_r($out); echo $out[1]."\n"; </HighlightSyntax>

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.