Hi once again, after not being able of performing the integration of the external data as I wanted in first place, as described is the mail thread with the subject "Integrating external data into Lenya" started at 2005-07-28, I've been instructed to try something a little simpler. Instead of showing the default data from a staff member, now after clicking the profile link, the new page must only show the data from the external source fully integrated in the publication's layout.

For this purpose I've changed a few this in publication-sitemap.xmap:

     <map:pipeline>
       <map:match pattern="**/staff/*/profile">
            <map:aggregate element="cmsbody">
                <map:part src=""/>
                <map:part src=""/>
                <map:part src=""/>
                <map:part src=""/>
                <map:part src=""/>
            </map:aggregate>

            <map:transform src="">
                <map:parameter name="document-id" value="staff/{2}"/>
                <map:parameter name="document-type" value="profile"/>
                <map:parameter name="language" value="{page-envelope:document-language}"/>
                <map:parameter name="root" value="{page-envelope:context-prefix}/{page-envelope:publication-id}/{page-envelope:area}"/>
                <map:parameter name="url" value="{2}"/>
            </map:transform>

            <map:transform type="i18n">
                <map:parameter name="locale" value="{page-envelope:document-language}"/>
            </map:transform>

            <map:transform src=""/>
            <map:transform type="link-rewrite"/>

            <map:serialize type="html"/>

        </map:match>
    </map:pipeline>


    <map:pipeline>
        <map:match pattern="staff-*">
            <map:select type="parameter">
                <map:parameter name="parameter-selector-test" value="{1}"/>
       
                <map:when test="asg">
                    <map:generate src="" class="moz-txt-link-rfc2396E" href="http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&metadataPrefix=oai_dc&set=Creator:Adolfo%20Steiger">"http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=Creator:Adolfo%20Steiger"/>
                </map:when>

                <map:when test="ca">
                    <map:generate src="" class="moz-txt-link-rfc2396E" href="http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&metadataPrefix=oai_dc&set=Creator:Carlos%20Agostinho">"http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=Creator:Carlos%20Agostinho"/>
                </map:when>

                <map:when test="flf">
                    <map:generate src="" class="moz-txt-link-rfc2396E" href="http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&metadataPrefix=oai_dc&set=Creator:Fernando%20Ferreira">"http://rolando.serrado.net/cwis/SPT--OAI.php?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=Creator:Fernando%20Ferreira"/>
                </map:when>

                .
                .
                .

            </map:select>
            <map:transform src=""/>
            <map:serialize type="xml"/>
        </map:match>
    </map:pipeline>


Some problems occur with this code:

    - if I keep the transformation with page2xhtml.xsl, the data from the external source doesn't appear, if I comment it, the menus, tabs, breadcrumbs and every other     page element isn't rendered according to the layout. Do I have to add some kind of match in the page2xhtml.xsl file so it enables the external data to be showed? How     can I do that?

    - the links in the tabs and menus aren't correct, instead of http://.../lenya/gris/live/index.html the url appears as http://.../lenya/gris/live/staff/asg/index.html,     the same happens to every other url, how can I perform a link-rewrite that removes the staff/asg sub-string from the url's?

Thanks in advance,
Rolando Isidoro

Reply via email to