Design homepage with subject listing

ConversazioniTinyCat

Iscriviti a LibraryThing per pubblicare un messaggio.

Design homepage with subject listing

1tanbonnym
Apr 26, 2022, 10:38 am

Could anyone advice how I could design a subject listing as found at the bottom of this page? https://www.librarycat.org/lib/SandiaCSP

Could you advice how I should catalogue the items ie under collection or tag in order to draw out the right items for each subject listing?

Could you share your html code for this?

Thanks kindly

2bnielsen
Modificato: Apr 27, 2022, 1:45 am

I just took a look at the html and I think it is handmade, i.e. if you look at the code (your browser probably has an option for View Source.) for "concentrated solar power" it is a search for "concentrated". But the same for Heat transfer is a link to a search for heat+transfer

The code goes something like this:

<div>
<span>
<a href="https://www.librarycat.org/lib/SandiaCSP/search/text/concentrated">Concentrated Solar power</a>
</span>
|
<span>
<a href="https://www.librarycat.org/lib/SandiaCSP/search/text/heat+transfer">Heat transfer</a>
</span>
|
<span>
<a href="https://www.librarycat.org/lib/SandiaCSP/search/text/Latent+energy+storage">Latent energy storage</a>
</span>
...
</div>

3tanbonnym
Apr 27, 2022, 12:14 am

>2 bnielsen: Thanks so much bNielsen. I really appreciate it

4bnielsen
Modificato: Apr 27, 2022, 2:06 am

>1 tanbonnym: I've taken a look at the SandiaCSP and I think the list is done by hand, i.e. there is no list of Subjects or similar to generate the list from.

Search is just simple text search, which makes it easy to add a new item, but less precise. I.e. if they want do add a search for Molten Salt, they just add
4 extra lines to the html. If they had used tags, they would have to go through all books and add the tag "Molten Salt" to those they wanted to appear as result for Molten Salt.
It is really just the same problem as deciding what should go into an index of a non-fiction book. (I.e. it is hard work if you want it to be really useful).

I think what SandiaCSP has done gives the most bang for the buck. The Subject List is really just a list of suggested searches into the library, but that is also quite useful.
On the down side this means that they have to give good descriptions of each book, but I think they have pulled the text from the abstract of each book, i.e. they already had text like this:

Development of a Solar Powered Rocket depends heavily on demonstrating the technology for lightweight space-deployable solar concentrators. Large parabolic shaped thin film reflectors can be packaged with other solar powered propulsion elements and deployed in low earth orbit. The Solar Powered Rocket Engine is expected to produce specific impulses of 1000 to 1200 seconds. This is over two to three times that of conventional liquid hydrogen/oxygen engines. This performance would significantly improve travel from low earth orbit to geostationary equatorial orbit. The objectives of this Phase II Small Business Innovative Research Program were to support the solar thermal propulsion program through advancing: polyimide materiaL fabrication technologies, analytical modeling of concentrators, construction models of doubly curved off-axis parabolic solar concentrators. This research advanced the solar thermal propulsion by enabling fabrication of doubly-curved membrane, off-axis parabolic solar concentrators of low weight/area ratio and high concentration ratio.

I can see that they use both Collections and Tags too, but the Tags are all the same and there's only a couple of Collections.

All books are tagged the same. (I.e. that's no help if you want to search for specific books.)
Concentrating Solar Power, Classification: Unclassified; Unlimited Release

5tanbonnym
Apr 27, 2022, 5:38 am

>4 bnielsen: Thanks for your indepth insights. I have tried to modify mine accordingly using tags and collection labels tho I have limited items

https://www.librarycat.org/lib/tanbonnym.

Feel free to advice further

6bnielsen
Apr 27, 2022, 7:24 am

>5 tanbonnym: Ah, nice. I can see that you've already found good use for the advice :-)

I think my only comment is that you don't need the extra "|" at the end of the lines.
I.e. "Business | Innovation | " could just be "Business | Innovation"
but that's for you to decide.

(I have the same consideration with my Tags. The Export file has Tag1, Tag2, Tag3, ... so if I search the file for Fiction, I also find Non Fiction :-)
Thus I have a script that edits the file to give me ;Tag1;Tag2;Tag3; ... so I can search for ;Fiction; if I want precisely that tag.)