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

"Recently added" #95

Closed
nsandlin opened this issue Apr 18, 2023 · 10 comments
Closed

"Recently added" #95

nsandlin opened this issue Apr 18, 2023 · 10 comments

Comments

@nsandlin
Copy link
Owner

It would be useful to have a list at the top of the homepage of species added recently (within the last 3 or 4 months).

Could this be automated? It would be a list of the species names of Images uploaded with x days that have "primary" in the DetSubject field. If zero, the "Recently added: " label would go away (or div display:none).

recently-added

@peteherbst
Copy link
Collaborator

I can check the AdmDateModified or AdmDateInserted field(s), looking back n number of weeks/months and display those at the top. Either using the design you listed here, or we could have something like an extra block at the top that has the most recent records.

Thoughts?

@nsandlin
Copy link
Owner Author

I don't think we need anything very fancy design-wise - either a color to make it eye-catching or a border, whatever, so it people see that it's an update. The most important things are a) making sure that it's only new primary epigynum pics (not males or habitus or additional pics of species already listed on the main page), and b) having it close up when there's nothing new. ... Maybe it should say "Recently added or updated:" since that would cover corrections and replacment images.

@peteherbst
Copy link
Collaborator

Recently added block has been added to the homepage: https://linepig.fieldmuseum.org/

@peteherbst
Copy link
Collaborator

Reopening so we can fix which records should display.

@peteherbst
Copy link
Collaborator

I'm using the AdmDateModified field to determine which records have been recently updated. I'm not sure if I should be using a different field to get recent records.

@nsandlin
Copy link
Owner Author

Well, I'm not sure either. I can take a look next week and see if any bright thoughts occur to me. Although off the top, I think we want records added, not records modified (and only if they they have "primary" in the keywords).

Let's turn it off for now, and we can sort it out.

@nsandlin
Copy link
Owner Author

nsandlin commented May 31, 2023 via email

@peteherbst
Copy link
Collaborator

I've removed this from the homepage until we've figured this out too.

@peteherbst
Copy link
Collaborator

Implemented via 79560b9

@nsandlin
Copy link
Owner Author

Happiness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants