@unpublished{unpublished_{{$document->id}}, address = { {{$document->fieldValue("publisher-place")}} }, edition = { {{$document->fieldValue("edition")}} }, type = { {{$document->fieldValue("printType")}} }, series = { {{$document->fieldValue("collection-title")}} }, title = { {{$document->title}} }, volume = { {{$document->fieldValue("volume")}} }, copyright = { {{$document->fieldValue("copyright")}} }, isbn = { {{$document->fieldValue("ISBN")}} }, shorttitle = { {{$document->fieldValue("shortTitle")}} }, url = { {{$document->fieldValue("URL")}} }, abstract = { {{$document->fieldValue("abstract")}} }, language = { {{$document->fieldValue("language")}} }, number = { {{$document->fieldValue("collection-number")}} }, publisher = { {{$document->fieldValue("publisher")}} }, translator = { @foreach($document->getCreatorByPositions(['translator'])->get() as $i => $creator) @if($creator->type == \App\Models\DocumentCreator::ORGANIZATION) { {{$creator->literal}} } @endif @if($creator->type == \App\Models\DocumentCreator::PERSON) { {{$creator->given}} {{$creator->family}} } @endif @if($document->getCreatorByPositions(['translator'])->count()-1 != $i) and @endif @endforeach }, contributor = { @foreach($document->getCreatorByPositions(['scriber', 'scholiast', 'author'])->get() as $creator) @if($creator->type == \App\Models\DocumentCreator::ORGANIZATION) { {{$creator->literal}} } @endif @if($creator->type == \App\Models\DocumentCreator::PERSON) { {{$creator->given}} {{$creator->family}} } @endif @if($document->getCreatorByPositions(['scriber', 'scholiast', 'author'])->count()-1 != $i) and @endif @endforeach }, note = { {{$document->fieldValue("note")}} } @component('outputs.bibtex.components.issued', ['document' => $document]) @endcomponent }