Exporting subcollections as bibtex.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2016-12-09 19:57:58 +00:00 committed by SantiagoBragagnolo
parent 792f43afa6
commit 9ea0fde422
1 changed files with 16 additions and 3 deletions

View File

@ -62,7 +62,7 @@ ZoteroLibrary >> items [
]
{ #category : #querying }
ZoteroLibrary >> subcollectionInfoForKey: keyString [
ZoteroLibrary >> subcollection: keyString [
"I give the general info for a subcollection, given is alphanumeric key"
groupID ifNotNil:
@ -75,7 +75,20 @@ ZoteroLibrary >> subcollectionInfoForKey: keyString [
]
{ #category : #querying }
ZoteroLibrary >> subcollectionItemsForKey: keyString [
ZoteroLibrary >> subcollectionAsBibTeX: keyString [
"I give all the items for a subcollection, given is alphanumeric key, excluding notes and attachments, exported as bibtex"
groupID ifNotNil:
[ ^ (ZnEasy get: 'https://api.zotero.org/groups/',groupID,'/collections/',keyString,'/items?itemType=-note%20 || attachment &format=bibtex') contents utf8Decoded].
userID
ifNotNil: [
^ ZnEasy get: 'https://api.zotero.org/users/',userID,'/collections/',keyString,'/items?itemType=-note || attachment%20&format=bibtex' contents utf8Decoded]
ifNil: [ self inform: 'groupID or userID should be not nil. Please fill them to get a proper answer.'.
^ self ]
]
{ #category : #querying }
ZoteroLibrary >> subcollectionItems: keyString [
"I give all the items for a subcollection, given is alphanumeric key, including notes, attachments"
groupID ifNotNil:
@ -90,7 +103,7 @@ ZoteroLibrary >> subcollectionItemsForKey: keyString [
]
{ #category : #querying }
ZoteroLibrary >> subcollectionParentItemsForKey: keyString [
ZoteroLibrary >> subcollectionParentItems: keyString [
"I give all the items for a subcollection, given is alphanumeric key, excluding notes and attachments"
groupID ifNotNil: