Skip to content

[Structured Citations] - Part 2 enhancements #11902

@Tribunal33

Description

@Tribunal33

Description:

  • Include specific context details that have been discovered that surround this developer task.

During testing some improvements were suggested to facilitate a more fluid user experience that were not in scope for the initial feature. It, additionally, addresses some requirements that were unclear.

  • [ ] Async functionality with jobs processing. (Currently there is a noticible slow down in response times for other users navigating the site when a large job like this is being processed) Will be addressed here: Queue running via CLI worker does not trigger plugin hooks #9345
  • Arxiv does not need URL validation - arXiv:2401.12345 is valid. (Unclear what should be validated for this field)
  • Increase the size of the citation input field. Feels too small for the amount of information and spacing between citations.
  • Disable Metadata lookup if it is enabled site-wide in settings for author.
  • Allow author to manage (add and delete) citations in the workflow publication tab.
  • Editing citation should have more informative validation warnings for Type and source type or have auto complete or dropdown list
  • Editing citation fields should limit the max number of characters for these free text fields. (Security general best practice is to limit user input) A GitHub discussion should be opened, so that we all discuss it and find a general solution and a way to go forward
    https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html#:~:text=When%20designing%20regular%20expression%2C%20be,Allow%20List%20Regular%20Expression%20Examples
  • Should limit to 100 citations at a time (for both security and navigating the site while it is processing is sluggish). Similar to max text length except for separated based on new lines. You shouldn't be able to add more until it is done processing the first batch. The problem is with job processing that will be addressed here: Queue running via CLI worker does not trigger plugin hooks #9345

Steps to test the changes:
These steps can include user interactions, database queries and API requests
Precondidtion: Workflow Settings > Submission > Metadata > References > Enable References > Enable Metadata lookup.

  • Not a single set of steps to cover all the extra requested improvements. (I could break it out into more tickets if need be)
  1. Async - Process 100+ citations then swap to another browser and navigate the site.
  2. After processing the citation select Edit and add the Arxiv reference without a URL.
  3. After processing the citation select 3 dots > Edit and there are a few fields which difficult to understand what is expected. Like type and source. Kept getting an warning when I added something wrong.
  4. Add whatever the MaxLength +1 of the field is and observe the warning and is won't save the form.

Solution: What the proposed solutions are and additional affected areas
Solutions described above.

What application are you using?
OJS 3.6

Additional information
Please add any screenshots, videos or other information we can use to understand this dev task report.

  • SourceType values : (enum: [book series,conference,ebook platform,journal,metadata,other,repository]
    Field references for Type field controlled vocab

Enum type

crossref openalex OJS
book book book
book-chapter book-chapter book-chapter
book-part book-part
book-section book-section
book-series book-series
book-set book-set
book-track book-track
component component
database database
dataset dataset dataset
dissertation dissertation dissertation
edited-book edited-book
editorial editorial
erratum erratum
grant grant grant
journal journal
journal-article article journal-article
journal-issue journal-issue
journal-volume journal-volume
letter letter
libguides libguides
monograph monograph
other other other
paratext paratext
peer-review peer-review peer-review
posted-content posted-content
preprint preprint
proceedings proceedings
proceedings-article proceedings-article
proceedings-series proceedings-series
reference-book reference-book
reference-entry reference-entry reference-entry
report report report
report-component report-component
report-series report-series
retraction retraction
review review
standard standard standard
supplementary-materials supplementary-materials

PRs:

UI fix, to track the processing status:

Fix 2: copy citations on publication versioning, allow citations editing, deleting, reprocessing when publication published

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement:1:MinorA new feature or improvement that can be implemented in less than 3 days.UI/UXIssues affecting the user interface/user experience

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions