diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid
index 0a05ca6e1..d01b6aadb 100644
--- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid
+++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid
@@ -1,6 +1,16 @@
title: WidgetMessage: tm-http-request Example - Zotero
tags: $:/tags/Macro
+\define select-zotero-group()
+Specify the Zotero group ID to import
+<$edit-text tiddler="$:/config/zotero-group" tag="input"/> or
+<$select tiddler="$:/config/zotero-group">
+
+
+
+$select>
+\end
+
\define zotero-save-item(item)
<$action-createtiddler
$basetitle={{{ =[[_zotero_import ]] =[- jsonget[key]] =[[ ]] =[
- jsonget[title]] +[join[]] }}}
@@ -8,6 +18,9 @@ tags: $:/tags/Macro
tags="$:/tags/ZoteroImport"
>
<$action-setmultiplefields $tiddler=<> $fields="[
- jsonindexes[]addprefix[zotero-]]" $values="[
- jsonindexes[]] :map[
- jsongetelse[.XXXXX.]]"/>
+ <$list filter="[
- jsonindexes[creators]]" variable="creatorIndex">
+ <$action-setmultiplefields $tiddler=<> $fields="[
- jsonget[creators],,[creatorType]addprefix[zotero-]]" $values="[
- jsonget[creators],,[lastName]] [
- jsonget[creators],,[firstName]] +[join[, ]] :else[
- jsonget[creators],,[name]] "/>
+ $list>
$action-createtiddler>
\end zotero-save-item
@@ -40,32 +53,53 @@ tags: $:/tags/Macro
\end progress
\define request-url()
-https://api.zotero.org/groups/27508/items/?format=json&sort=title
+\rules only transcludeinline transcludeblock filteredtranscludeinline filteredtranscludeblock
+https://api.zotero.org/groups/{{$:/config/zotero-group}}/items/
\end request-url
-<$action-sendmessage
- $message="tm-http-request"
- url={{{ [setquerystring[start],<__start__>setquerystring[limit],<__limit__>] }}}
- method="GET"
- header-accept="application/json"
- bind-status="$:/temp/zotero/status"
- bind-progress="$:/temp/zotero/progress"
- oncompletion=<>
- onprogress=<