Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description, Context and related Issue
The function
edition:details($uri)?name
would return an element node instead of a string value, thus the endpointgetEdition.xql
returns e.g."name" : "<editionName xmlns=\"http://www.edirom.de/ns/1.3\">Pintos-Edirom von Salome Obert</editionName>"
(among other properties).This PR fixes this to return only the string value and refactors another function to not duplicate code.
Steps to reproduce
Check the Ajax request to
![Bildschirmfoto 2025-01-14 um 18 41 29](https://private-user-images.githubusercontent.com/2247936/403071805-ea67eac0-4d52-4f54-b5a2-0bd13ada1e97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3NTk5NTksIm5iZiI6MTczODc1OTY1OSwicGF0aCI6Ii8yMjQ3OTM2LzQwMzA3MTgwNS1lYTY3ZWFjMC00ZDUyLTRmNTQtYjVhMi0wYmQxM2FkYTFlOTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDVUMTI0NzM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjQ0MmE4NjE0YjkxMTgzN2RhZWVmODc0NzI5YjViZGM4N2Y1NzE1NzA4NGQ3MmMyMmE2OGY3NTYzZmViZGY1ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.olmbjMGn-hwKUTix4t0e2aGgISfA_sWSPnfkWwl31lA)
getEdition.xql
which is loaded at every star of the Edirom:(The screenshot already displays the fixed version)
How Has This Been Tested?
With the Pintos data
Types of changes
Overview