For Archive of Our Own: here is my method for copying collections and collection URLs to the series column. I use an Mass Effect fic exchange as an example.
Notes:
- This requires a version of FanFicFare released
after April 4, 2023 (as of posting date, the latest test version) to make use of a static value in 'include_in.'
- If there's both series and collection, you'll need to pick which one you want. Use exclude_metadata_pre to remove the unwanted one using a storyUrl conditional.
Code:
[archiveofourown.org]
## This creates an additional 'collectionUrl' entry.
add_to_extra_valid_entries:,collectionUrl
## Copies collections to series
include_in_series:series,collections
## Creates a placeholder collectionUrl. I chose to use 'abc' for easy replacement (no escapes!).
include_in_collectionUrl:"abc"
## Adds collectionURL to series.
include_in_seriesUrl:seriesUrl,collectionUrl
include_metadata_pre:
## Include specific collections as series. Here, I've included both an exact version (==) and regex (=~).
collections==Spectre Requisitions 2023
collections=~(Spectre Requisitions \d{4}|Spec Recs|Spec Recs \d{4})
add_to_replace_metadata:
## I apply transformations to 'collections' but applying them to 'series' should also work
collections=>Spec Recs=>Spectre Requisitions
## Here, change the placeholder 'abc' urls to the collection URLs based on a conditional.
collectionUrl=>abc=>https://archiveofourown.org/collections/SpecReqs2023&&collections==Spectre Requisitions 2023
exclude_metadata_post:
## If the placeholder isn't changed during replace_metadata, this then removes it to prevent general breakage
collectionUrl==abc