Skip to content

Commit

Permalink
Fix anno page id.
Browse files Browse the repository at this point in the history
  • Loading branch information
markpbaggett committed Jan 2, 2025
1 parent 8833ab8 commit 2a769d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/recipes/0266-full-canvas-annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| **Recipe:** | [https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/](https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/) |
| **JSON-LD:** | [https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/manifest.json](https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/manifest.json) |

### Method 1 -
### Method 1 - Use make_annotation() helper
```python
--8<-- "docs/recipes/scripts/0266-full-canvas-annotation-method1.py"
```
5 changes: 3 additions & 2 deletions docs/recipes/scripts/0266-full-canvas-annotation-method1.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
id=f"{base_url}/canvas-1/annopage-2/anno-1",
motivation="commenting",
body=anno_body,
target=canvas.id
target=canvas.id,
anno_page_id=f"{base_url}/canvas-1/annopage-2"
)

print(manifest.json(indent=2))
print(manifest.json(indent=2))

0 comments on commit 2a769d1

Please sign in to comment.