citeproc-hs-0.3.9: A Citation Style Language implementation in Haskell

Portability | unportable
Stability | unstable
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>
Safe Haskell | None

Text.CSL.Input.MODS

Description

An ugly MODS parser

Synopsis

- readModsFile :: FilePath -> IO Reference
- readModsCollectionFile :: FilePath -> IO [Reference]
- xpModsCollection :: PU [Reference]
- xpMods :: PU Reference
- xpReference :: PU Reference
- xpCiteKey :: PU String
- xpOrigin :: PU ([RefDate], [RefDate], [Agent], String, String)
- xpRefType :: PU (RefType, String)
- xpGenre :: PU [String]
- xpRelatedItem :: String -> PU Reference
- xpNestedTitles :: PU ((String, String), (String, String))
- xpTitle :: PU (String, String)
- xpAgents :: PU (([Agent], [Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent], [Agent]))
- xpAgent :: String -> String -> PU [Agent]
- parseName :: [String] -> String -> Agent
- xpNameData :: PU ([String], String)
- xpPart :: PU (([RefDate], String, String, String), (String, String, String, String))
- data Detail
  - = Date [RefDate]
  - | Page String
  - | Volume String
  - | Issue String
  - | Number String
  - | ChapterNr String
  - | Section String
  - | NrVols String
- xpDetail :: PU Detail
- xpPage :: PU String
- xpVolumes :: PU String
- xpUrl :: PU ([RefDate], String)
- xpIsbn :: PU String
- xpDoi :: PU String
- xpIdentifier :: String -> PU String
- xpNote :: PU String
- xpLang :: PU String
- xpStatus :: PU String
- readDate :: String -> [RefDate]
- parseDate :: String -> [RefDate]
- emptyAgents :: [Agent]
- fromAgent :: [Agent] -> String
- readRefType :: [String] -> (RefType, String)
- genreTypeMapping :: Map String RefType

# Documentation

readModsFile :: FilePath -> IO Reference Source

Read a file with a single MODS record.

readModsCollectionFile :: FilePath -> IO [Reference]Source

Read a file with a collection of MODS records.

xpModsCollection :: PU [Reference]Source

xpMods :: PU Reference Source

xpReference :: PU Reference Source

xpCiteKey :: PU String Source

xpOrigin :: PU ([RefDate], [RefDate], [Agent], String, String)Source

xpRefType :: PU (RefType, String)Source

xpGenre :: PU [String]Source

xpRelatedItem :: String -> PU Reference Source

xpNestedTitles :: PU ((String, String), (String, String))Source

xpTitle :: PU (String, String)Source

xpAgents :: PU (([Agent], [Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent], [Agent]))Source

xpAgent :: String -> String -> PU [Agent]Source

parseName :: [String] -> String -> Agent Source

von Hicks,! Jr., Michael or la Martine,! III, Martin B. de or Rossato, Jr., Andrea G. B. or Paul, III, Juan.

xpNameData :: PU ([String], String)Source

xpPart :: PU (([RefDate], String, String, String), (String, String, String, String))Source

data Detail Source

Constructors

Date [RefDate] |
Page String |
Volume String |
Issue String |
Number String |
ChapterNr String |
Section String |
NrVols String |

Instances

Eq Detail |
Show Detail |

xpDetail :: PU Detail Source

xpPage :: PU String Source

xpVolumes :: PU String Source

xpUrl :: PU ([RefDate], String)Source

xpIsbn :: PU String Source

xpDoi :: PU String Source

xpIdentifier :: String -> PU String Source

xpNote :: PU String Source

xpLang :: PU String Source

xpStatus :: PU String Source

readDate :: String -> [RefDate]Source

parseDate :: String -> [RefDate]Source

Possible formats: YYYY, YYYY-MM, YYYY-MM-DD.

emptyAgents :: [Agent]Source

fromAgent :: [Agent] -> String Source

readRefType :: [String] -> (RefType, String)Source

genreTypeMapping :: Map String RefType Source