Extension defaults
A summary of the default parameters used by the extension to make API calls to Zotero, and format items in Roam.
About the limit
parameter
limit
parameterIn the Zotero API, the limit
parameter is the maximum number of results to return. It must be an integer from 1-100 ; the default value is 25 items.
Within the extension, the limit
parameter has a different meaning : it ends up determining the step size - i.e, the number of items that will be returned for each call made by the extension.
In the Zotero API
In the extension
Context
A single request is made
A series of API requests are made
Scope
Per-request
Per-request
Effect
limit
determines the maximum number of results to return for the request
limit
determines the maximum number of results to return for each request
Number of results returned
The minimum between nbResults
and limit
All results
The extension will make as many calls as necessary to obtain all the results that match the request, given the value of limit
. In most cases, you'll want to use limit=100
, to minimize the total number of requests that are made.
Since February 15th, all API calls beyond the initial request are made in parallel. This is done to improve performance for large datasets.
Item formatting in Roam
By default, the extension formats all items' data by calling the built-in getItemMetadata
function. If you'd like to define item type-specific formatting, use your own formatting functions, and/or assign a different default formatting function, start with the funcmap documentation.
getItemMetadata
getItemMetadata
is the extension's default formatting function, if the user hasn't defined any.
typemap
When using getItemMetadata
to format an item's data, the extension creates a Roam block describing the item's type : Type:: [[<Item type>]]
. By default, the <Item type>
label will be determined through the extension's default mapping, which comes from the melat0nin/zotero-roam-export plugin :
If you'd like to define your own taxonomy of item types, start with the typemap documentation.
Last updated