# Organization in Online Sources Biber

I am currently facing some obstacles concerning bibliography layout (again).

My institute's formal rules require adding the organization to online sources, if available in capslock in front of the main title, which should be italic (whereas the article title of the website is supposed to be in plain text).

However I am really confused when it comes to bibliography changes as I am never really certain if any of my changes affect other entry types as well, thus I was wondering if you could help me.

This is how it should look like: This is what it currently looks like:

So the position should be changed as well as the plain-text to small caps for organization. However, this should only apply for online sources.

Sorry and thank you!

Here is my MWE (I've tried to reduce it as much as possible, but several settings are already in effect so I had to add them):

\documentclass[12pt]{scrartcl}
\usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.00cm, footskip=1cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage[main=ngerman, english]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[ngerman]{isodate}
\usepackage[ngerman]{datetime}

%----------------------------------------------------------------------------
%   BIB
%----------------------------------------------------------------------------
\usepackage[
backend=biber,
style=ext-authoryear,
sorting=nyvt,
maxnames=25,
innamebeforetitle=true,
usetranslator=true,
alldates=terse,
labeldate=year,
dashed=false,
isbn=false
]{biblatex}

\DefineBibliographyStrings{german}{%
andothers = {et al\adddot},
urlseen = {letzter Abruf},
}

\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite=false]{
\pertype{article}
\step[fieldsource=entrysubtype, match=\regexp{\Anewspaper\Z}, final]
\step[fieldsource=journal, final]
\step[fieldset=author, origfieldval, final]
\step[fieldset=author+an, fieldvalue={1=journalauthor}]
\step[fieldset=options, fieldvalue={journalauthor}]
}
}
}

\newtoggle{bbx@journalauthor}
\DeclareEntryOption[boolean]{journalauthor}[true]{%
\settoggle{bbx@journalauthor}{#1}}

\renewcommand{\mkbibnamefamily}[1]{%
\ifitemannotation{journalauthor}
{\mkbibemph{#1}}
{\textsc{#1}}}

\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\DeclareFieldAlias{translatortype}{editortype}

\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,unpublished,online]
{title}{#1\isdot}
\DeclareFieldFormat
[thesis]
{title}{\mkbibemph{#1}\isdot} % thesis title italic

% no period after addon titles

\newbibmacro{online:editor+maintitle}{%
\printlist{organization}%
\clearlist{organization}%
\printnames{editor}%
\usebibmacro{maintitle}}

\usepackage{xpatch}
\xpatchbibdriver{online}
{\usebibmacro{byeditor+others}}
{\usebibmacro{online:editor+maintitle}}
{}{}
\xpatchbibmacro{editorstrg}{\bibstring}{\bibcpstring}{}{}
\xpatchbibmacro{editorstrg}{\bibstring}{\bibcpstring}{}{}

\renewbibmacro*{in:}{%
\iftoggle{bbx@journalauthor}
{}
{\printtext{%
\bibstring{in}\intitlepunct}}}

\DeclareNameAlias{ineditor}{sortname}

% set online sources as per IOA
\setunit{\space}%
\newunit\newblock
\printfield{pubstate}}
\urlstyle{same}%
\DeclareFieldFormat{url}{\url{#1}}

\makeatletter
\iffieldundef{labelyear}
{}
{\printtext[extblx@inner\blx@delimcontext delims]{%
\printtext[bibhyperref]{%
\iftoggle{bbx@journalauthor}
{\printfield{issue}%
\printtext[\blx@delimcontext labeldate]{%
\printdateextra}}
{\printtext[\blx@delimcontext labeldate]{%
\printlabeldateextra}}}}}}
\makeatother

\DeclareFieldFormat{postnote}{\mknormrange{#1}}
\DeclareFieldFormat{multipostnote}{\mknormrange{#1}}

\DeclareListFormat[online]{organization}{%
\textsc{%
\usebibmacro{list:delim}{#1}%
#1\isdot
\usebibmacro{list:andothers}}}

\begin{filecontents*}{\jobname.bib}
@online{NetGtas.,
author = {Net-Gtas},
title = {Testimonial Videos of Survivors},
url = {https://www.global-peace.go.jp/en/picture/index.php},
urldate = {2019-06-23},
maintitle = {National Peace Memorial Halls for the Atomic Bomb Victims in Hiroshima and Nagasaki},
organization = {{Net-Gtas Global Network}}
}
\end{filecontents*}