View Single Post
Old 03-21-2021, 04:25 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,090
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Template: Converting a search & replace into a template

For fanfiction, I have custom ao3: and ffnet: identifiers that use the story ID. I use it for crossposted stories and because it looks a little nicer than the url: identifier in book details.

I have some search & replaces that extract the story ID from the urls and copy them to the identifiers, and then another that removes the URL identifiers. Here's the first two search & replaces (including what happens if you give the wrong url type to one):

Click image for larger version

Name:	2021-03-20_220034.png
Views:	273
Size:	47.0 KB
ID:	186090

I also have action chain to automate this:
  1. If publisher:"=Archive of Our Own" AND identifiers:"=url:" AND NOT #fanficstatus:"=Anthology", then run search & replace "AO3 Identifiers."
  2. If publisher:"=Fanfiction.net" AND identifiers:"=url:" AND NOT #fanficstatus:"=Anthology", then run search & replace "FFNet Identifiers."
  3. If #fanficstatus:"~(Completed|Oneshot|Abandoned)" AND identifiers:"=url:" AND (identifiers:"=ao3:" OR identifiers:"=ffnet:"), then run a search & replace to remove the url: identifier. (I keep the url: on in-progress fics so FFF has access to it.)

The current way of doing it requires a lot of selection modifiers which change the book list. So I want try turning it into templates to not change the book list. This is why I asked about single field edit identifiers in the Action Chains thread.

I made GPM template that matches the books I want for each step, but am not actually sure how to modify the identifiers. And I'm also not sure if this would be best as one single template or three smaller ones (my test templates are the latter; I tried the former and got a bit confused on how to arrange the thing).

Any suggestions?

Last edited by ownedbycats; 03-21-2021 at 09:08 PM.
ownedbycats is offline   Reply With Quote