Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with selection of diary entries for multiple entries from the same date #481

Open
peterstadler opened this issue Sep 3, 2024 · 0 comments
Labels
docType:diaries bugs and features related to the display of diary entries

Comments

@peterstadler
Copy link
Member

Joachim reported:

Wenn man im Kalender auf 31. Dez. 1810 klickt […], wird nicht der Text zum Tag, sondern die Moralische Übersicht angezeigt. Es müsste A064708 angezeigt werden

The root cause is that there's no select option in the frontend for choosing between several options when clicking on a calendar date. The backend will happily return all possible targets yet the frontend currently just asks for one, see limit=1 at

function jump2diary(dateText) {
const url = $('#datePicker').attr('data-api-base') + "/documents/findByDate?docType=diaries&limit=1&fromDate=" + dateText + "&toDate=" + dateText;
$.getJSON(url, function(data) {
self.location=data[0].uri + '.html';
})
}

@peterstadler peterstadler added the docType:diaries bugs and features related to the display of diary entries label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docType:diaries bugs and features related to the display of diary entries
Projects
None yet
Development

No branches or pull requests

1 participant