travis-ci
10 of 10 new or added lines in 3 files covered. (100.0%)
3163 of 3238 relevant lines covered (97.68%)
19.99 hits per line
1 |
module Exlibris |
1 only 2.2.2 ✔ |
2 |
module Primo |
1 only 2.2.2 ✔ |
3 |
module Pnx |
1 only 2.2.2 ✔ |
4 |
#
|
|
5 |
# Handle frbr records
|
|
6 |
#
|
|
7 |
module Frbr |
1 only 2.2.2 ✔ |
8 |
#
|
|
9 |
# Is this a frbr'd record
|
|
10 |
#
|
|
11 |
def frbr? |
1 only 2.2.2 ✔ |
12 |
if (respond_to? :facets_frbrgroupid) && (facets_frbrtype != "6") |
7 only 2.2.2 ✔ |
13 |
@frbr = true |
4 only 2.2.2 ✔ |
14 |
else
|
|
15 |
@frbr = false |
3 only 2.2.2 ✔ |
16 |
end
|
|
17 |
@frbr
|
7 only 2.2.2 ✔ |
18 |
end
|
× |
19 |
|
|
20 |
#
|
|
21 |
# Returns the frbr id of this record if there is one.
|
|
22 |
#
|
|
23 |
def frbr_id |
1 only 2.2.2 ✔ |
24 |
@frbr_id ||= facets_frbrgroupid if frbr? |
5 only 2.2.2 ✔ |
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|