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)

Conditiongate
  • Continue only if event.did equals {{self}}
Fetch recorddocument- Fetches the document data
Lookup
{{event.commit.record.subject}}
VariableCollectionURI
Value
Hidden
Note
ATURI for the Semble Collection of destination
Fetch recordsembleCollection- Fetches data from the Semble Collection
Lookup
{{CollectionURI}}
Conditionbranch
  • If document.record.site starts with http - 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
Fetch recordpublication- 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}}"
    }
  }
}