mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
Make MARC roles an enum and restructure how contributors are fetched from the DB to reduce queries
This commit is contained in:
parent
daf8e16ef4
commit
d6a2bdcbc8
8 changed files with 91 additions and 75 deletions
9
lib/Enums/MarcRole.php
Normal file
9
lib/Enums/MarcRole.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?
|
||||
namespace Enums;
|
||||
|
||||
enum MarcRole: string{
|
||||
case Author = 'aut';
|
||||
case Contributor = 'ctb';
|
||||
case Illustrator = 'ill';
|
||||
case Translator = 'trl';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue