Lines 493-499
sub add {
Link Here
|
493 |
try { |
493 |
try { |
494 |
my $headers = $c->req->headers; |
494 |
my $headers = $c->req->headers; |
495 |
|
495 |
|
496 |
my $flavour = $headers->header('x-marc-schema'); |
496 |
my $flavour = $headers->header('x-record-schema'); |
497 |
$flavour //= C4::Context->preference('marcflavour'); |
497 |
$flavour //= C4::Context->preference('marcflavour'); |
498 |
|
498 |
|
499 |
my $record; |
499 |
my $record; |
Lines 568-574
sub update {
Link Here
|
568 |
try { |
568 |
try { |
569 |
my $headers = $c->req->headers; |
569 |
my $headers = $c->req->headers; |
570 |
|
570 |
|
571 |
my $flavour = $headers->header('x-marc-schema'); |
571 |
my $flavour = $headers->header('x-record-schema'); |
572 |
$flavour //= C4::Context->preference('marcflavour'); |
572 |
$flavour //= C4::Context->preference('marcflavour'); |
573 |
|
573 |
|
574 |
my $frameworkcode = $headers->header('x-framework-id') || $biblio->frameworkcode; |
574 |
my $frameworkcode = $headers->header('x-framework-id') || $biblio->frameworkcode; |