add method for retrieving 39 articles

This commit is contained in:
Ryan Prather 2024-06-09 20:18:54 -04:00
parent bdc67942ea
commit 164ed62a48

View File

@ -202,6 +202,15 @@ class ReferenceController extends AbstractController
return $r[0];
}
public static function retrieve39a($ref): Reference
{
$r = self::$emi->getRepository(Reference::class)->findBy(['type' => '39a', 'ndx' => $ref->getNdx()]);
if (!$r) {
return new Reference();
}
return $r[0];
}
public static function retrieve1HC($ref): Reference
{
$r = self::$emi->getRepository(Reference::class)->findBy(['type' => '1hc', 'ndx' => $ref->getNdx()]);