Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Primary Links[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Tue, Feb 15, 2022 07:35 PM UTC:

For a while, I thought Primary Links were the same thing as Items marked IsPrimary, and changes I made to queryinc.php reflected this. I now realize that they are completely different things with similar names. A primary link is the index entry that should be used for an Item when primarylinksonly is selected. I have now modified queryinc.php to work this way.

Since the IndexEntry table has multiple rows with the same ItemID having PrimaryLink set to 1, I have begun to work on selecting a single Primary Link for each Item. To help with that, I am using this script, which lists all primary links for items with multiple primary links.

https://www.chessvariants.com/index/finddupprime.php

If you're an editor, and you have some time to help, you can go to a page on this list, then go to its Links link at the bottom and choose which link should be primary.

To avoid having multiple primary links to the same Item in the future, I have modified modifylink.php to enforce some rules. These are that there must be one primary link, and there may not be more than one primary link. So, if you select one link to be primary, all other links to the same item will be made non-primary. If you select a link to be non-primary, but there is no other primary link to the same item, it will be made primary.


🕸Fergus Duniho wrote on Tue, Feb 15, 2022 11:01 PM UTC:

I have now modified insertlink.php to enforce the same rules.


🕸Fergus Duniho wrote on Wed, Feb 16, 2022 09:46 PM UTC:

I have finished removing multiple primary links for the same ItemID from IndexEntry. In some cases, I made only one link primary, and in some cases, I deleted links.

I also updated deletelink.php to delete all the links for an ItemID when an ItemID is given instead of an ItemNumber. So that this is not misused, the form for it shows up only if an ItemID is not in the database.


3 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.