<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; zotero</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/zotero/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>在mac上同步ubuntu上的zotero数据</title>
		<link>http://wlx.westgis.ac.cn/650/</link>
		<comments>http://wlx.westgis.ac.cn/650/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 13:06:43 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unison]]></category>
		<category><![CDATA[zotero]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=650</guid>
		<description><![CDATA[在苹果mba上需要同步我ubuntu台式机上的相关数据，zotero也是其中重要的一项。 之前在ubuntu笔记本上和ubuntu台式机上同步比较简单，建立同样的用户名，文档地址在台式机上和笔记本上是一致的，然后使用unison把对应的数据目录自动同步过来就可以了，包括zotero目录以及对应的documents目录。但在mba上，用户默认目录是/Users/用户名，而不是linux下的/home/用户名模式，为此还打了apple的400服务电话，也没有解决。后来在ccf论坛上求助解决了。原来/home目录在mac下有特殊的用处，若需要处理，需要修改： 修改/etc/auto_master文件, 注释掉/home那一行, 重启. 这样/home就变成正常目录了. 设置完后需要重启mac，然后就可以按照linux模式建立对应的/home/用户名目录，然后在用ln工具把Users下的对应目录链接过来。]]></description>
			<content:encoded><![CDATA[<p>在苹果mba上需要同步我ubuntu台式机上的相关数据，zotero也是其中重要的一项。<br />
之前在ubuntu笔记本上和ubuntu台式机上同步比较简单，建立同样的用户名，文档地址在台式机上和笔记本上是一致的，然后使用unison把对应的数据目录自动同步过来就可以了，包括zotero目录以及对应的documents目录。但在mba上，用户默认目录是/Users/用户名，而不是linux下的/home/用户名模式，为此还打了apple的400服务电话，也没有解决。后来在<a href="http://bbs.et8.net/bbs/showthread.php?t=1015569">ccf论坛</a>上求助解决了。原来/home目录在mac下有特殊的用处，若需要处理，需要修改：</p>
<blockquote><p>修改/etc/auto_master文件, 注释掉/home那一行, 重启. 这样/home就变成正常目录了.
</p></blockquote>
<p>设置完后需要重启mac，然后就可以按照linux模式建立对应的/home/用户名目录，然后在用ln工具把Users下的对应目录链接过来。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/650/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zotero中文参考文献样式使用</title>
		<link>http://wlx.westgis.ac.cn/615/</link>
		<comments>http://wlx.westgis.ac.cn/615/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 01:58:12 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[zotero]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=615</guid>
		<description><![CDATA[在zotero中的官方参考样式中有中文标准的（Chinese-GB7714-2005-Numeric.csl），但在使用的过程中发现，在OpenOffice中插入的时候，前置的“[”符号没有上标化。 经过搜索发现，已经有相应的讨论：http://forums.zotero.org/discussion/6317/automatically-superscript-citations-in-word-2007/ 具体的修改方法如下： &#60;layout delimiter="," vertical-align="sup"&#62; &#60;text prefix="[" suffix="]” variable=”citation-number” /&#62; &#60;/layout&#62; &#60;/citation&#62;]]></description>
			<content:encoded><![CDATA[<p>在zotero中的官方参考样式中有中文标准的（Chinese-GB7714-2005-Numeric.csl），但在使用的过程中发现，在OpenOffice中插入的时候，前置的“[”符号没有上标化。</p>
<p>经过搜索发现，已经有相应的讨论：http://forums.zotero.org/discussion/6317/automatically-superscript-citations-in-word-2007/</p>
<p>具体的修改方法如下：</p>
<p>&lt;layout  delimiter="," vertical-align="sup"&gt;<br />
&lt;text prefix="[" suffix="]” variable=”citation-number”  /&gt;<br />
&lt;/layout&gt;<br />
&lt;/citation&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/615/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>实现了一个SCAR的zotero translator</title>
		<link>http://wlx.westgis.ac.cn/603/</link>
		<comments>http://wlx.westgis.ac.cn/603/#comments</comments>
		<pubDate>Wed, 27 May 2009 14:55:30 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[RS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[SCAR]]></category>
		<category><![CDATA[translator]]></category>
		<category><![CDATA[zotero]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=603</guid>
		<description><![CDATA[SCAR: Science of Cold and Arid Regions 是所里新办的一个期刊，看了几篇文章，打算摘录下来，zotero却不支持，需要自己再写一个转换器(translator)，花了一下午的时间，终于搞出来了，暂时不支持搜索功能。 把下面的代码保存到zotero下的translator目录，给个名字，如SCAR.js，然后重新启动一下FIREFOX，应该就可以使用了。 { "translatorID":"d5770df3-b41a-45cb-bb3a-261948c9af49", "translatorType":4, "label":"SCAR", "creator":"Liangxu Wang&#60;wangliangxu＠gmail.com&#62;", "target":"http://www.scar.ac.cn/hhkxen/ch/reader", "minVersion":"1.0", "maxVersion":"", "priority":100, "inRepository":true, "lastUpdated":"2009-5-27 22:33:00" } function detectWeb(doc, url) { var articleRe = /view_abstract.aspx/; var s = articleRe.exec(url); if(s) { return "journalArticle"; } &#8230; <a href="http://wlx.westgis.ac.cn/603/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SCAR: Science of Cold and Arid Regions 是所里新办的一个期刊，看了几篇文章，打算摘录下来，zotero却不支持，需要自己再写一个转换器(translator)，花了一下午的时间，终于搞出来了，暂时不支持搜索功能。<br />
把下面的代码保存到zotero下的translator目录，给个名字，如SCAR.js，然后重新启动一下FIREFOX，应该就可以使用了。</p>
<p><code>{<br />
    "translatorID":"d5770df3-b41a-45cb-bb3a-261948c9af49",<br />
    "translatorType":4,<br />
    "label":"SCAR",<br />
    "creator":"Liangxu Wang&lt;wangliangxu＠gmail.com&gt;",<br />
    "target":"http://www.scar.ac.cn/hhkxen/ch/reader",<br />
    "minVersion":"1.0",<br />
    "maxVersion":"",<br />
    "priority":100,<br />
    "inRepository":true,<br />
    "lastUpdated":"2009-5-27 22:33:00"<br />
}</p>
<p>function detectWeb(doc, url) {<br />
    var articleRe = /view_abstract.aspx/;<br />
    var s = articleRe.exec(url);</p>
<p>    if(s) {<br />
        return "journalArticle";<br />
    } else {<br />
        return "multiple";<br />
    }</p>
<p>    return false;<br />
}</p>
<p>function scrape(doc) {<br />
    var nsResolver = null;</p>
<p>    var itemType = "journalArticle";<br />
    var newItem = new Zotero.Item(itemType);<br />
    Zotero.debug(itemType);</p>
<p>    // 标题<br />
    var title = doc.getElementById('EnTitle').textContent;<br />
    Zotero.debug("Title:"+title);<br />
    newItem.title = title;</p>
<p>    // 附件，网页快照<br />
    var snapName = title + " (SCAR)";<br />
    Zotero.debug(snapName);<br />
    newItem.attachments.push({document:doc, title:snapName, mimeType:"text/html"});<br />
    //Zotero.debug(doc);</p>
<p>    //关键词<br />
    var keys=doc.getElementById('EnKeyWord');<br />
    var tags=keys.getElementsByTagName('u');<br />
    var i=0;<br />
    for(i=0;i&lt;tags.length;i++){<br />
      newItem.tags.push(tags[i].textContent);<br />
      Zotero.debug("tag:"+tags[i].textContent);<br />
    }<br />
    //摘要<br />
    var abstract=doc.getElementById('EnAbstract');<br />
    newItem.abstractNote = Zotero.Utilities.trim(abstract.textContent);<br />
    // 出版社<br />
    newItem.publicationTitle = 'Sciences in Cold and Arid Regions';<br />
    newItem.ISSN='1674-3822';<br />
    newItem.url = doc.location.href;<br />
    //出版时间<br />
    var ref=doc.getElementById('ReferenceText').textContent;<br />
    if (ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./))<br />
    {<br />
      newItem.volume=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[2];<br />
      newItem.issue=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[3];<br />
      newItem.pages=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[4];<br />
      newItem.date=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[1];<br />
    }<br />
    //作者<br />
    if (ref.match(/(.+),\d+\.+/))<br />
    {<br />
      authors=ref.match(/(.+),\d+\.+/)[1].split(',');<br />
      for(i=0;i&lt;authors.length-1;i++) {<br />
        newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[i], "author", true));<br />
      }<br />
      author=authors[authors.length-1].split('and');<br />
      for(i=0;i&lt;author.length;i++) {<br />
        newItem.creators.push(Zotero.Utilities.cleanAuthor(author[i], "author", true));<br />
      }<br />
    }<br />
    Zotero.debug("finished.");<br />
    newItem.complete();<br />
}</p>
<p>function doWeb(doc, url) {<br />
    var namespace = doc.documentElement.namespaceURI;<br />
    var nsResolver = null;</p>
<p>    if(detectWeb(doc, url) == "multiple") {<br />
        Zotero.debug("Enter multiple~");<br />
        // TODO: implement the multiple function.<br />
    } else {<br />
        var urls = [url];<br />
    }<br />
    Zotero.debug(urls);<br />
    // 下面对每条url进行解析<br />
    Zotero.Utilities.processDocuments(urls, scrape, function() { Zotero.done(); });<br />
    Zotero.wait();<br />
}</code><br />
也可以直接下载：<a href='http://wlx.westgis.ac.cn/uploads/2009/05/scar.js'>scar.js</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/603/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

