Date: Thu, 5 Sep 2002 14:07:54 +1000 From: roy lam To: Michael Greenhalgh Subject: RE: subject indexing Dear Michael, I have just put the mkcount.html to the /usr/local/bin and here are the two new parameters: -db = create database in bycountry/.database_country/ -si = subject index in bycountry/subjectindex/ To create or refresh database for sicily: /home/roylam/dev/new/mkcount.html.pl -db\ -country='sicily'\ -dir "/raid1/cdroms/webready/sicily"\ -u "/raid1cdroms/sicily/"\ -dir "/raid2/newimages/htdocs/bycountry/sicily/"\ -u "/htdocs/bycountry/sicily/" To get subject index of glass and church from France: /home/roylam/dev/new/mkcount.html.pl -c="france" -si="glass,church" will get the entries with both glass and church. When none of the above two parameters presents in the command, it will output the usual summary and details pairs pages. ================================= from the mkcount.html program: Count the number of pictures and Make html indexes. Usage: mk.count.html.pl [OPTION]... Options: -c, --country=STRING first field of the table. (mandatory) -st, --summarytemplate=FILE use the customized summary page. (default: CitySummaryTemplate.html) -dt, --detailstemplate=FILE use the customized details page. (default: CityDetailsTemplate.html) (both st & dt are located in $template_dir) -b, --breakpoint=NUMBER number of listings in every detail page. (default: 20) -sb, --summarybreak=NUMBER ratio between detail pages and summary page. e.g. 14 details pages, sb=5 ==> 3 summary pages. (default: 10) -dir, --directory=DIRECTORY directory of interest. can be used multiple times, need a urlpath prefix for each entry. (default: current directory if -dir is not used) -u, --urlpath=HTMLPART prefix to give complete url address. one for each directory. (default: empty string if -dir is not used) -q, --quiet quiet, remove excessive output. -h, --help print this help. -db, --createdatabase create database of the content. -si, --subjectindex=SUBJECT create subject index of SUBJECT (e.g. ivories). ==========================================