circleci
0 of 1 new or added line in 1 file covered. (0.0%)
2381 existing lines in 150 files now uncovered.3599 of 6198 relevant lines covered (58.07%)
5.05 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
require 'openurl/context_object'
|
1✔ |
3 |
|
|
4 |
module Blacklight |
1✔ |
5 |
module Marc |
1✔ |
6 |
# Create an OpenUrl ContextObject for a journal
|
|
7 |
class JournalCtxBuilder < CtxBuilder |
1✔ |
8 |
def build |
1✔ |
UNCOV
9
|
ctx.referent.set_format('journal')
|
× |
UNCOV
10
|
apply_metadata |
× |
UNCOV
11
|
ctx |
× |
12 |
end
|
|
13 |
|
|
14 |
private |
1✔ |
15 |
|
|
16 |
def mapping |
1✔ |
17 |
{ |
|
UNCOV
18
|
atitle: title,
|
× |
19 |
genre: 'serial', |
|
20 |
aucorp: author,
|
|
21 |
issn:
|
|
22 |
} |
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|
|
26 |
end
|