buda-base / public-digital-library

http://library.bdrc.io
4 stars 6 forks source link

new Tradition page #876

Open berger-n opened 3 months ago

berger-n commented 3 months ago

first draft of the new Tradition page (only top level navigation is enabled for now, from the top menu): https://library-dev.bdrc.io/tradition/bo

simplescreenrecorder-2024-06-03_17 53 10 mkv


seemed a good idea to handle the data in the config file:

image

eroux commented 3 months ago

the config file is a very good idea yes!

berger-n commented 3 months ago

added the Recent Acquisitions widget showing the 10 latest scans, with a timeframe selector: https://library-dev.bdrc.io/tradition/bo/

simplescreenrecorder-2024-06-05_18 17 15 mkv

the query is randomly returning 500 though, so hardly usable for now...

but I think we can use the one that is used on the results page, which is working even with ~5000 results, for the last 6 months!

anyways we'll need to customize it according to the tradition (or we'll do that once we have the new search ui?)

berger-n commented 3 months ago

just added all the missing items in the config file, using the data in ontology when available so it can be easily displayed in the right language: https://library-dev.bdrc.io/tradition/bo/

simplescreenrecorder-2024-06-06_17 58 51 mkv


image


image

berger-n commented 2 months ago

added routing for subpages, and breadcrumbs: https://library-dev.bdrc.io/tradition/bo/persons/school/

simplescreenrecorder-2024-06-10_18 44 36 mkv

berger-n commented 2 months ago

added first level of topics and more content in sublevels in persons/places: https://library-dev.bdrc.io/tradition/bo/places/type/ (with some queries already working as is)

simplescreenrecorder-2024-06-11_18 17 25 mkv

eroux commented 2 months ago

very nice start!!

berger-n commented 2 months ago

the topics are now browseable: https://library-dev.bdrc.io/tradition/bo/texts/topic/bdr:O9TAXTBRC2016052KG226920/ (a [N] marks topics having a subpage with N direct subtopics, and when clicking a leaf topic it opens the current related search results)

simplescreenrecorder-2024-06-12_18 04 38 mkv


now regarding the collections, I think can manually add them from tbrc.org (grouping them in Third Party Collections, Core Text Collections and Print Masters categories)

but regarding browsing the texts by author, I'm not sure how to proceed, I don't think we can just display thousands of authors like in tbrc.org, can we?

image

at least we could use the Tibetan letters to group the authors in top categories (as long as there's no Western nor Chinese author in this list, is there?)

eroux commented 2 months ago

browsing by topic looks perfect, thanks a lot!

for collections let's not have this division but instead only have the third party collections of tbrc.org (and a few others I'll list) directly under the root. We can skipt the Wisdom print masters and core text collections

let's remove the browsing texts by authors for now I think, it doesn't make much sense for the current database (the data on tbrc.org was last updated in 2014, the size of the db has been multiplied probably by 10 since)

berger-n commented 2 months ago

I think I've put all the data I could take from tbrc.org (added 3rd party collections and all remaining place types): https://library-dev.bdrc.io/tradition/bo/texts/collection/

simplescreenrecorder-2024-06-13_16 47 44 mkv


now I can sort topics better, and there could be something saying "nothing for the past 7 days" here: (maybe automaticaly switch to 30 days in that case? wdyt?)

image

eroux commented 2 months ago

Looks excellent, thanks! I agree with your suggestion yes (switching to 30 days, or if still nothing then an error message)

roopeux commented 2 months ago

Great job @berger-n! In recent acquisitions

eroux commented 2 months ago

Showing the most recent additions whatever the age is a very good idea!

The dropdown has been asked by some users though... or, well, more precisely the ability to see what was added on the website in a certain timeframe

Good idea to filter the recent additiond by language on the Tibetan page too, that will be an important improvement!

Nicolas I don't think we have a good way to do that right now, let's make these queries on opensearch later

roopeux commented 2 months ago

@berger-n Can we copy sorting of different sections from TBRC in general?

For the By Topic page, I suggest the following sort order to start with (to be discussed), updated in Figma.

image
roopeux commented 2 months ago

@berger-n On the By Topic page, please make the thumbnails 75*75px instead of 100. They are taking too much attention from text and do not help navigation. I just updated this in Figma too.

berger-n commented 2 months ago

just made all the feasible changes I think: https://library-dev.bdrc.io/tradition/bo/

simplescreenrecorder-2024-06-14_18 18 31 mkv


regarding the sorting of sections in TBRC:

roopeux commented 2 months ago

@berger-n sorting is a big factor in UX, and human mind naturally finds the logic of different lists, which is very important in those lists to be beneficial.

Alphabetical is an easy way but only sometimes the most helpful. It really depends on the context. Alphabetical underlines that BDRC considers all content equal, like with the Tibetan schools, but in other contexts a better logic would be from important to less important, from generic to specific, from large to small amount of material, from old to new, from popular to less popular, from clear to obscure, from easy to difficult, whatever works in the context.

And yes, this would need to happen on deep levels too, although our taxonomies are sometimes such a hot mess that they would require a some work, mentioned by Jann.

TBRC sorting is probably not perfect but it is the best we have. I saw you already implemented some of this and it immediately got much better.

roopeux commented 2 months ago

@berger-n, The only thing I wanted to change from TBRC is the main thumbnails on the By Topic page. See Figma. I think it is better to start with the Canon and go from general to specific, but also grouping similar topics together.

eroux commented 2 months ago

@berger-n I can add some info in the data for the order of topics, no need to add big config files

eroux commented 2 months ago

nevermind, I can add that kind of information on the intermediate nodes of the taxonomy but not on the leaves (the topic themselves)... let's use a big config file for now, maybe the same as on the DLDs? (that could use the same order too). The order can be derived from the outline of the old website: https://legacy.tbrc.org/xmldoc?rid=O9TAXTBRC201602

berger-n commented 2 months ago

derived a rank parameter from the xml data (the line number actually, added by this script): https://library-dev.bdrc.io/tradition/bo/texts/topic/bdr:O9TAXTBRC2016052KG225324/

image

https://github.com/buda-base/public-digital-library/blob/b186cff8de892dfc0c9cb41038fe2ca32cfff65d/src/lib/topicsNL.xml#L5-L15

however there are like 300 topics that couldn't be matched against anything in the xml (here) or matched more than one (here) so they're just added at the end: https://library-dev.bdrc.io/tradition/bo/texts/topic/bdr:O9TAXTBRC2016052KG225383/

image


finally there are a few ones (3 actually, no 2 because one is the root topic) that don't have a label (here): https://library-dev.bdrc.io/tradition/bo/texts/topic/bdr:O9TAXTBRC2016052KG225727/

image

eroux commented 2 months ago

Wonderful! I think this is more than good enough for now, thanks a lot!

berger-n commented 1 month ago

now working with the new links:

eroux commented 1 month ago

thanks, that's wonderful! I just updated the data so that:

berger-n commented 1 month ago

that's perfect, thanks! now it works for everything (what about the "selected works by school" though):

eroux commented 1 month ago

great, thanks! For selected works by school let's just use instances associated with the tradition, for instance

https://library-dev.bdrc.io/osearch/search?associatedTradition%5B0%5D=TraditionNyingma&type%5B0%5D=Instance

berger-n commented 1 month ago

done: https://library-dev.bdrc.io/tradition/bo/

simplescreenrecorder-2024-07-22_16 38 44 mkv

not sure where to go from Canon and Miscellaneous though?

eroux commented 1 month ago

excellent!!

for Canon and Miscelaneous that's a bit weird, let's remove these two