[Laszlo-checkins] r12122 - openlaszlo/trunk/demos/amazon

bargull@openlaszlo.org bargull at openlaszlo.org
Mon Dec 15 12:19:38 PST 2008


Author: bargull
Date: 2008-12-15 12:19:35 -0800 (Mon, 15 Dec 2008)
New Revision: 12122

Modified:
   openlaszlo/trunk/demos/amazon/amazon.lzx
Log:
Change 20081215-bargull-neB by bargull at dell--p4--2-53 on 2008-12-15 17:50:49
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: amazon demo bugfix

New Features:

Bugs Fixed: LPP-6868

Technical Reviewer: promanik
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
If "Our Price" is not available, use lowest new resp. lowest used price instead.

    

Tests:
search for "Stone Temple Pilots", album "Thank you" displays List Price / Our Price as before
but album "Core (DVD Audio)" displays Used Price / New Price instead.



Modified: openlaszlo/trunk/demos/amazon/amazon.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/amazon.lzx	2008-12-15 20:00:42 UTC (rev 12121)
+++ openlaszlo/trunk/demos/amazon/amazon.lzx	2008-12-15 20:19:35 UTC (rev 12122)
@@ -212,8 +212,15 @@
                             <text y="40" fgcolor="#666699">Label:</text><text x="90" y="40" datapath="ItemAttributes/Manufacturer/text()" width="${parent.width}" fgcolor="#666699"/>
                             <text y="55" fgcolor="#666699">Release Date:</text><text x="90" y="55" datapath="ItemAttributes/ReleaseDate/text()" width="${parent.width}" fgcolor="#666699"/>
                             <text y="70" fgcolor="#666699">Availability:</text><text x="90" y="70" datapath="Offers/Offer[1]/OfferListing/Availability/text()" width="${parent.width}" fgcolor="#666699"/>
-                            <text y="87" fgcolor="#666699" fontsize="14">List Price:</text><text x="90" y="87" datapath="ItemAttributes/ListPrice/FormattedPrice/text()" width="${parent.width}" fontsize="14" fgcolor="#666699"/>
-                            <text y="105" fgcolor="#666699" fontstyle="bold" fontsize="16">Our Price:</text><text x="90" y="105" datapath="Offers/Offer[1]/OfferListing/Price/FormattedPrice/text()" width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
+                            <attribute name="totalOffers" value="$path{'Offers/TotalOffers/text()'}" type="number" />
+                            <state applied="${this.parent.totalOffers > 0}" pooling="true">
+                                <text y="87" fgcolor="#666699" fontsize="14">List Price:</text><text x="90" y="87" datapath="ItemAttributes/ListPrice/FormattedPrice/text()" width="${parent.width}" fontsize="14" fgcolor="#666699"/>
+                                <text y="105" fgcolor="#666699" fontstyle="bold" fontsize="16">Our Price:</text><text x="90" y="105" datapath="Offers/Offer[1]/OfferListing/Price/FormattedPrice/text()" width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
+                            </state>
+                            <state applied="${this.parent.totalOffers == 0}" pooling="true">
+                                <text y="87" fgcolor="#666699" fontsize="14">Used Price:</text><text x="90" y="87" datapath="OfferSummary/LowestUsedPrice/FormattedPrice/text()" width="${parent.width}" fontsize="14" fgcolor="#666699"/>
+                                <text y="105" fgcolor="#666699" fontstyle="bold" fontsize="16">New Price:</text><text x="90" y="105" datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
+                            </state>
                             <mouseview resource="cart_butt" x="214" y="105" width="54" height="18"
                                 onclick="cart.addItem(parent.parent.parent.datapath)"/>
                             <mouseview resource="wish_butt" x="270" y="105"  width="54" height="18"



More information about the Laszlo-checkins mailing list