<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments for Data Unbound</title>
	<atom:link href="http://blog.dataunbound.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dataunbound.com</link>
	<description>Data Architect, Consultant, Trainer, and Author Raymond Yee on data and software in research and education</description>
	<pubDate>Tue, 06 Jan 2009 01:18:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Tracking Mr. Shelby by Posts about Mashups and Memes as of December 30, 2008 &#124; The Lessnau Lounge</title>
		<link>http://blog.dataunbound.com/2008/12/30/tracking-mr-shelby/comment-page-1/#comment-47</link>
		<dc:creator>Posts about Mashups and Memes as of December 30, 2008 &#124; The Lessnau Lounge</dc:creator>
		<pubDate>Tue, 30 Dec 2008 19:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=194#comment-47</guid>
		<description>[...] meme is now complete. - found.boxofjunk.ws 12/30/2008 Via aedison. This meme is now complete.   Tracking Mr. Shelby - blog.dataunbound.com 12/30/2008 One of the project areas I&#8217;m hoping that some of my [...]</description>
		<content:encoded><![CDATA[<p>[...] meme is now complete. - found.boxofjunk.ws 12/30/2008 Via aedison. This meme is now complete.   Tracking Mr. Shelby - blog.dataunbound.com 12/30/2008 One of the project areas I&#039;m hoping that some of my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting primary and secondary item types in Zotero by yee</title>
		<link>http://blog.dataunbound.com/2008/12/02/getting-primary-and-secondary-item-types-in-zotero/comment-page-1/#comment-46</link>
		<dc:creator>yee</dc:creator>
		<pubDate>Thu, 11 Dec 2008 22:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=159#comment-46</guid>
		<description>Dan Stillman sent me the following clarification:  "You can also just get all item types with Zotero.ItemTypes.getTypes(), which returns an array of objects with 'id' and 'name' properties. The concept of primary and secondary might very well go away, since the menu might be changed to just show the most recently used types."

Thanks, Dan!</description>
		<content:encoded><![CDATA[<p>Dan Stillman sent me the following clarification:  &#034;You can also just get all item types with Zotero.ItemTypes.getTypes(), which returns an array of objects with &#039;id&#039; and &#039;name&#039; properties. The concept of primary and secondary might very well go away, since the menu might be changed to just show the most recently used types.&#034;</p>
<p>Thanks, Dan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding items to Zotero with Chickenfoot by Data Unbound &#187; Adding all tabs to Zotero Version 2 &#8212; scraping translatable sites</title>
		<link>http://blog.dataunbound.com/2008/11/01/adding-item-to-zotero-with-chickenfoot/comment-page-1/#comment-45</link>
		<dc:creator>Data Unbound &#187; Adding all tabs to Zotero Version 2 &#8212; scraping translatable sites</dc:creator>
		<pubDate>Thu, 11 Dec 2008 22:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=135#comment-45</guid>
		<description>[...] tab, even if a given tab had a translator that could be used to save the item. As explained in Adding items to Zotero with Chickenfoot, you can use Zotero_Browser.scrapeThisPage to invoke the appropriate translator for tab. The reason [...]</description>
		<content:encoded><![CDATA[<p>[...] tab, even if a given tab had a translator that could be used to save the item. As explained in Adding items to Zotero with Chickenfoot, you can use Zotero_Browser.scrapeThisPage to invoke the appropriate translator for tab. The reason [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixing the OpenID setup my WordPress blogs by yee</title>
		<link>http://blog.dataunbound.com/2008/11/21/fixing-the-openid-setup-my-wordpress-blogs/comment-page-1/#comment-42</link>
		<dc:creator>yee</dc:creator>
		<pubDate>Fri, 21 Nov 2008 22:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=155#comment-42</guid>
		<description>Thanks, Will, for letting me know the rel'n between the two plugins.</description>
		<content:encoded><![CDATA[<p>Thanks, Will, for letting me know the rel&#039;n between the two plugins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixing the OpenID setup my WordPress blogs by Will Norris</title>
		<link>http://blog.dataunbound.com/2008/11/21/fixing-the-openid-setup-my-wordpress-blogs/comment-page-1/#comment-41</link>
		<dc:creator>Will Norris</dc:creator>
		<pubDate>Fri, 21 Nov 2008 22:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=155#comment-41</guid>
		<description>just FYI - the WordPress plugin is in fact based on the plugin at SourceForge.  It was forked almost two years ago (January 2007).</description>
		<content:encoded><![CDATA[<p>just FYI - the WordPress plugin is in fact based on the plugin at SourceForge.  It was forked almost two years ago (January 2007).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixing the OpenID setup my WordPress blogs by Mashup Guide :: In case you were trying to login using OpenID, it should work now</title>
		<link>http://blog.dataunbound.com/2008/11/21/fixing-the-openid-setup-my-wordpress-blogs/comment-page-1/#comment-40</link>
		<dc:creator>Mashup Guide :: In case you were trying to login using OpenID, it should work now</dc:creator>
		<pubDate>Fri, 21 Nov 2008 18:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=155#comment-40</guid>
		<description>[...] Data Unbound » Fixing the OpenID setup my WordPress blogs.  Thanks for your patience while I was fixing this problem -- and let me know if you continue to [...]</description>
		<content:encoded><![CDATA[<p>[...] Data Unbound » Fixing the OpenID setup my WordPress blogs.  Thanks for your patience while I was fixing this problem &#8212; and let me know if you continue to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on adding all Firefox tabs to Zotero using Chickenfoot by Greg</title>
		<link>http://blog.dataunbound.com/2008/11/12/adding-all-firefox-tabs-to-zotero-using-chickenfoot/comment-page-1/#comment-37</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 20 Nov 2008 23:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=143#comment-37</guid>
		<description>Hi,

thanks a lot for your help! 
I have already made a lot of progress. Title and authors work well. I also managed to truncate the title after certain chars and select only the authors (not the editors).
I still have, however, some problems with the date. I do get it but it is formatted in very different ways.  Sometimes it is just the year (which I want), sometime it is something like "2007-05-19", and sometimes it is "October 2007". Do you know whether it is possible to get only the year? I guess I would be able to write some code which allows me to extract the year from the different formats. But this is not very elegant and might cause problems if the date is formatted in a unexpected way. 

Thanks again,
Greg

ps: I will try to add an attachment later when I have done the other stuff...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks a lot for your help!<br />
I have already made a lot of progress. Title and authors work well. I also managed to truncate the title after certain chars and select only the authors (not the editors).<br />
I still have, however, some problems with the date. I do get it but it is formatted in very different ways.  Sometimes it is just the year (which I want), sometime it is something like &#034;2007-05-19&#034;, and sometimes it is &#034;October 2007&#034;. Do you know whether it is possible to get only the year? I guess I would be able to write some code which allows me to extract the year from the different formats. But this is not very elegant and might cause problems if the date is formatted in a unexpected way. </p>
<p>Thanks again,<br />
Greg</p>
<p>ps: I will try to add an attachment later when I have done the other stuff&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on adding all Firefox tabs to Zotero using Chickenfoot by yee</title>
		<link>http://blog.dataunbound.com/2008/11/12/adding-all-firefox-tabs-to-zotero-using-chickenfoot/comment-page-1/#comment-36</link>
		<dc:creator>yee</dc:creator>
		<pubDate>Thu, 20 Nov 2008 17:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=143#comment-36</guid>
		<description>Hi Greg,

I'll write a more thorough answer later, but try the following:


// get Zotero, ZoteroPane
var Zotero = chromeWindow.Zotero;
var ZoteroPane = chromeWindow.ZoteroPane;

//get first selected item and output its title
var items = ZoteroPane.getSelectedItems();
var item = items[0];
output ('title: ' + item.getField('title'));

// creators -- get the first creator's last name
var creators = item.getCreators();
creators[0].lastName;

// date

var date = item.getField('date');
date;

// attach file
// see http://groups.google.com/group/zotero-dev/browse_thread/thread/319c69f7882fe171#

var fileName = 'D:\\Document\\Zotero\\chickenfoot\\greg.answers.js'
var file = Components.classes["@mozilla.org/file/local;1"].
            createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(fileName);

Zotero.Attachments.linkFromFile(file, item.id);</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>I&#039;ll write a more thorough answer later, but try the following:</p>
<p>// get Zotero, ZoteroPane<br />
var Zotero = chromeWindow.Zotero;<br />
var ZoteroPane = chromeWindow.ZoteroPane;</p>
<p>//get first selected item and output its title<br />
var items = ZoteroPane.getSelectedItems();<br />
var item = items[0];<br />
output (&#039;title: &#039; + item.getField(&#039;title&#039;));</p>
<p>// creators &#8212; get the first creator&#039;s last name<br />
var creators = item.getCreators();<br />
creators[0].lastName;</p>
<p>// date</p>
<p>var date = item.getField(&#039;date&#039;);<br />
date;</p>
<p>// attach file<br />
// see <a href="http://groups.google.com/group/zotero-dev/browse_thread/thread/319c69f7882fe171#" rel="nofollow">http://groups.google.com/group/zotero-dev/browse_thread/thread/319c69f7882fe171#</a></p>
<p>var fileName = &#039;D:\\Document\\Zotero\\chickenfoot\\greg.answers.js&#039;<br />
var file = Components.classes["@mozilla.org/file/local;1"].<br />
            createInstance(Components.interfaces.nsILocalFile);<br />
file.initWithPath(fileName);</p>
<p>Zotero.Attachments.linkFromFile(file, item.id);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on adding all Firefox tabs to Zotero using Chickenfoot by Greg</title>
		<link>http://blog.dataunbound.com/2008/11/12/adding-all-firefox-tabs-to-zotero-using-chickenfoot/comment-page-1/#comment-35</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 20 Nov 2008 03:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=143#comment-35</guid>
		<description>Hi,
these posts are really interesting. 
I am trying to do the following: 
I want a script which pulls out information about the selected item in zotero, uses this information to rename a pdf file an my computer, and finally add a linked attachment to the zotero item referring to this renamed file. 
Can you help me with the part which involves Zotero? I have basically two questions;
1) How can I define variables for the last name of the first three creators and the year of the zotero item?
I learned from your post how to get the selected item as an object:
var selectedItems = ZoteroPane.getSelectedItems();
I also figured out how to get the different creators as an object:
var author = selectedItems[0].getCreator(1);
I do not, however, know how to get the last name. I was also unable to get the year of the publication. Can you help me about this?
2) The second thing I am not sure about is how to add an attachment to an specific item given that I have a string variable which contains the location of the file.

Thanks!!!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
these posts are really interesting.<br />
I am trying to do the following:<br />
I want a script which pulls out information about the selected item in zotero, uses this information to rename a pdf file an my computer, and finally add a linked attachment to the zotero item referring to this renamed file.<br />
Can you help me with the part which involves Zotero? I have basically two questions;<br />
1) How can I define variables for the last name of the first three creators and the year of the zotero item?<br />
I learned from your post how to get the selected item as an object:<br />
var selectedItems = ZoteroPane.getSelectedItems();<br />
I also figured out how to get the different creators as an object:<br />
var author = selectedItems[0].getCreator(1);<br />
I do not, however, know how to get the last name. I was also unable to get the year of the publication. Can you help me about this?<br />
2) The second thing I am not sure about is how to add an attachment to an specific item given that I have a string variable which contains the location of the file.</p>
<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding items to Zotero with Chickenfoot by Data Unbound &#187; adding all Firefox tabs to Zotero using Chickenfoot</title>
		<link>http://blog.dataunbound.com/2008/11/01/adding-item-to-zotero-with-chickenfoot/comment-page-1/#comment-34</link>
		<dc:creator>Data Unbound &#187; adding all Firefox tabs to Zotero using Chickenfoot</dc:creator>
		<pubDate>Wed, 12 Nov 2008 19:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dataunbound.com/?p=135#comment-34</guid>
		<description>[...] We can now build on what was presented in the previous blog post: Adding items to Zotero with Chickenfoot. [...]</description>
		<content:encoded><![CDATA[<p>[...] We can now build on what was presented in the previous blog post: Adding items to Zotero with Chickenfoot. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
