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 OpenURL elements
|
|
6 |
#
|
|
7 |
module Openurl |
1 only 2.2.2 ✔ |
8 |
#
|
|
9 |
# Parse addata to provide an OpenURL query string
|
|
10 |
#
|
|
11 |
def openurl |
1 only 2.2.2 ✔ |
12 |
@openurl ||= "" |
2 only 2.2.2 ✔ |
13 |
if @openurl.blank? |
2 only 2.2.2 ✔ |
14 |
xml.root.xpath("addata/*").each do |addata| |
1 only 2.2.2 ✔ |
15 |
@openurl << "rft.#{addata.name}=#{addata.inner_text}&" unless (addata.inner_text.nil? or addata.inner_text.strip.empty?) |
19 only 2.2.2 ✔ |
16 |
end
|
|
17 |
@openurl << "rft.primo=#{@record_id}" |
1 only 2.2.2 ✔ |
18 |
end
|
|
19 |
@openurl
|
2 only 2.2.2 ✔ |
20 |
end
|
× |
21 |
end
|
|
22 |
end
|
|
23 |
end
|
|
24 |
end
|