push
circleci
0 of 33 new or added lines in 1 file covered. (0.0%)
9374 existing lines in 213 files now uncovered.47 of 9753 relevant lines covered (0.48%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
require 'openurl/context_object'
|
× |
| 3 |
|
|
|
UNCOV
4
|
module Blacklight |
× |
|
UNCOV
5
|
module Marc |
× |
| 6 |
# Create an OpenUrl ContextObject for a book
|
|
|
UNCOV
7
|
class BookCtxBuilder < CtxBuilder |
× |
|
UNCOV
8
|
def build |
× |
|
UNCOV
9
|
ctx.referent.set_format('book')
|
× |
|
UNCOV
10
|
apply_metadata |
× |
|
UNCOV
11
|
ctx |
× |
|
UNCOV
12
|
end
|
× |
| 13 |
|
|
|
UNCOV
14
|
private |
× |
| 15 |
|
|
|
UNCOV
16
|
def mapping |
× |
|
UNCOV
17
|
{
|
× |
|
UNCOV
18
|
genre: 'book', |
× |
|
UNCOV
19
|
au: author,
|
× |
|
UNCOV
20
|
pub: publisher,
|
× |
|
UNCOV
21
|
edition:,
|
× |
|
UNCOV
22
|
isbn:,
|
× |
|
UNCOV
23
|
date:,
|
× |
|
UNCOV
24
|
title:,
|
× |
|
UNCOV
25
|
btitle: title,
|
× |
|
UNCOV
26
|
oclc:,
|
× |
|
UNCOV
27
|
lccn:
|
× |
|
UNCOV
28
|
} |
× |
|
UNCOV
29
|
end
|
× |
| 30 |
|
|
|
UNCOV
31
|
def edition |
× |
|
UNCOV
32
|
@document['edition_display']&.first |
× |
|
UNCOV
33
|
end
|
× |
|
UNCOV
34
|
end
|
× |
|
UNCOV
35
|
end
|
× |
|
UNCOV
36
|
end
|
× |