From b55ad150149bc5b3ba58c4582c87855eb47f8e28 Mon Sep 17 00:00:00 2001 From: OffrayLuna Date: Sat, 10 Dec 2016 21:56:19 +0000 Subject: [PATCH] lastCollections instead of collections, to be more precise. --- src/Zotero/ZoteroLibrary.class.st | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/Zotero/ZoteroLibrary.class.st b/src/Zotero/ZoteroLibrary.class.st index 3959281..c1245f6 100644 --- a/src/Zotero/ZoteroLibrary.class.st +++ b/src/Zotero/ZoteroLibrary.class.st @@ -12,22 +12,11 @@ Class { #category : #Zotero } -{ #category : #querying } -ZoteroLibrary >> collections [ - "I return all the public collections for a particular group or user" - ^ NeoJSONReader fromString: (ZnEasy get: self collectionsURL) contents - - -] - { #category : #utility } ZoteroLibrary >> collectionsURL [ "I provide the common part of the collections URL for the Zotero API" - groupID ifNotNil: [ ^ ZoteroAPI baseURL,'groups/',groupID,'/collections/' ]. - userID - ifNotNil: [ ^ ZoteroAPI baseURL,'groups/',userID,'/collections/' ] - ifNil: [ self emptyValuesWarning ] + ^ self groupURL, '/collections/' ] { #category : #utility } @@ -63,6 +52,14 @@ ZoteroLibrary >> groupURL [ ifNil: [ self emptyValuesWarning ] ] +{ #category : #querying } +ZoteroLibrary >> lastCollections [ + "I return all the public collections for a particular group or user" + ^ NeoJSONReader fromString: (ZnEasy get: self collectionsURL) contents + + +] + { #category : #querying } ZoteroLibrary >> lastItems [ "I return the last 25 items of the public collections for a particular group or user"