Save to Semble standard.site documents saved for later on Standard Reader
app.standard-reader.bookmark- Lexicon
app.standard-reader.bookmark- Operations
- Record created
Steps (10)
- Continue only if
event.didequals{{self}}
document- Fetches the document data- Lookup
{{event.commit.record.subject}}
CollectionURI- Value
- Hidden
- Note
- ATURI for the Semble Collection of destination
sembleCollection- Fetches data from the Semble Collection- Lookup
{{CollectionURI}}
- If
document.record.sitestarts withhttp- Checks if it's a document from a publication or loose document
Then
Save on SembleAction 1#1card1
- Page URL
{{document.record.site}}{{document.record.path}}
Create a recordAction 2#1
- Target Collection
network.cosmik.collectionLink- Record Template
{ "card": { "$type": "com.atproto.repo.strongRef", "cid": "{{card1.cid}}", "uri": "{{card1.uri}}" }, "addedAt": "{{now}}", "addedBy": "{{self}}", "createdAt": "{{now}}", "collection": { "$type": "com.atproto.repo.strongRef", "cid": "{{sembleCollection.cid}}", "uri": "{{sembleCollection.uri}}" }, "provenance": { "$type": "network.cosmik.defs#provenance", "via": { "$type": "com.atproto.repo.strongRef", "cid": "{{card1.cid}}", "uri": "{{card1.uri}}" } } }
Otherwise
publication- Fetches the publication data- Lookup
{{document.record.site}}
Save on SembleAction 3#2card2
- Page URL
{{publication.record.url}}{{document.record.path}}
Create a recordAction 4#2
- Target Collection
network.cosmik.collectionLink- Record Template
{ "card": { "$type": "com.atproto.repo.strongRef", "cid": "{{card2.cid}}", "uri": "{{card2.uri}}" }, "addedAt": "{{now}}", "addedBy": "{{self}}", "createdAt": "{{now}}", "collection": { "$type": "com.atproto.repo.strongRef", "cid": "{{sembleCollection.cid}}", "uri": "{{sembleCollection.uri}}" }, "provenance": { "$type": "network.cosmik.defs#provenance", "via": { "$type": "com.atproto.repo.strongRef", "cid": "{{card2.cid}}", "uri": "{{card2.uri}}" } } }