\ProvidesFile{iso-authoryear.bbx}[2017/04/25 v0.3.2 biblatex bibliography style] \RequireBibliographyStyle{iso} \ExecuteBibliographyOptions{% sorting=nyt } \def\printextrayear{% \ifentrytype{patent} {} {\printfield{year}\printfield{extradate}}% } % remove second appearance of year in a reference \renewbibmacro*{date}{}% % overwrite names:primary to print year right after % 1) author % 2) editor % 3) label/title % need to handle not to print editor twice (primary % and subsidiary names) \renewbibmacro*{names:primary}{% \ifboolexpr{ test \ifuseauthor and not test {\ifnameundef{author}} } {\usebibmacro{author}}% {\usebibmacro{editor}}% \setunit{\addspace}\printfield{nameaddon}% \setunit{\addcomma\space}\printextrayear% } \InitializeBibliographyStyle{\global\undef\bbx@lasthash} \newbibmacro*{bbx:savehash}{% \savefield{fullhash}{\bbx@lasthash}} \newbool{bbx@inset} \DeclareBibliographyDriver{set}{% \booltrue{bbx@inset}% \entryset{}{}% \newunit\newblock \usebibmacro{setpageref}% \finentry} \endinput