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

Add algorithm to generate Level3URL automatically (for Juicebox Pro galleries) #435

Open
6 tasks
vdhamer opened this issue Aug 4, 2024 · 0 comments
Open
6 tasks
Assignees
Labels
Enhancement New feature or request JSON JSON data format related

Comments

@vdhamer
Copy link
Owner

vdhamer commented Aug 4, 2024

Fotogroep Waalre's originally loaded level2 membership data using an HTML table instead of fgWaalre.level2.json.

The level2.json file in turn contains - per member - a level3.json URL used to access the portfolio, and a featured image/thumbnail that is shown in the Portfolios screen. This works, but requires filling in level3URL and featuredImage and featuredThumbnail for every single club member.

This can optionally be simplified by providing club-level information (in the header of the level2.json file) which indicates the base URL to use for portfolio and featuredImage/Thumb.
So, if this level3BaseURL is available, creation of level2 files is simplified: just provide a list of members, the level3BaseURL, and an algorithm generates the full level3URL per user.

Benefits:

  • promotes consistency across clubs (which is always good for software)
  • level2.json club files that use this feature don't need to manually provide level3URL strings
  • partial automation of level3URL names prevents certain errors
    • e.g. " " becomes "_"
    • special characters in a member's name are replaced (e.g. "é" becomes "e")
  • also serves to automatically extract a featuredImage/featuredThumbnail

Subtasks:

  • add CoreData property level3BaseURL to the CoreData Organization entity
  • add level3BaseURL OrganizationOptionalFields.swift
  • add JSON level1 parsing for level3BaseURL to update value stored in CoreData
  • add JSON level2 parsing for level3BaseURL to update value stored in CoreData
  • fill level3URL programmatically if level3URL is empty and level3BaseURL present
  • fill featuredImage programmatically if image URL is empty and level3BaseURL present
@vdhamer vdhamer self-assigned this Aug 4, 2024
@vdhamer vdhamer added Enhancement New feature or request JSON JSON data format related labels Aug 4, 2024
@vdhamer vdhamer pinned this issue Aug 4, 2024
@vdhamer vdhamer unpinned this issue Aug 6, 2024
@vdhamer vdhamer changed the title Add algorithm to generate Level3URL automatically (for Jukebox galleries) Add algorithm to generate Level3URL automatically (for Juicebox Pro galleries) Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request JSON JSON data format related
Projects
None yet
Development

No branches or pull requests

1 participant