Difference between revisions of "Extension talk:MarketResearch"
m (→todo for market research) |
m (→in article:) |
||
Line 101: | Line 101: | ||
==todo== | ==todo== | ||
==in article:== | ==in article:== | ||
− | *replace all product info with link "more info & ordering" which takes you to jump page | + | *Article Name by <nowiki>Vendor</nowiki> -- need to add vendor details... |
− | (currently, it has a link of each and every available product) | + | *expand sample text out to 500 characters. |
+ | *replace all product info with link "more info & ordering" image which takes you to jump page (currently, it has a link of each and every available product) | ||
*two word queries not working: | *two word queries not working: | ||
<pre> | <pre> | ||
Line 113: | Line 114: | ||
!= | != | ||
http://www.marketresearch.com/feed/search_results.asp?bquery=personal+computers&partnerid=951781402 | http://www.marketresearch.com/feed/search_results.asp?bquery=personal+computers&partnerid=951781402 | ||
− | |||
− | |||
===in special jump page=== | ===in special jump page=== | ||
*change rendered text name of jump page to "Details on This Report" | *change rendered text name of jump page to "Details on This Report" | ||
+ | *Article Name by <nowiki>Vendor</nowiki> -- need to add vendor details... | ||
+ | *content in articles: | ||
+ | ** extra <nowiki><P></nowiki> tags showing up in http://www.govitwiki.com/wiki/Special:MarketResearch/satellite/1225858 | ||
+ | |||
*Navigation on top/bottom needs to be links to: | *Navigation on top/bottom needs to be links to: | ||
**View Cart | **View Cart | ||
**GovITwiki Research Report Store [[GovITwiki Research Report Store]] | **GovITwiki Research Report Store [[GovITwiki Research Report Store]] | ||
**back button (javascript) | **back button (javascript) | ||
− | + | *article tex | |
− | * | + | *need |
*for each available product need (can we do this in a select box?) | *for each available product need (can we do this in a select box?) |
Revision as of 19:35, 25 August 2008
{{#security:*|Nad}}
Contents
Todo
- Cache and check modified date before retrieving entire content
- Add args for max description length, and max results
Input
many items in a tag are with separate lines,
<marketresearch> term-1 term-2 term-n </marketresearch>
- --nad 09:39, 12 July 2008 (NZST)
<php>$keywords = preg_split('/[\x00-\x1f+,]+/', trim($input));</php> This allows any of the forms above --nad 21:52, 12 July 2008 (NZST)
which will give formatted data from
- multiple is done in the form foo+bar:
http://www.marketresearch.com/feed/search_results.asp?bquery=computers+monitor&partnerid=951781402
--Phalseid 02:52, 12 July 2008 (NZST)
Process
the parsing needs to give
- the <TITLE>
- a snippet of the article(s)<DESCRIPTION></DESCRIPTION>
- the product id which is BUY id from the resultant XML file... (<BUY id=xxxxx)
Output
shows the title, description, and a link to buy it...
http://www.marketresearch.com/feed/cart/addtocart.asp?partnerid=951781402&productid=xxxxxxx
--Phalseid
Development
The current version is working and tested, check it out and give me some feedback. Its not caching yet, so there's quite a delay on page load and it will fail if the feed doesn't return valid xml etc. To use it include it like normal and set you partner id as in the following example: <php> include("$IP/extensions/MarketResearch.php"); $wgMarketResearchPartner = "951781402"; </php> The rendered output is in the following format, design aspects should be made as CSS rules in MediaWiki:Common.css.
<div class="marketresearch"> <div class="marketresearch-item"> <h3>Men's and Boys' Clothing</h3> <p>This report analyzes the worldwide markets for Men's & Boy's Clothing in Millions of US$. The specific product segments analyzed are Suits, Coats & Jackets, Shirts, T-Shirts, Trousers, Slacks and Jean...</p> <ul> <li><a href="...addtocart.asp?partnerid=951781402&productid=1281401">1281401</a></li> </ul> </div> <div class="marketresearch-item"> <h3>Fashion and Media - UK</h3> <p>Fashion brands and retailers have a long-standing relationship with women's magazines and, more recently, with men's magazines. Television has been used to a lesser extent, particularly as it is very ...</p> <ul> <li><a href="...addtocart.asp?partnerid=951781402&productid=1089359">1089359</a></li> <li><a href="...addtocart.asp?partnerid=951781402&productid=1089358">1089358</a></li> </ul> </div> <div class="marketresearch-item"> <h3>Clothing Retailing - UK</h3> <p>The clothing sector is the second largest in UK retail. The influx of value fashion has forced the specialists to re-think their value proposition, with the mid-market in particular feeling the squeez...</p> <ul> <li><a href="...addtocart.asp?partnerid=951781402&productid=1562450">1562450</a></li> <li><a href="...addtocart.asp?partnerid=951781402&productid=1562451">1562451</a></li> <li><a href="...addtocart.asp?partnerid=951781402&productid=1562452">1562452</a></li> </ul> </div> </div>
Jump Page
Some new changes. the API supplier is requiring us to use a "Jumppage" File:Jumppage.pdf. Please take a look at this and email me your revised quote for financial and chronological requirements.--Phalseid 06:19, 17 July 2008 (NZST)
sure...search string --> <---xml--> results in article --->jumppage (details of selected article)
- Jump page would probably be best as an unlisted specialpage which is linked to by the buy links
- An extra tag added for rendering links to the shopping cart so that it can be added to nav or personal urls etc
- Index of Articles that are returned (Table of Contents on the "Jump page") -note this is NOT not a table of contents for the ARTICLE!-we don't get that back in the XML file!
- Article Title
- is it possible to search in article(?)
- Full Article Description (all text that comes back from the XML file for that article..some are short, some are quite lengthy)
- Link to Buy Article(s)
- Link to go back to the top (Table of Contents)
- Link to the Shopping cart (No Dynamic Shopping Cart-that is possible but im guessing out of your budget). The shopping cart you get is the one from MarketResearch. I thought we could put it in the page like your illustration, but it looks like crap when it is resized....so it must be a link only...
- Cache pages so they load fast
- Assign maximum number of articles to return from query (minimum will always be 0!)
- Text (or image) Link to shopping cart in main navigation in case the user navigates away from the page...they can always complete purchase!
todo
in article:
- Article Name by Vendor -- need to add vendor details...
- expand sample text out to 500 characters.
- replace all product info with link "more info & ordering" image which takes you to jump page (currently, it has a link of each and every available product)
- two word queries not working:
<marketresearch> personal computers </marketresearch>
!= http://www.marketresearch.com/feed/search_results.asp?bquery=personal+computers&partnerid=951781402
in special jump page
- change rendered text name of jump page to "Details on This Report"
- Article Name by Vendor -- need to add vendor details...
- content in articles:
- extra <P> tags showing up in http://www.govitwiki.com/wiki/Special:MarketResearch/satellite/1225858
- Navigation on top/bottom needs to be links to:
- View Cart
- GovITwiki Research Report Store GovITwiki Research Report Store
- back button (javascript)
- article tex
- need
- for each available product need (can we do this in a select box?)
- Product Name (currently on Article Page that links to jump page)
- include price at bottom of jump page article: price="3850"
- "add to cart" link (http://www.marketresearch.com/feed/cart/addtocart.asp?partnerid=951781402&productid=xxxxxxx)
tbd
- is it possible to make the shopping cart page open up "inside" the jumppage? no biggie....
- is it possible to do a search of reports only
todo for market research
- There are currently no items in your shopping cart.
Please, continue shopping. LINK IS WRONG