\usemodule[bib]
\usetypefile[cmu]
\setupbodyfont[computer-modern-unicode, 10pt]

\setuppublications[%
  alternative=apa,
]

\unprotect
\def\bibinsertcrossref#1#2#3%
{\bibdoifelse{\@@pb@crossref}
    {#1\def\MYtitle{}%
      \getcitedata[title][\@@pb@crossref]to\MYtitle
      [\MYtitle]%
      \@EA\cite\@EA[\@@pb@crossref]#2}
    {#3}}
\protect

\setuppublicationlayout[inbook]{%
  \insertauthors
  {\bgroup\it }{\egroup, }%
  {\inserteditors{\bgroup\it}%
    {\egroup\/ (Hrsg.),%
      \global\editedbooktrue%
    }%  
    {\insertthekey{}{, }{}}%
  }%  
  \inserttitle
  { }%
  {. %
    \ifeditedbook
      \global\editedbookfalse
      \insertcrossref
        {(}%
        {\insertvolume{ Nr.~}{}{}%
          \insertseries{ in~}{)}{)}%
        }%  
        {}% 
    \else
      \insertcrossref
        {\insertchap{, }{}{}%
          \insertpages{, S.~}{. }{. }%
          \insertvolume{Bd.~}{ von~}{}%
        }%  
        {}% 
        {\insertvolume
            {, Bd.~}%
            {\insertseries
                { von~\bgroup\it}%
                {\egroup}
                {}} 
            {}% 
          \insertchap{, }{}{}%
          \insertpages{, S.~}{.}{}%
        }%  
      \fi}%
    { }%
  \insertedition{ }{.~Aufl.}{}%
  \insertcity{ }{}{}%
  \insertpubyear{ }{. }{\unskip.}%
}

\startpublication[
    k=psrl,
    t=book,
    a={{{Akademija Nauk~SSSR, Institut Istorii~SSSR}}},
    y={1841--},
    n=27,
    s=PSRL
]
  \editor[]{}[]{}{Akademija Nauk~SSSR, Institut Istorii~SSSR}
  \pubyear{1841--}
  \title{Полное Собрание Русских Летописей}
  \city{Moskva, Sankt Peterburg}
\stoppublication

\startpublication[
    k=l2,
    t=inbook,
    a={{{Akademija Nauk SSSR, Institut Istorii SSSR}}},
    y=1980,
    n=30,
    s=L2
]
  \editor[]{}[]{}{{Akademija Nauk SSSR, Institut Istorii SSSR}}
  \pubyear{1980}
  \title{Litauische Chronik, 2.~Redaktion: Красинского, Археологического Общества, Рачинского, Ольшевская, Румянцевская, Евреиновская}
  \crossref{psrl}
  \pages{91--102, 128--214}
  \volume{35}
  \city{Moskva}
\stoppublication

\starttext
\type{\cite[authoryear]}      \cite[authoryear][psrl].\par
\type{\cite[authoryear]}      \cite[authoryear][l2].\par
\completepublications[criterium=all]
\stoptext

%   vim:ft=context
