Crazy JS + bibliography routes (incomplete)
This commit is contained in:
@@ -13,7 +13,7 @@ use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class BibliographyController extends AbstractController
|
||||
{
|
||||
#[Route('/bibliography/{id}', name: 'app_bibliography')]
|
||||
#[Route('/bibliography/{id<\d+>}', name: 'app_bibliography')]
|
||||
public function index(Bibliography $bibliography, EntityManagerInterface $em): Response
|
||||
{
|
||||
return $this->render('bibliography/index.html.twig', [
|
||||
@@ -21,5 +21,28 @@ class BibliographyController extends AbstractController
|
||||
'record' => $bibliography,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
#[Route('/bibliography', name: 'app_bibliography_landing')]
|
||||
public function landing(): Response
|
||||
{
|
||||
return $this->render('bibliography/landing.html.twig', [
|
||||
'controller_name' => 'BibliographyController',
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/bibliography/search', name: 'app_bibliography_search')]
|
||||
public function search(): Response
|
||||
{
|
||||
return $this->render('bibliography/search.html.twig', [
|
||||
'controller_name' => 'BibliographyController',
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/bibliography/add', name: 'app_bibliography_add')]
|
||||
public function add(): Response
|
||||
{
|
||||
return $this->render('bibliography/add.html.twig', [
|
||||
'controller_name' => 'BibliographyController',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,10 @@ class Bibliography
|
||||
#[ORM\Column(name: 'note_bib', type: Types::TEXT)]
|
||||
private ?string $notes = null;
|
||||
|
||||
#[ORM\Column(length: 100)]
|
||||
#[ORM\Column(length: 100, name: 'editor')]
|
||||
private ?string $editor = null;
|
||||
|
||||
#[ORM\Column(length: 100)]
|
||||
#[ORM\Column(length: 100, name: 'creator')]
|
||||
private ?string $creator = null;
|
||||
|
||||
public function getId(): ?int
|
||||
@@ -96,6 +96,18 @@ class Bibliography
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCreator(): ?string
|
||||
{
|
||||
return $this->creator;
|
||||
}
|
||||
|
||||
public function setCreator(string $creator): static
|
||||
{
|
||||
$this->creator = $creator;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCitation(): ?string
|
||||
{
|
||||
return $this->citation;
|
||||
|
||||
Reference in New Issue
Block a user