-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adds new features #23
base: stable-3_3_0
Are you sure you want to change the base?
Adds new features #23
Conversation
Signed-off-by: Jhon <[email protected]> Signed-off-by: Vitoria <[email protected]>
It can now request the number of annotations of a galley to the Hypothesis API Signed-off-by: Jhon <[email protected]> Signed-off-by: Vitoria <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Vitoria <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Vitoria <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Also changes some visual styling Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Also changes the path for annotations page Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Richard <[email protected]> Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by: Richard <[email protected]>
Signed-off-by: Jhon <[email protected]> Signed-off-by> Richard <[email protected]>
Issue: documentacao-e-tarefas/scielo#396 Signed-off-by: Lucas Anselmo <[email protected]> Signed-off-by: Laís Reis <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
templates/submissionAnnotations.tpl
Outdated
</div> | ||
{/if} | ||
<span class="annotation_content"> | ||
<blockquote>{$annotation->content}</blockquote> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether annotations should be allowed to contain limited HTML, but this should probably receive at least limited escaping for XSS attacks -- and probably also the other annotation attributes (user
and target
) too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jhon <[email protected]>
Thanks, @JhonathanLepidus! @defstat, would you mind taking a deeper look? |
@JhonathanLepidus two questions on this: I can see that the description of the issue defines
|
@defstat sorry for missing this information. In fact, there should be an integration with the theme plugin in order for it to work. The integration is the calling of the hook For example, we did this implementation in the SciELO Preprints theme: example. It should work in other applications besides OPS. We did it this way because it was simpler for us, but I think it can be a problem for others to use. Do you think we should change it? |
We were able to identify an alternative implementation. We can change the plugin so that it uses template filters to add the button with the number of annotations next to the galley buttons. This way, this feature could work on both platforms (OJS/OPS) without needing to be linked to a specific theme. |
Hi @JhonathanLepidus. Thanks for that - Yes, the plugins should be "self contained", so your initial approach should be managed somehow. @jardakotesovec is a better person to talk about front end implementations, so I leave that for him. Do you plan to migrate that change to Also could you provide some screenshots on the intended end-result of the features this implementation adds? |
Also removes dependency for others plugins Signed-off-by: Jhon <[email protected]>
Signed-off-by: Jhon <[email protected]>
Hi @defstat We have updated the code in the source branch of this pull request, in order to bring the following improvements:
The features have also been adapted to the version compatible with OJS/OPS 3.4.0 and are ready to be shipped at a later moment. |
Hi @JhonathanLepidus! Thanks for all that work! It looks great, and I see that you have adapted the newer/more fluent syntax regarding Only one question about the caching - is the caching mechanism going to affect the realtime update of the annotation display? If you have PRs for 3.4 version, please don't hesitate to add those in #22 so that they can be reviewed also. |
Hi @defstat , thanks for the feedback. The caching mechanism does not affect the display of annotations when viewing the PDF. The cached items are only used for display on the annotations page and do not affect other parts of the application. We will open a pull request with our contributions to 3.4.0. Edit: PR opened |
@JhonathanLepidus thanks for all this work. Can you share the state of this change? |
HI @defstat ! The changes are ready to be merged. They're present in this pull request (for 3.3.0 version) and in this other one (for 3.4.0 version). If you have any other doubt, please contact me. |
This PR adds the following features:
These features were discussed in the issue