stable
Clone or download
Read-only
Since frontend of Documents cannot know the existence of artidoc, the uri to move an item is given by its REST representation. That way we don't have to guess the uri based on an "unknown" type. If you have an artidoc document in your Document tree, you can cut/paste it to move it to another folder. The same for other document types (no change on that). Note: the copy/paste deserves its own contribution. Part of story #37542: display a read only Document Change-Id: Iff5468fc8a08d454e0d435ef4d703a16f2a14597
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/include/Artidoc/REST/v1/ArtidocResource.php | +79 | −0 | Go to diff View file |
M | plugins/artidoc/include/artidocPlugin.php | +9 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/ItemRepresentation.php | +4 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/ItemRepresentationBuilder.php | +3 | −1 | Go to diff View file |
A | plugins/docman/include/REST/v1/MoveItem/MoveItemUriVisitor.php | +110 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/MoveItem/MoveOtherItemUriRetriever.php | +45 | −0 | Go to diff View file |
M | plugins/docman/tests/unit/REST/v1/ItemRepresentationCollectionBuilderTest.php | +4 | −0 | Go to diff View file |
M | plugins/document/scripts/document/api/move-rest-querier.test.ts | +3 | −63 | Go to diff View file |
M | plugins/document/scripts/document/api/move-rest-querier.ts | +1 | −31 | Go to diff View file |
M | plugins/document/scripts/document/stores/clipboard.test.ts | +15 | −73 | Go to diff View file |
M | plugins/document/scripts/document/stores/clipboard.ts | +9 | −22 | Go to diff View file |
M | plugins/document/scripts/document/stores/types.ts | +1 | −0 | Go to diff View file |
M | plugins/document/scripts/document/type.ts | +1 | −0 | Go to diff View file |