# Setting a new entrytype

Doing as it has been suggested on this site, and also having looked in the manual for biblatex.pdf, I cannot figure out the difference between DeclareDatamodeFields and DeclareDatamodeEntryfields. I only get the address field as the result (Paris in this case). pdflatex, biber.

MWE

\documentclass{article}
\usepackage[datamodel=manuscript,bibstyle=verbose,citestyle=verbose]{biblatex}
\begin{filecontents}{manuscript.dbx}
\DeclareDatamodelEntrytypes{manuscript}
\DeclareDatamodelFields[type=field, datatype=literal]{datation,title,library}
\DeclareDatamodelEntryfields[manuscript]{
title,
library,
datation}
\end{filecontents}
\begin{filecontents}{maniscript.bib}
@manuscript{P1470,
library={BNF},
datation={\textsc{viii}\textsuperscript{e} s.}
\end{filecontents}

\bibliography{manuscript.bib}
\begin{document}
\nocite{*}

\printbibliography
\end{document}


You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.

Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:

\DeclareBibliographyDriver{manuscript}{%
\usebibmacro{begentry}%
\printfield{library}%
\printlist{location}%
\newunit\newblock
\printfield{title}%
\printfield{datation}%
\usebibmacro{finentry}%
}


I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your \DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.

In full:

\documentclass{article}

\usepackage[datamodel=manuscript,style=verbose]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{manuscript.dbx}
\DeclareDatamodelEntrytypes{manuscript}
\DeclareDatamodelFields[type=field, datatype=literal]{datation}
\DeclareDatamodelEntryfields[manuscript]{
title,
library,
location,
datation}
\end{filecontents}

\begin{filecontents}{manuscript.bib}
@manuscript{P1470,
library = {BNF},
title = {A title},
location = {Paris},
datation = {\textsc{viii}\textsuperscript{e} s.},
}
\end{filecontents}

\DeclareBibliographyDriver{manuscript}{%
\usebibmacro{begentry}%
\printfield{library}%
\printlist{location}%
\newunit\newblock
\printfield{title}%
\printfield{datation}%
\usebibmacro{finentry}%
}

\DeclareFieldFormat[manuscript]{title}{\mkbibquote{#1\isdot}}


• @DmitryStarostin Indeed, biblatex's jargon needs some getting used to, but once you grasp it you'll see it has a logic. I hope it has been enough to get you started. moewe's answer, specially, is very thorough. But old time languages should be no impediment. I started myself with Basic on a TK85 (a ZX81 clone) with K7 tape memory and all! :) – gusbrs Dec 17 '18 at 11:12