refworks 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/README.md +120 -0
- data/lib/refworks.rb +183 -0
- data/lib/refworks/authentication/authentication_request.rb +17 -0
- data/lib/refworks/authentication/authentication_response.rb +3 -0
- data/lib/refworks/authentication/delsess/authentication_delsess_request.rb +20 -0
- data/lib/refworks/authentication/delsess/authentication_delsess_response.rb +3 -0
- data/lib/refworks/authentication/newsess/authentication_newsess_request.rb +37 -0
- data/lib/refworks/authentication/newsess/authentication_newsess_response.rb +10 -0
- data/lib/refworks/authentication/newtempusersess/authentication_newtempusersess_request.rb +21 -0
- data/lib/refworks/authentication/newtempusersess/authentication_newtempusersess_response.rb +9 -0
- data/lib/refworks/authentication/ping/authentication_ping_request.rb +21 -0
- data/lib/refworks/authentication/ping/authentication_ping_response.rb +3 -0
- data/lib/refworks/authentication/userexists/authentication_userexists_request.rb +37 -0
- data/lib/refworks/authentication/userexists/authentication_userexists_response.rb +3 -0
- data/lib/refworks/authors/all/authors_all_request.rb +29 -0
- data/lib/refworks/authors/all/authors_all_response.rb +3 -0
- data/lib/refworks/authors/author.rb +10 -0
- data/lib/refworks/authors/authors_request.rb +23 -0
- data/lib/refworks/authors/authors_response.rb +32 -0
- data/lib/refworks/authors/search/authors_search_request.rb +23 -0
- data/lib/refworks/authors/search/authors_search_response.rb +3 -0
- data/lib/refworks/descriptors/all/descriptors_all_request.rb +21 -0
- data/lib/refworks/descriptors/all/descriptors_all_response.rb +3 -0
- data/lib/refworks/descriptors/descriptor.rb +8 -0
- data/lib/refworks/descriptors/descriptors_request.rb +17 -0
- data/lib/refworks/descriptors/descriptors_response.rb +31 -0
- data/lib/refworks/descriptors/search/descriptors_search_request.rb +24 -0
- data/lib/refworks/descriptors/search/descriptors_search_response.rb +3 -0
- data/lib/refworks/folders/all/folders_all_request.rb +20 -0
- data/lib/refworks/folders/all/folders_all_response.rb +3 -0
- data/lib/refworks/folders/folder.rb +10 -0
- data/lib/refworks/folders/folders_request.rb +17 -0
- data/lib/refworks/folders/folders_response.rb +32 -0
- data/lib/refworks/folders/search/folders_search_request.rb +21 -0
- data/lib/refworks/folders/search/folders_search_response.rb +3 -0
- data/lib/refworks/importfilter/allavailable/importfilter_allavailable_request.rb +20 -0
- data/lib/refworks/importfilter/allavailable/importfilter_allavailable_response.rb +3 -0
- data/lib/refworks/importfilter/allglobal/importfilter_allglobal_request.rb +20 -0
- data/lib/refworks/importfilter/allglobal/importfilter_allglobal_response.rb +3 -0
- data/lib/refworks/importfilter/favorites/importfilter_favorites_request.rb +20 -0
- data/lib/refworks/importfilter/favorites/importfilter_favorites_response.rb +3 -0
- data/lib/refworks/importfilter/importfilter.rb +18 -0
- data/lib/refworks/importfilter/importfilter_request.rb +16 -0
- data/lib/refworks/importfilter/importfilter_response.rb +35 -0
- data/lib/refworks/importfilter/search/importfilter_search_request.rb +22 -0
- data/lib/refworks/importfilter/search/importfilter_search_response.rb +3 -0
- data/lib/refworks/manuscript/all/manuscript_all_request.rb +22 -0
- data/lib/refworks/manuscript/all/manuscript_all_response.rb +13 -0
- data/lib/refworks/manuscript/baseurl/manuscript_baseurl_request.rb +22 -0
- data/lib/refworks/manuscript/baseurl/manuscript_baseurl_response.rb +13 -0
- data/lib/refworks/manuscript/byid/manuscript_byid_request.rb +32 -0
- data/lib/refworks/manuscript/byid/manuscript_byid_response.rb +3 -0
- data/lib/refworks/manuscript/file/manuscript_file_request.rb +22 -0
- data/lib/refworks/manuscript/file/manuscript_file_response.rb +18 -0
- data/lib/refworks/manuscript/folder/manuscript_folder_request.rb +22 -0
- data/lib/refworks/manuscript/folder/manuscript_folder_response.rb +14 -0
- data/lib/refworks/manuscript/manuscript_request.rb +20 -0
- data/lib/refworks/manuscript/manuscript_response.rb +3 -0
- data/lib/refworks/manuscript/mylist/manuscript_mylist_request.rb +21 -0
- data/lib/refworks/manuscript/mylist/manuscript_mylist_response.rb +14 -0
- data/lib/refworks/periodicals/all/periodicals_all_request.rb +21 -0
- data/lib/refworks/periodicals/all/periodicals_all_response.rb +3 -0
- data/lib/refworks/periodicals/periodical.rb +9 -0
- data/lib/refworks/periodicals/periodicals_request.rb +17 -0
- data/lib/refworks/periodicals/periodicals_response.rb +31 -0
- data/lib/refworks/periodicals/search/periodicals_search_request.rb +22 -0
- data/lib/refworks/periodicals/search/periodicals_search_response.rb +3 -0
- data/lib/refworks/properties/encoding/encoding.rb +3 -0
- data/lib/refworks/properties/encoding/properties_encoding_request.rb +20 -0
- data/lib/refworks/properties/encoding/properties_encoding_response.rb +3 -0
- data/lib/refworks/properties/fieldlabels/fieldlabel.rb +13 -0
- data/lib/refworks/properties/fieldlabels/properties_fieldlabels_request.rb +22 -0
- data/lib/refworks/properties/fieldlabels/properties_fieldlabels_response.rb +20 -0
- data/lib/refworks/properties/fieldlabels/reftypeFieldlabels.rb +11 -0
- data/lib/refworks/properties/languages/language.rb +8 -0
- data/lib/refworks/properties/languages/properties_languages_request.rb +22 -0
- data/lib/refworks/properties/languages/properties_languages_response.rb +20 -0
- data/lib/refworks/properties/outputlanguage/outputlanguage.rb +8 -0
- data/lib/refworks/properties/outputlanguage/properties_outputlanguage_request.rb +22 -0
- data/lib/refworks/properties/outputlanguage/properties_outputlanguage_response.rb +20 -0
- data/lib/refworks/properties/properties_request.rb +15 -0
- data/lib/refworks/properties/properties_response.rb +3 -0
- data/lib/refworks/properties/sortlocales/properties_sortlocales_request.rb +20 -0
- data/lib/refworks/properties/sortlocales/properties_sortlocales_response.rb +20 -0
- data/lib/refworks/properties/sortlocales/sortlocale.rb +8 -0
- data/lib/refworks/properties/sourcetypes/properties_sourcetypes_request.rb +21 -0
- data/lib/refworks/properties/sourcetypes/properties_sourcetypes_response.rb +20 -0
- data/lib/refworks/properties/sourcetypes/sourcetype.rb +8 -0
- data/lib/refworks/properties/typelabels/properties_typelabels_request.rb +21 -0
- data/lib/refworks/properties/typelabels/properties_typelabels_response.rb +20 -0
- data/lib/refworks/properties/typelabels/typelabel.rb +8 -0
- data/lib/refworks/reference.rb +526 -0
- data/lib/refworks/reference/get/reference_get_request.rb +21 -0
- data/lib/refworks/reference/get/reference_get_response.rb +7 -0
- data/lib/refworks/reference/reference_request.rb +15 -0
- data/lib/refworks/reference/reference_response.rb +3 -0
- data/lib/refworks/request.rb +50 -0
- data/lib/refworks/response.rb +12 -0
- data/lib/refworks/retrieve/advancesearch/retrieve_advancesearch_request.rb +41 -0
- data/lib/refworks/retrieve/advancesearch/retrieve_advancesearch_response.rb +3 -0
- data/lib/refworks/retrieve/all/retrieve_all_request.rb +21 -0
- data/lib/refworks/retrieve/all/retrieve_all_response.rb +3 -0
- data/lib/refworks/retrieve/author/retrieve_author_request.rb +23 -0
- data/lib/refworks/retrieve/author/retrieve_author_response.rb +3 -0
- data/lib/refworks/retrieve/byid/retrieve_byid_request.rb +22 -0
- data/lib/refworks/retrieve/byid/retrieve_byid_response.rb +3 -0
- data/lib/refworks/retrieve/count/retrieve_count_request.rb +21 -0
- data/lib/refworks/retrieve/count/retrieve_count_response.rb +16 -0
- data/lib/refworks/retrieve/descriptor/retrieve_descriptor_request.rb +22 -0
- data/lib/refworks/retrieve/descriptor/retrieve_descriptor_response.rb +3 -0
- data/lib/refworks/retrieve/dup/retrieve_dup_request.rb +21 -0
- data/lib/refworks/retrieve/dup/retrieve_dup_response.rb +3 -0
- data/lib/refworks/retrieve/folder/retrieve_folder_request.rb +21 -0
- data/lib/refworks/retrieve/folder/retrieve_folder_response.rb +3 -0
- data/lib/refworks/retrieve/modsince/retrieve_modsince_request.rb +23 -0
- data/lib/refworks/retrieve/modsince/retrieve_modsince_response.rb +3 -0
- data/lib/refworks/retrieve/nofolder/retrieve_nofolder_request.rb +20 -0
- data/lib/refworks/retrieve/nofolder/retrieve_nofolder_response.rb +3 -0
- data/lib/refworks/retrieve/periodical/retrieve_periodical_request.rb +22 -0
- data/lib/refworks/retrieve/periodical/retrieve_periodical_response.rb +3 -0
- data/lib/refworks/retrieve/quick/retrieve_quick_request.rb +23 -0
- data/lib/refworks/retrieve/quick/retrieve_quick_response.rb +3 -0
- data/lib/refworks/retrieve/retrieve_request.rb +22 -0
- data/lib/refworks/retrieve/retrieve_response.rb +34 -0
- data/lib/refworks/retrieve/saved/retrieve_saved_request.rb +22 -0
- data/lib/refworks/retrieve/saved/retrieve_saved_response.rb +3 -0
- data/lib/refworks/retrieve/specialfolder/retrieve_specialfolder_request.rb +21 -0
- data/lib/refworks/retrieve/specialfolder/retrieve_specialfolder_response.rb +3 -0
- data/lib/refworks/savedsearch/all/savedsearch_all_request.rb +21 -0
- data/lib/refworks/savedsearch/all/savedsearch_all_response.rb +3 -0
- data/lib/refworks/savedsearch/get/savedsearch_get_request.rb +22 -0
- data/lib/refworks/savedsearch/get/savedsearch_get_response.rb +3 -0
- data/lib/refworks/savedsearch/savedsearch.rb +21 -0
- data/lib/refworks/savedsearch/savedsearch_parameter.rb +18 -0
- data/lib/refworks/savedsearch/savedsearch_parameter_component.rb +10 -0
- data/lib/refworks/savedsearch/savedsearch_request.rb +15 -0
- data/lib/refworks/savedsearch/savedsearch_response.rb +24 -0
- data/lib/refworks/version.rb +3 -0
- metadata +224 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
class PropertiesTypelabelsRequest < PropertiesRequest
|
|
2
|
+
def self.call_method
|
|
3
|
+
'typelabels'
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def self.generate_request_info(params)
|
|
7
|
+
|
|
8
|
+
# get common Properties parameters
|
|
9
|
+
class_params = generate_class_params(params)
|
|
10
|
+
|
|
11
|
+
# query parameters for the typelabels call
|
|
12
|
+
method_params = { :method => call_method,
|
|
13
|
+
:language => params[:language],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
query_string_params = class_params.merge(method_params)
|
|
17
|
+
|
|
18
|
+
# return the request info
|
|
19
|
+
{:params => query_string_params}
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class PropertiesTypelabelsResponse < PropertiesResponse
|
|
2
|
+
attr_reader :typelabels
|
|
3
|
+
|
|
4
|
+
def initialize(raw_response)
|
|
5
|
+
super(raw_response)
|
|
6
|
+
if result_code != "200"
|
|
7
|
+
@total = "0"
|
|
8
|
+
return
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# If results returned, process the sourcetypes and metadata
|
|
12
|
+
|
|
13
|
+
lbls = self.parsed_response["refworks"]["RWResult"]["PropertiesResult"]["reference"]
|
|
14
|
+
|
|
15
|
+
@typelabels = Array.new
|
|
16
|
+
lbls.each do |lbl|
|
|
17
|
+
@typelabels << Typelabel.new(lbl)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
|
|
2
|
+
require "mash"
|
|
3
|
+
|
|
4
|
+
#noinspection RubyTooManyInstanceVariablesInspection,RubyTooManyMethodsInspection
|
|
5
|
+
class Reference
|
|
6
|
+
attr_reader :rt, :rt_num, :rt_string, :sr, :id, :a1, :t1, :jf, :jo, :yr, :fd,
|
|
7
|
+
:vo, :is, :sp, :op, :k1, :ab, :no, :a2, :t2, :ed, :pb, :pp, :a3,
|
|
8
|
+
:a4, :a5, :t3, :sn, :av, :ad, :an, :la, :cl, :sf, :ot, :lk, :do,
|
|
9
|
+
:cn, :db, :ds, :ip, :rd, :st, :u1, :u2, :u3, :u4, :u5, :u6, :u7,
|
|
10
|
+
:u8, :u9, :u10, :u11, :u12, :u13, :u14, :u15, :ul, :sl, :ll, :cr,
|
|
11
|
+
:wt, :a6, :wv, :wp, :ol, :pmid, :pmcid,
|
|
12
|
+
:fl, :cd, :md
|
|
13
|
+
|
|
14
|
+
# expecting a HTTParty-parsed RWResult reference hash to be passed in
|
|
15
|
+
def initialize(rawref)
|
|
16
|
+
|
|
17
|
+
# Basically, creating an empty ref. For instance, if you want to
|
|
18
|
+
# hand-construct the reference one field at a time.
|
|
19
|
+
unless rawref["rt"]
|
|
20
|
+
return
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# using Mash so I can use symbols as keys instead of strings, which is what
|
|
24
|
+
# is returned from httparty
|
|
25
|
+
ref = Mash.new(rawref)
|
|
26
|
+
|
|
27
|
+
# Here I populate attributes which correspond to RefWorks Tagged Format.
|
|
28
|
+
# See: http://www.refworks.com/rwathens/help/RefWorks_Tagged_Format.htm
|
|
29
|
+
# for more details. The tag list is in a comment at the end of this file.
|
|
30
|
+
|
|
31
|
+
@rt = ref[:rt]
|
|
32
|
+
|
|
33
|
+
# the next two are my own extensions, not part of the RefWorks tagged format.
|
|
34
|
+
# They are a decomposition of the rt complex value which I think is useful.
|
|
35
|
+
@rt_num = ref[:rt][:typeOrd]
|
|
36
|
+
@rt_string = ref[:rt][:__content__]
|
|
37
|
+
|
|
38
|
+
@sr = ref[:sr]
|
|
39
|
+
|
|
40
|
+
@id = ref[:id][0]
|
|
41
|
+
|
|
42
|
+
# HTTParty will produce either a string or an array when it converts the XML response
|
|
43
|
+
# to a Ruby data structure. Which one it produces depends upon how
|
|
44
|
+
# many authors there are. All values are converted to Arrays, even one item
|
|
45
|
+
# values, for consistency. I do this for any field which can have more than one value.
|
|
46
|
+
# If not an array, and not a value, set nil
|
|
47
|
+
@a1 = if ref[:a1].class == Array then
|
|
48
|
+
ref[:a1]
|
|
49
|
+
else
|
|
50
|
+
ref[:a1] ? ref[:a1].lines.to_a : nil
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
@t1 = ref[:t1]
|
|
54
|
+
|
|
55
|
+
@jf = ref[:jf]
|
|
56
|
+
@jo = ref[:jo]
|
|
57
|
+
@yr = ref[:yr]
|
|
58
|
+
@fd = ref[:fd]
|
|
59
|
+
@vo = ref[:vo]
|
|
60
|
+
@is = ref[:is]
|
|
61
|
+
@sp = ref[:sp]
|
|
62
|
+
@op = ref[:op]
|
|
63
|
+
|
|
64
|
+
if ref[:k1]
|
|
65
|
+
@k1 = ref[:k1].class == Array ? ref[:k1] : ref[:k1].lines.to_a
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
@ab = ref[:ab]
|
|
69
|
+
@no = ref[:no]
|
|
70
|
+
|
|
71
|
+
if ref[:a2]
|
|
72
|
+
@a2 = ref[:a2].class == Array ? ref[:a2] : ref[:a2].lines.to_a
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
@t2 = ref[:t2]
|
|
76
|
+
|
|
77
|
+
@ed = ref[:ed]
|
|
78
|
+
@pb = ref[:pb]
|
|
79
|
+
@pp = ref[:pp]
|
|
80
|
+
|
|
81
|
+
if ref[:a3]
|
|
82
|
+
@a3 = ref[:a3].class == Array ? ref[:a3] : ref[:a3].lines.to_a
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if ref[:a4]
|
|
86
|
+
@a4 = ref[:a4].class == Array ? ref[:a4] : ref[:a4].lines.to_a
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if ref[:a5]
|
|
90
|
+
@a5 = ref[:a5].class == Array ? ref[:a5] : ref[:a5].lines.to_a
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
@t3 = ref[:t3]
|
|
94
|
+
@sn = ref[:sn]
|
|
95
|
+
@av = ref[:av]
|
|
96
|
+
@ad = ref[:ad]
|
|
97
|
+
@an = ref[:an]
|
|
98
|
+
@la = ref[:la]
|
|
99
|
+
@cl = ref[:cl]
|
|
100
|
+
@sf = ref[:sf]
|
|
101
|
+
@ot = ref[:ot]
|
|
102
|
+
@lk = ref[:lk]
|
|
103
|
+
@do = ref[:do]
|
|
104
|
+
@cn = ref[:cn]
|
|
105
|
+
@db = ref[:db]
|
|
106
|
+
@ds = ref[:ds]
|
|
107
|
+
@ip = ref[:ip]
|
|
108
|
+
@rd = ref[:rd]
|
|
109
|
+
@st = ref[:st]
|
|
110
|
+
@u1 = ref[:u1]
|
|
111
|
+
@u2 = ref[:u2]
|
|
112
|
+
@u3 = ref[:u3]
|
|
113
|
+
@u4 = ref[:u4]
|
|
114
|
+
@u5 = ref[:u5]
|
|
115
|
+
@u6 = ref[:u6]
|
|
116
|
+
@u7 = ref[:u7]
|
|
117
|
+
@u8 = ref[:u8]
|
|
118
|
+
@u9 = ref[:u9]
|
|
119
|
+
@u10 = ref[:u10]
|
|
120
|
+
@u11 = ref[:u11]
|
|
121
|
+
@u12 = ref[:u12]
|
|
122
|
+
@u13 = ref[:u13]
|
|
123
|
+
@u14 = ref[:u14]
|
|
124
|
+
@u15 = ref[:u15]
|
|
125
|
+
@ul = ref[:ul]
|
|
126
|
+
@sl = ref[:sl]
|
|
127
|
+
@ll = ref[:ll]
|
|
128
|
+
@cr = ref[:cr]
|
|
129
|
+
@wt = ref[:wt]
|
|
130
|
+
|
|
131
|
+
if ref[:a6]
|
|
132
|
+
@a6 = ref[:a6].class == Array ? ref[:a6] : ref[:a6].lines.to_a
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
@wv = ref[:wv]
|
|
136
|
+
@wp = ref[:wp]
|
|
137
|
+
@ol = ref[:ol]
|
|
138
|
+
@pmid = ref[:pmid]
|
|
139
|
+
@pmcid = ref[:pmcid]
|
|
140
|
+
|
|
141
|
+
# Not documented as part of the RefWorks tagged format, but the API returns these fields
|
|
142
|
+
@fl = ref[:fl]
|
|
143
|
+
@cd = ref[:cd]
|
|
144
|
+
@md = ref[:md]
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# setup human-readable aliases as accessors
|
|
148
|
+
# I've been consistent with the RefWorks tagged format legend (see end of this file)
|
|
149
|
+
# plus I added some additional ones (like "authors" as a synonym for "primary_authors")
|
|
150
|
+
# which seemed particularly useful.
|
|
151
|
+
|
|
152
|
+
def reference_type
|
|
153
|
+
rt
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# extension
|
|
157
|
+
def reference_type_num
|
|
158
|
+
rt_num
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# extension
|
|
162
|
+
def reference_type_string
|
|
163
|
+
rt_string
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def source_type
|
|
167
|
+
sr
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def primary_authors
|
|
171
|
+
a1
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# alias
|
|
175
|
+
def authors
|
|
176
|
+
a1
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def primary_title
|
|
180
|
+
t1
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# alias
|
|
184
|
+
def title
|
|
185
|
+
t1
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def periodical_full
|
|
189
|
+
jf
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def periodical_abbrev
|
|
193
|
+
jo
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def publication_year
|
|
197
|
+
yr
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def publication_data_free_form
|
|
201
|
+
fd
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
def volume
|
|
205
|
+
vo
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def issue
|
|
209
|
+
is
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
def start_page
|
|
213
|
+
sp
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
def other_pages
|
|
217
|
+
op
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
def keyword
|
|
221
|
+
k1
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
def keywords
|
|
225
|
+
k1
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
def abstract
|
|
229
|
+
ab
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
def notes
|
|
233
|
+
no
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
def secondary_authors
|
|
237
|
+
a2
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
def secondary_title
|
|
241
|
+
t2
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def edition
|
|
245
|
+
ed
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def publisher
|
|
249
|
+
pb
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
def place_of_publication
|
|
253
|
+
pp
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
def tertiary_authors
|
|
257
|
+
a3
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
def quaternary_authors
|
|
261
|
+
a4
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
def quinary_authors
|
|
265
|
+
a5
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
def tertiary_title
|
|
269
|
+
t3
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
def issn_isbn
|
|
273
|
+
sn
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
def availability
|
|
277
|
+
av
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
def author_address
|
|
281
|
+
ad
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
def accession_number
|
|
285
|
+
an
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
def language
|
|
289
|
+
la
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def classification
|
|
293
|
+
cl
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
def subfile_database
|
|
297
|
+
sf
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
def original_foreign_title
|
|
301
|
+
ot
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def links
|
|
305
|
+
lk
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
def digital_object_identifier
|
|
309
|
+
# @ sign to avoid collision with Ruby keyword 'do'
|
|
310
|
+
@do
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# alias
|
|
314
|
+
def doi
|
|
315
|
+
# @ sign to avoid collision with Ruby keyword 'do'
|
|
316
|
+
@do
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
def call_number
|
|
320
|
+
cn
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
def database
|
|
324
|
+
db
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
def data_source
|
|
328
|
+
ds
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
def identifying_phrase
|
|
332
|
+
ip
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
def retrieved_date
|
|
336
|
+
rd
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
def shortened_title
|
|
340
|
+
st
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
def user_1
|
|
344
|
+
u1
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
def user_2
|
|
348
|
+
u2
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
def user_3
|
|
352
|
+
u3
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
def user_4
|
|
356
|
+
u4
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
def user_5
|
|
360
|
+
u5
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
def user_6
|
|
364
|
+
u6
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
def user_7
|
|
368
|
+
u7
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
def user_8
|
|
372
|
+
u8
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
def user_9
|
|
376
|
+
u9
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
def user_10
|
|
380
|
+
u10
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
def user_11
|
|
384
|
+
u11
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
def user_12
|
|
388
|
+
u12
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def user_13
|
|
392
|
+
u13
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
def user_14
|
|
396
|
+
u14
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
def user_15
|
|
400
|
+
u15
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
def url
|
|
404
|
+
ul
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
def sponsoring_library
|
|
408
|
+
sl
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
def sponsoring_library_location
|
|
412
|
+
ll
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
def cited_references
|
|
416
|
+
cr
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
def website_title
|
|
420
|
+
wt
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
def website_editors
|
|
424
|
+
a6
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
def website_version
|
|
428
|
+
wv
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
def date_of_electronic_publication
|
|
432
|
+
wp
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
def output_language
|
|
436
|
+
ol
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# extension
|
|
440
|
+
def folder
|
|
441
|
+
fl
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# extension
|
|
445
|
+
def created_date
|
|
446
|
+
cd
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# extension
|
|
450
|
+
def modified_data
|
|
451
|
+
md
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
=begin
|
|
457
|
+
Refworks Export Tagged Format, Tag legend
|
|
458
|
+
|
|
459
|
+
RT=Reference Type
|
|
460
|
+
SR=Source Type (field is either Print(0) or Electronic(1) )
|
|
461
|
+
ID=Reference Identifier
|
|
462
|
+
A1=Primary Authors
|
|
463
|
+
T1=Primary Title
|
|
464
|
+
JF=Periodical Full
|
|
465
|
+
JO=Periodical Abbrev
|
|
466
|
+
YR=Publication Year
|
|
467
|
+
FD=Publication Data, Free Form
|
|
468
|
+
VO=Volume
|
|
469
|
+
IS=Issue
|
|
470
|
+
SP=Start Page
|
|
471
|
+
OP=Other Pages
|
|
472
|
+
K1=Keyword
|
|
473
|
+
AB=Abstract
|
|
474
|
+
NO=Notes
|
|
475
|
+
A2=Secondary Authors
|
|
476
|
+
T2=Secondary Title
|
|
477
|
+
ED=Edition
|
|
478
|
+
PB=Publisher
|
|
479
|
+
PP=Place of Publication
|
|
480
|
+
A3=Tertiary Authors
|
|
481
|
+
A4=Quaternary Authors
|
|
482
|
+
A5=Quinary Authors
|
|
483
|
+
T3=Tertiary Title
|
|
484
|
+
SN=ISSN/ISBN
|
|
485
|
+
AV=Availability
|
|
486
|
+
AD=Author Address
|
|
487
|
+
AN=Accession Number
|
|
488
|
+
LA=Language
|
|
489
|
+
CL=Classification
|
|
490
|
+
SF=Subfile/Database
|
|
491
|
+
OT=Original Foreign Title
|
|
492
|
+
LK=Links
|
|
493
|
+
DO=Digital Object Identifier
|
|
494
|
+
CN=Call Number
|
|
495
|
+
DB=Database
|
|
496
|
+
DS=Data Source
|
|
497
|
+
IP=Identifying Phrase
|
|
498
|
+
RD=Retrieved Date
|
|
499
|
+
ST=Shortened Title
|
|
500
|
+
U1=User 1
|
|
501
|
+
U2=User 2
|
|
502
|
+
U3=User 3
|
|
503
|
+
U4=User 4
|
|
504
|
+
U5=User 5
|
|
505
|
+
U6=User 6
|
|
506
|
+
U7=User 7
|
|
507
|
+
U8=User 8
|
|
508
|
+
U9=User 9
|
|
509
|
+
U10=User 10
|
|
510
|
+
U11=User 11
|
|
511
|
+
U12=User 12
|
|
512
|
+
U13=User 13
|
|
513
|
+
U14=User 14
|
|
514
|
+
U15=User 15
|
|
515
|
+
UL=URL
|
|
516
|
+
SL=Sponsoring Library
|
|
517
|
+
LL=Sponsoring Library Location
|
|
518
|
+
CR=Cited References
|
|
519
|
+
WT=Website Title
|
|
520
|
+
A6=Website editors
|
|
521
|
+
WV=Website version
|
|
522
|
+
WP=Date of Electronic Publication
|
|
523
|
+
OL=Output Language (see codes for specific languages below)
|
|
524
|
+
PMID=PMID
|
|
525
|
+
PMCID=PMCID
|
|
526
|
+
=end
|