Git Product home page Git Product logo

Comments (12)

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024 1

https://github.com/MuiseDestiny/zotero-citation/blob/bootstrap/src/modules/citation.ts#L156

public async initSearch(sessionID: string) {
		let search = new Zotero.Search();
		search.addCondition("title", "contains", "");
		await search.search();
		search.name = sessionID
		const session: SessionData =  this.sessions[sessionID]
		session.search = search = search.clone(1)
		await search.saveTx({ skipSelect: true })
		this.filterFunctions.push(
			(items: Zotero.Item[]) => {
				// 当前处在伪搜索文件夹中才进行拦截
				let selectedSearch = ZoteroPane.collectionsView.getSelectedSearch()
				if (selectedSearch.key == search.key) {
					const ids = Object.keys(session.idData).map(id => Number(id))
					return items.filter(item=>ids.indexOf(item.id) != -1)
				} else {
					return items
				}
			}	
		)
		window.setTimeout(async () => {
			await this.clearSearch()
		}, 233)
	}

原因是这个函数接收的sessionID是undefined,等适配Mac,就不会有这个bug了。

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024 1

Ok,I will solve it.

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024

我是插件开发者,不是Zotero软件开发者

from zotero-citation.

llity avatar llity commented on May 29, 2024

我是插件开发者,不是Zotero软件开发者

破案了:citation创建了没有名称的文件夹,删除文件夹就能同步了。
https://forums.zotero.org/discussion/comment/432447#Comment_432447
Yeah,it's the one of the plugin called"zotero citation" https://github.com/muisedestiny/zotero-citation#readme
The author declared the possible disfunction on Mac, because the author don't have device based on Mac Os. So when i dragged the article into word to cite, a purple citation folder was created. I think that is the reason folders without names were created, and sync stopped.

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024

我是插件开发者,不是Zotero软件开发者

破案了:citation创建了没有名称的文件夹,删除文件夹就能同步了。 https://forums.zotero.org/discussion/comment/432447#Comment_432447 Yeah,it's the one of the plugin called"zotero citation" https://github.com/muisedestiny/zotero-citation#readme The author declared the possible disfunction on Mac, because the author don't have device based on Mac Os. So when i dragged the article into word to cite, a purple citation folder was created. I think that is the reason folders without names were created, and sync stopped.

sorry,还真是citation问题,我有时间尝试适配mac

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024

没有名称的文件夹是可以在Zotero里看到的吗

from zotero-citation.

llity avatar llity commented on May 29, 2024

我是插件开发者,不是Zotero软件开发者

破案了:citation创建了没有名称的文件夹,删除文件夹就能同步了。 forums.zotero.org/discussion/comment/432447#Comment_432447 Yeah,it's the one of the plugin called"zotero citation" muisedestiny/zotero-citation#readme The author declared the possible disfunction on Mac, because the author don't have device based on Mac Os. So when i dragged the article into word to cite, a purple citation folder was created. I think that is the reason folders without names were created, and sync stopped.

sorry,还真是citation问题,我有时间尝试适配mac

插件都非常实用,昨日已赞赏 :) , 兼容性和稳定性继续加油。不知道后面升级Zotero v7在适配方便会不会有大的变化。

from zotero-citation.

llity avatar llity commented on May 29, 2024

没有名称的文件夹是可以在Zotero里看到的吗

有一个空名称的saved search文件夹,手动删除就能同步了。

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024

感谢支持,感谢理解。但是我看到官方好像不太在乎你对引用功能的请求哈哈哈

from zotero-citation.

MuiseDestiny avatar MuiseDestiny commented on May 29, 2024

这么有用的功能官方做效果会更好。

from zotero-citation.

llity avatar llity commented on May 29, 2024

@MuiseDestiny 官方不知道是不是人手不足,免费软件,估计佛系更新,issues一大推。Zotero的稳定性堪忧,看V7怎么样。很多功能N年都没合并,比如meta update。缺少功能只能靠三方插件了,加油!

from zotero-citation.

dstillman avatar dstillman commented on May 29, 2024

Details in the linked commit — basically, the plugin attempts two saves in rapid succession, one with an empty name — but I've added an extra check in Zotero to prevent broken searches from being saved. This should still be fixed in zotero-citation ASAP, since it will continue to break syncs until Zotero 6.0.24 is released, and even after that it will result in randomly named searches that are never deleted every time someone uses the word processor plugin in a new document. Even if you can't reproduce this right away, you should update the plugin to avoid ever assigning an empty value as the search name.

from zotero-citation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.