[Mtamazon] Problem with Power search

"Gail Lucas" <[email protected]> Mon, 7 Jun 2004 22:40:55 -0500
Newsgroups gmane.comp.web.mtamazon.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C44CE0.7F627240
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi!  I hope this isn't too simple of a question, b ut I looked through
the archives and couldn't find anything.

I've been attempting to do a Power search, where I get all knitting
books published in June of 2004.   This syntax works in the Power Search
window on Amazon:

pubdate: during 06-2004 and subject: knitting

It returns four entries.

I have MTMacros working within entries with a simple ASIN search.   But,
I couldn't get a power search to work on my side bar either, without the
MTMacros.   Here is what I have for my macro:


<MTMacroDefine name="monthknitrelease" ctag="monthknitrelease">
<MTIfNotEmpty expr="[MTMacroAttr name='date']">
<MTAmazon search="[MTMacroAttr name='date'] and subject:'knitting'"
method="Power">
<a href="<MTAmazonLink>"><MTAmazonSmallImage><MTMacroContent
default="[MTAmazonTitle]"></a><p><MTAmazonTitle>,<MTAmazonAuthor><p>Publ
isher:<MTAmazonManufacturer><p>
Amazon's Price:<MTAmazonSalePrice><p>
Release
Date:<MTAmazonReleaseDate><p></MTAmazon></MTIfNotEmpty></MTMacroDefine>

I'm calling it with this:

<monthknitrelease date="pubdate: during 06-2004"></monthknitrelease>

The cache file is created with a likely file name, but then I get the
"no exact matches" error in the XML file.

Any help is much appreciated.   Also, does anyone happen to know if
there is a way to do a date range in a Power search?  

Thanks!

Gail


------=_NextPart_000_0001_01C44CE0.7F627240
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4630.0">
<TITLE>Problem with Power search</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Hi!&nbsp; I hope =
this isn't too simple of a question, b ut I looked through the archives =
and couldn't find anything.</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">I've been =
attempting to do a Power search, where I get all knitting books =
published in June of 2004.&nbsp;&nbsp; This syntax works in the Power =
Search window on Amazon:</FONT></P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">pubdate: during =
06-2004 and subject: knitting</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">It returns four =
entries.</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">I have MTMacros =
working within entries with a simple ASIN search.&nbsp;&nbsp; But, I =
couldn't get a power search to work on my side bar either, without the =
MTMacros.&nbsp;&nbsp; Here is what I have for my macro:</FONT></P>
<BR>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">&lt;MTMacroDefine =
name=3D&quot;monthknitrelease&quot; =
ctag=3D&quot;monthknitrelease&quot;&gt;</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">&lt;MTIfNotEmpty =
expr=3D&quot;[MTMacroAttr name=3D'date']&quot;&gt;</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">&lt;MTAmazon =
search=3D&quot;[MTMacroAttr name=3D'date'] and subject:'knitting'&quot; =
method=3D&quot;Power&quot;&gt;</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">&lt;a =
href=3D&quot;&lt;MTAmazonLink&gt;&quot;&gt;&lt;MTAmazonSmallImage&gt;&lt;=
MTMacroContent =
default=3D&quot;[MTAmazonTitle]&quot;&gt;&lt;/a&gt;&lt;p&gt;&lt;MTAmazonT=
itle&gt;,&lt;MTAmazonAuthor&gt;&lt;p&gt;Publisher:&lt;MTAmazonManufacture=
r&gt;&lt;p&gt;</FONT></P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Amazon's =
Price:&lt;MTAmazonSalePrice&gt;&lt;p&gt;</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Release =
Date:&lt;MTAmazonReleaseDate&gt;&lt;p&gt;&lt;/MTAmazon&gt;&lt;/MTIfNotEmp=
ty&gt;&lt;/MTMacroDefine&gt;</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">I'm calling it with =
this:</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 =
FACE=3D"Verdana">&lt;monthknitrelease date=3D&quot;pubdate: during =
06-2004&quot;&gt;&lt;/monthknitrelease&gt;</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">The cache file is =
created with a likely file name, but then I get the &quot;no exact =
matches&quot; error in the XML file.</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Any help is much =
appreciated.&nbsp;&nbsp; Also, does anyone happen to know if there is a =
way to do a date range in a Power search?&nbsp; </FONT></P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Thanks!</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Verdana">Gail</FONT>
</P>

</BODY>
</HTML>
------=_NextPart_000_0001_01C44CE0.7F627240--



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
You received this email because you have subscribed to Mtamazon-users.

To subscribe, unsubscribe, or change your subscription options, please visit
https://lists.sourceforge.net/lists/listinfo/mtamazon-users