Page MenuHomePhabricator

DEFAULTSORT insertion problem
Open, Needs TriagePublic

Description

Using AWB "More" tab to append the string "{{DEFAULTSORT:%%title%%}}" before metadata. This works correctly, inserting the line before the categories. But if I subsequently reparse (F5) the article, the string is inserted again, but this time on the same line as the last category. However, another reparse does not add the string again.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 12 2018, 10:07 PM

OK, agree there's an issue here.

Probably the "multiple different DEFAULTSORT" check is applied before applying keywords to convert %%title%%.

Hmm, problem is that the metadatasorter that's run as part of the append step just does the data sort, and stops if there are multiple defaultsorts. The logic to de-duplicate defaultsorts is part of genfixes and not run as part of the data sort.