JPDeni and everyone,
Hello...I have been working with a hacked version of a db.cgi script for a LINKS generated database for awhile and I am stumped. I am using two stand alone scripts that utilize the following:
1) alpha.cgi => lists links to links in alphabetical order. (Alphabetical Listing Mod found in this Forum.)
2) showrec.cgi => hacked version of db.cgi, with only bare bone sub-routines, including:
a) sub query
b) sub view_records (vr in my case)
The script requires the LINKS library files (like db_utils.pl and links.cfg, which includes all the date routines and build routines used in DBMAN).
Okay...the problem is that the LINKS are not sorted alphabetically by the "Title" field even when I use the &so and &sb arguments in the query string.
I have reviewed the subs between the library files and the orginal db.cgi file...there are subtle differences between them...and I have even tried un-requiring the LINKS library files and using the built-in subs of db.cgi...still no go.
I have also tried hacking the elsif statements in the sub query to sort in ascending order for queries made with the "Title" field. Still no go...
To see this in action...go to:
http://vlib.anthrotech.com/bin/alpha.cgi
Click on one of the letters.
You will see that the results are being sorted by the date field in ascending order rather than the Title field. The Title field number is 1.
To see the source code of these scripts (alpha.cgi and showcat.cgi) go to the following URLs:
If you, Carol, or anyone else have ideas about how to make this hacked script work, I would greatly appreciate it.
Thank you....
BTW: I did post this question originally in the LINKS Modification Forum...and since the script uses DBMAN subs, I thought I may have more success posting it in the DBMAN Discussion Forum.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Hello...I have been working with a hacked version of a db.cgi script for a LINKS generated database for awhile and I am stumped. I am using two stand alone scripts that utilize the following:
1) alpha.cgi => lists links to links in alphabetical order. (Alphabetical Listing Mod found in this Forum.)
2) showrec.cgi => hacked version of db.cgi, with only bare bone sub-routines, including:
a) sub query
b) sub view_records (vr in my case)
The script requires the LINKS library files (like db_utils.pl and links.cfg, which includes all the date routines and build routines used in DBMAN).
Okay...the problem is that the LINKS are not sorted alphabetically by the "Title" field even when I use the &so and &sb arguments in the query string.
I have reviewed the subs between the library files and the orginal db.cgi file...there are subtle differences between them...and I have even tried un-requiring the LINKS library files and using the built-in subs of db.cgi...still no go.
I have also tried hacking the elsif statements in the sub query to sort in ascending order for queries made with the "Title" field. Still no go...
To see this in action...go to:
http://vlib.anthrotech.com/bin/alpha.cgi
Click on one of the letters.
You will see that the results are being sorted by the date field in ascending order rather than the Title field. The Title field number is 1.
To see the source code of these scripts (alpha.cgi and showcat.cgi) go to the following URLs:
If you, Carol, or anyone else have ideas about how to make this hacked script work, I would greatly appreciate it.
Thank you....
BTW: I did post this question originally in the LINKS Modification Forum...and since the script uses DBMAN subs, I thought I may have more success posting it in the DBMAN Discussion Forum.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums