@@ -, +, @@ -------------------------------------- -------------------------------------- - Suppose you want to output data in MARCXML format: - Apply this patches - Run: $ kshell k$ prove t/db_dependent/Koha/REST/V1.t - Sign off :-D --- Koha/REST/V1.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/Koha/REST/V1.pm +++ a/Koha/REST/V1.pm @@ -45,7 +45,12 @@ sub startup { }); # Force charset=utf8 in Content-Type header for JSON responses - $self->types->type(json => 'application/json; charset=utf8'); + $self->types->type( json => 'application/json; charset=utf8' ); + # MARC-related types + $self->types->type( marcxml => 'application/marcxml+xml' ); + $self->types->type( mij => 'application/marc-in-json' ); + $self->types->type( marc => 'application/marc' ); + my $secret_passphrase = C4::Context->config('api_secret_passphrase'); if ($secret_passphrase) { --