Skip to content

Library Organizer: Different year formats for completed/uncompleted/short series? #39

Answered by maforget
Cantello asked this question in Q&A
Discussion options

You must be logged in to vote

Something like this will give you (StartYear-):
{<language>}\{ <seriesgroup>}\{<series>}{ - V<volume0>} { ({<startyear>}<!startyear({<EndYear>})>-{<EndYear>})}{ ({<startyear>}<?startyear({<EndYear>})>{<seriesComplete(- )(!)>)}}

I just used the UI to insert this into you already done rule. You need to have something in the text field (in this case "- "), but you can't have a parenthesis, that you need to put it in the suffix.

Edit: This is wrong is is your magic line:
{({<startyear>}<!startyear({<EndYear>})>{<seriesComplete(-)(!)>}{<seriesComplete({-<EndYear>})>})}

Pseudo Code:

if startYear != EndYear:
     prefix = "(" + startYear
     if seriesComplete:
         suffix = "-"
     else:
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cantello
Comment options

Answer selected by maforget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants