Brown-University-Library / usepweb_project

MIT License
0 stars 5 forks source link

Add a new item - AUCT - to the OTHER category on the Collections page #87

Open emylonas opened 1 year ago

emylonas commented 1 year ago

Landing page, which displays a list of collections listed by state: usepigraphy.brown.edu This page also has a second list, labelled "OTHER" right below the list of states at the top of the page. We would like to add a second type of non-state collection, whose label will be "AUCT" (stands for auction).

These lists are generated in the following file: ./usep_app/usep_templates/_site/collectionS.html

The state menus are handled starting on line 10, where the code iterates over the region codes from the Django database, but excludes the "ITA" code. "ITA" is handled in the next section, starting at line 20.

I know this is a kludge, but can we have it exclude "AUCT" as well as "ITA" in the state section, and then add the "AUCT" check explicitly "ITA", probably after line 25.

Similarly, "AUCT" has to be added explicitly after "ITA" when the actual collections are listed, so it would go right before line 64. Again, checking for "AUCT" and listing collections that have that region code.

birkin commented 1 year ago

@emylonas -- i haven't looked at the code, but what you describe above sounds very reasonable. I just tentatively scheduled myself to work on this the week of Monday March 13.