sanskrit-lexicon / csl-websanlexicon

0 stars 1 forks source link

Code refactor #13

Closed funderburkjim closed 3 years ago

funderburkjim commented 3 years ago

Substantial refactoring of code starting with getword.php. The objectives:

Also simplified the Advanced Search code.

The refactoring is not yet completed, and has not been installed at Cologne.

I'll continue the work when I return; but for now the revisions are safe in Github.

gasyoun commented 3 years ago

Also simplified the Advanced Search code.

Sounds promising.

funderburkjim commented 3 years ago

Have installed the refactor at Cologne.
It currently has an impact only on MW, and only for the Basic and Advanced Search,

drdhaval2785 commented 3 years ago

Any plans for applying it to any other dictionaries @funderburkjim ?

funderburkjim commented 3 years ago

Yes, this has been applied to all dictionaries.

The code base for generating html in csl-apidev (for simple-search, etc.) is now quite similar to the code base in csl-websanlexicon (for Basic, Advanced, .. displays) .

There is still room for making this common code easier to understand, and therefore easier to enhance or correct.

But that will be another day. Can close this issue.