the catalog is missing links

18 views
Skip to first unread message

David Farmer

unread,
Jul 29, 2022, 7:06:46 AM7/29/22
to prete...@googlegroups.com

At the AIM booth at Mathfest I will have some printed books to show,
and will to have the PreTeXt catalog on my laptop to show the HTML
versions.

Many of the links in the catalog are not working. I think those that
are working have a "landing" attribute. So, I am guessing all that
is needed is to use the "html" attribute when there is no landing
attribute.

I see where @landing is selected in db-export.xsl. So, a temporary
hack could be to have that template select @html when @landing is null.

But, that is at the step of importing to the database. I can't see
any code about that database in the repository, so I don't know how
to actually update the page or check if that hack is working.

(And "hack" is the right word, because the second step, exporting the
database into the web page, is a better way to deal with the lack of a
landing page.)

David


Thomas Shemanske

unread,
Jul 29, 2022, 1:43:30 PM7/29/22
to PreTeXt development
I fixed all these in the database this morning and sent Rob a new html frame to import which will  produce the new catalog page.

In most cases, I put in the HTML link for a landing URL if empty; in one case the pdf link as that was all there was.

There remain 5 projects with zero links:
hansen-DLD and judson-AAFT are in development
ted-analysis, ted-calculus and ted-discrete are listed as mature, but have no links.

T

David Farmer

unread,
Jul 29, 2022, 3:52:50 PM7/29/22
to PreTeXt development

It would be good if we could do this with having Rob in the loop
(except maybe clicking a button or doing one thing on the command-line).

For example, a pull request with a new book was just submitted.
Once that pull request was accepted, I don't know how to update the page.
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> pretext-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-dev/f84bc3e4-0bca-46d9-a5a6-8818cc268e31n%40googlegroups.com.
>
>

Thomas R. Shemanske

unread,
Jul 29, 2022, 4:25:58 PM7/29/22
to prete...@googlegroups.com

First, I also handled the new book request this morning; Rob sent me a link for the pull request.

Please see my April 24 posting on the subject "The PreTeXt Catalog" for most details.

In short, web-based software was written which will allow an admin (or with confidence an author) to enter information creating or updating a new project for inclusion in the database.  I placed these pages on my workstation at Dartmouth and sent David and Rob access information.

The current workflow would be as follows:

Author or admin wishes to add or update a project.  Accessing the web page(s) on my workstation (hecke.dartmouth.edu) and filling out the forms will produce a sql file which then from the command line can update the database.  Once the database is updated, a Python script (https://github.com/trshemanske/ptx-catalog/blob/main/mariadb-python-catalog-generator.py) is run which passes the database and produces an html frame page which Rob then imports to create the final catalog page.

All these files live on my github page.

The files were posted to the workstation to be tested by potential admins for general use.  I am presuming with all the recent PTX activity, they dropped off the radar.

This has purposely been left in a state that requires intervention.  It makes sense to inspect the generated sql file before uploading it to the live database.  Then the script to pass the database must be run.  Then Rob takes the output and massages it a bit for the final product.

To host all of this, you need a server running mariadb (mysql) and php (as well as of course apache).

Cheers,

Tom


You received this message because you are subscribed to a topic in the Google Groups "PreTeXt development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-dev/udiN80RxP-U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/alpine.LRH.2.21.2207291544150.5123%40li375-150.members.linode.com.


--
Thomas R. Shemanske
Grantham, NH 

Reply all
Reply to author
Forward
0 new messages