Closed funderburkjim closed 4 years ago
mv disp.php basicdisplay.php
in readme_xampp.org, down in the 'apidev' section, the last instruction was to copy the
csl-websanlexicon/v00/makotemplates/webtc/disp.php to apidev as basicdisplay.php.
Since we've changed the name of .../webtc/disp.php to .../webtc/basicdisplay.php, we need to
change the instruction in readme_xampp.org file to
cp ../csl-websanlexicon/v00/makotemplates/webtc/basicdisplay.php basicdisplay.php
webtc/disp.php :T
to webtc/basicdisplay.php:C
. Note that the file actually has no template code,
and should be considered a 'copy'-type file, rather than a template file.As a check, install for some dictionary (e.g. vcp), and check basic display and advanced search.
python generate.py vcp inventory.txt makotemplates ../../VCPScan/2013/web
Displays look normal. Assume changes are good.
In csl-websanlexicon/v00, run the installation script:
sh redo_cologne_all.sh
since the dictionary is used so often 👍
The above steps leave one detail incomplete. Namely, there is now a copy of disp.php in the web/webtc directory for each dictionary. Since disp.php is an orphan (no program calls it any longer), it should be deleted. Will do the necessary to fix this problem tomorrow.
Crystal clear documentation as usual.
install for all dictionaries: sh redo_cologne_all.sh
webtc/disp.php:D
The file currently named webtc/disp.php contains the class BasicDisplay. As might be expected, this class is responsible for generating most of the HTML code for the Basic Display of the various dictionaries.
In the apidev code (ref https://github.com/sanskrit-lexicon/csl-apidev/), an exact copy of disp.php is renamed to a (more logical) basicdisplay.php.
Several small changes are made to csl-websanlexicon to simplify naming.