talia_core 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -27
- data/VERSION.yml +3 -2
- data/config/database.yml +11 -11
- data/config/talia_core.yml +11 -6
- data/config/talia_core.yml.example +11 -6
- data/generators/talia_base/talia_base_generator.rb +3 -0
- data/generators/talia_base/templates/README +1 -1
- data/generators/talia_base/templates/app/controllers/source_data_controller.rb +1 -1
- data/generators/talia_base/templates/app/controllers/sources_controller.rb +31 -12
- data/generators/talia_base/templates/app/helpers/sources_helper.rb +77 -1
- data/generators/talia_base/templates/app/views/layouts/sources.html.erb +22 -0
- data/generators/talia_base/templates/app/views/sources/_data_list.html.erb +17 -0
- data/generators/talia_base/templates/app/views/sources/_property_item.html.erb +10 -0
- data/generators/talia_base/templates/app/views/sources/_property_list.html.erb +13 -0
- data/generators/talia_base/templates/app/views/sources/index.html.erb +16 -11
- data/generators/talia_base/templates/app/views/sources/semantic_templates/default/default.html.erb +8 -19
- data/generators/talia_base/templates/config/routes.rb +11 -0
- data/generators/talia_base/templates/migrations/create_semantic_relations.rb +2 -1
- data/generators/talia_base/templates/public/images/core/arrow.png +0 -0
- data/generators/talia_base/templates/public/images/core/building.png +0 -0
- data/generators/talia_base/templates/public/images/core/contents_top_left.gif +0 -0
- data/generators/talia_base/templates/public/images/core/document-horizontal-text.png +0 -0
- data/generators/talia_base/templates/public/images/core/document.png +0 -0
- data/generators/talia_base/templates/public/images/core/gear.png +0 -0
- data/generators/talia_base/templates/public/images/core/group.png +0 -0
- data/generators/talia_base/templates/public/images/core/header_bg.gif +0 -0
- data/generators/talia_base/templates/public/images/core/image.png +0 -0
- data/generators/talia_base/templates/public/images/core/imagebig.png +0 -0
- data/generators/talia_base/templates/public/images/core/left_edge.gif +0 -0
- data/generators/talia_base/templates/public/images/core/letter.png +0 -0
- data/generators/talia_base/templates/public/images/core/line.png +0 -0
- data/generators/talia_base/templates/public/images/core/logo.gif +0 -0
- data/generators/talia_base/templates/public/images/core/map.png +0 -0
- data/generators/talia_base/templates/public/images/core/period.png +0 -0
- data/generators/talia_base/templates/public/images/core/person.png +0 -0
- data/generators/talia_base/templates/public/images/core/person_default.png +0 -0
- data/generators/talia_base/templates/public/images/core/place.png +0 -0
- data/generators/talia_base/templates/public/images/core/source.png +0 -0
- data/generators/talia_base/templates/public/images/core/television.png +0 -0
- data/generators/talia_base/templates/public/images/core/text.png +0 -0
- data/generators/talia_base/templates/public/images/core/type.png +0 -0
- data/generators/talia_base/templates/public/images/core/video.png +0 -0
- data/generators/talia_base/templates/public/stylesheets/img/arrow.png +0 -0
- data/generators/talia_base/templates/public/stylesheets/main.css +276 -0
- data/generators/talia_base/templates/script/configure_talia +1 -1
- data/generators/talia_base/templates/script/setup_talia_backend +2 -0
- data/lib/core_ext/platform.rb +1 -0
- data/lib/core_ext/string.rb +6 -0
- data/lib/talia_core/active_source.rb +62 -3
- data/lib/talia_core/active_source_parts/class_methods.rb +36 -122
- data/lib/talia_core/active_source_parts/finders.rb +158 -0
- data/lib/talia_core/active_source_parts/predicate_handler.rb +7 -8
- data/lib/talia_core/active_source_parts/xml/generic_reader.rb +95 -11
- data/lib/talia_core/active_source_parts/xml/rdf_builder.rb +6 -13
- data/lib/talia_core/active_source_parts/xml/source_reader.rb +8 -3
- data/lib/talia_core/data_types/data_loader.rb +14 -6
- data/lib/talia_core/data_types/data_record.rb +5 -1
- data/lib/talia_core/data_types/iip_data.rb +1 -1
- data/lib/talia_core/data_types/mime_mapping.rb +8 -3
- data/lib/talia_core/errors.rb +4 -0
- data/lib/talia_core/initializer.rb +1 -8
- data/lib/talia_core/property_string.rb +58 -0
- data/lib/talia_core/semantic_collection_item.rb +3 -2
- data/lib/talia_core/semantic_collection_wrapper.rb +236 -198
- data/lib/talia_core/source.rb +130 -178
- data/lib/talia_core/source_types/collection.rb +15 -0
- data/lib/talia_core/source_types/dc_resource.rb +22 -0
- data/lib/talia_core/source_types/dummy_source.rb +22 -0
- data/lib/talia_core.rb +0 -1
- data/lib/talia_util/import_job_helper.rb +44 -16
- data/lib/talia_util/io_helper.rb +21 -1
- data/lib/talia_util/rake_tasks.rb +48 -72
- data/lib/talia_util/rdf_update.rb +22 -13
- data/lib/talia_util/test_helpers.rb +1 -1
- data/lib/talia_util.rb +0 -2
- data/test/core_ext/string_test.rb +5 -0
- data/test/talia_core/active_source_test.rb +151 -14
- data/test/talia_core/generic_xml_test.rb +46 -2
- data/test/talia_core/initializer_test.rb +0 -1
- data/test/talia_core/property_string_test.rb +78 -0
- data/test/talia_core/source_reader_test.rb +5 -1
- data/test/talia_core/source_test.rb +23 -32
- data/test/talia_util/import_job_helper_test.rb +1 -1
- data/test/talia_util/io_helper_test.rb +44 -0
- metadata +399 -373
- data/generators/talia_base/templates/app/views/sources/semantic_templates/default/province.html.erb +0 -19
- data/lib/acts_as_roled.rb +0 -11
- data/lib/talia_core/collection.rb +0 -13
- data/lib/talia_core/dc_resource.rb +0 -20
- data/lib/talia_core/dummy_source.rb +0 -20
- data/lib/talia_core/rails_ext/actionpack/action_controller/record_identifier.rb +0 -13
- data/lib/talia_core/rails_ext/actionpack/action_controller.rb +0 -1
- data/lib/talia_core/rails_ext/actionpack.rb +0 -1
- data/lib/talia_core/rails_ext.rb +0 -1
- data/lib/talia_util/data_import.rb +0 -91
- data/lib/talia_util/yaml_import.rb +0 -80
@@ -1,5 +1,5 @@
|
|
1
1
|
module TaliaCore
|
2
|
-
|
2
|
+
|
3
3
|
# Wraps the Array/Collection returned from the ActiveRecord, simply
|
4
4
|
# "hiding" the SemanticProperty objects behind strings.
|
5
5
|
class SemanticCollectionWrapper
|
@@ -71,6 +71,34 @@ module TaliaCore
|
|
71
71
|
items.collect { |item| item.value }
|
72
72
|
end
|
73
73
|
|
74
|
+
# Returns only the values of the given language.
|
75
|
+
# (At the moment this is not aware of region codes or any
|
76
|
+
# specialities, it just does a string matching)
|
77
|
+
#
|
78
|
+
# If no values with the given locale are found, this will
|
79
|
+
# fall back on the default locale and then to the values
|
80
|
+
# that don't have a locale at all.
|
81
|
+
def values_with_lang(language = 'en')
|
82
|
+
language_is_default = (language == I18n.default_locale.to_s)
|
83
|
+
real = []
|
84
|
+
default = []
|
85
|
+
unset = []
|
86
|
+
items.each do |item|
|
87
|
+
# FIXME: At the moment, this only works for value attributes, not for
|
88
|
+
# sources
|
89
|
+
if((val = item.value).respond_to?(:lang))
|
90
|
+
real << val if(val.lang == language)
|
91
|
+
default << val if(!language_is_default && (val.lang == I18n.default_locale.to_s))
|
92
|
+
unset << val if(val.lang.blank?)
|
93
|
+
else
|
94
|
+
default << val
|
95
|
+
end
|
96
|
+
end
|
97
|
+
return real unless(real.empty?)
|
98
|
+
return default unless(default.empty?)
|
99
|
+
unset
|
100
|
+
end
|
101
|
+
|
74
102
|
# Size of the collection.
|
75
103
|
def size
|
76
104
|
return items.size if(loaded?)
|
@@ -80,245 +108,255 @@ module TaliaCore
|
|
80
108
|
items.size
|
81
109
|
else
|
82
110
|
SemanticRelation.count(:conditions => {
|
83
|
-
|
84
|
-
|
111
|
+
'subject_id' => @assoc_source.id,
|
112
|
+
'predicate_uri' => @assoc_predicate })
|
113
|
+
end
|
85
114
|
end
|
86
|
-
end
|
87
115
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
116
|
+
# Joins the elments into a string
|
117
|
+
def join(join_str = ', ')
|
118
|
+
strs = items.collect { |item| item.value.to_s }
|
119
|
+
strs.join(join_str)
|
120
|
+
end
|
93
121
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
122
|
+
# Index of the given value
|
123
|
+
def index(value)
|
124
|
+
items.index(value)
|
125
|
+
end
|
98
126
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
127
|
+
# Check if the collection includes the value
|
128
|
+
def include?(value)
|
129
|
+
items.include?(value)
|
130
|
+
end
|
103
131
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
end
|
111
|
-
alias_method :concat, '<<'
|
112
|
-
|
113
|
-
# Adds the object and gives the relation the given order.
|
114
|
-
def add_with_order(value, order)
|
115
|
-
# We use order exclusively for "ordering" predicates
|
116
|
-
assit_equal(TaliaCore::OrderedSource.index_to_predicate(order), @assoc_predicate) if(order)
|
117
|
-
raise(ArgumentError, "cannot add nil") unless(value != nil)
|
118
|
-
if(value.kind_of?(Array))
|
119
|
-
value.each { |v| add_record_for(v, order) }
|
120
|
-
else
|
121
|
-
add_record_for(value, order)
|
132
|
+
# Get the index of the given item
|
133
|
+
|
134
|
+
# Push to collection. Giving a string will create a property to be created,
|
135
|
+
# saved and associated.
|
136
|
+
def <<(value)
|
137
|
+
add_with_order(value, nil)
|
122
138
|
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
139
|
+
alias_method :concat, '<<'
|
140
|
+
|
141
|
+
# Adds the object and gives the relation the given order.
|
142
|
+
def add_with_order(value, order)
|
143
|
+
# We use order exclusively for "ordering" predicates
|
144
|
+
assit_equal(TaliaCore::OrderedSource.index_to_predicate(order), @assoc_predicate) if(order)
|
145
|
+
raise(ArgumentError, "cannot add nil") unless(value != nil)
|
146
|
+
if(value.kind_of?(Array))
|
147
|
+
value.each { |v| add_record_for(v, order) }
|
148
|
+
else
|
149
|
+
add_record_for(value, order)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# Replace a value with a new one
|
154
|
+
def replace(old_value, new_value)
|
155
|
+
idx = items.index(old_value)
|
156
|
+
items[idx].destroy
|
157
|
+
add_record_for(new_value) { |new_item| items[idx] = new_item }
|
158
|
+
end
|
159
|
+
|
160
|
+
# Remove the given value. With no parameters, the whole list will be
|
161
|
+
# cleared and the RDF will be updated immediately.
|
162
|
+
def remove(*params)
|
163
|
+
if(params.length > 0)
|
164
|
+
params.each { |par| remove_relation(par) }
|
140
165
|
else
|
141
|
-
|
166
|
+
if(loaded?)
|
167
|
+
items.each { |item| item.relation.destroy }
|
168
|
+
else
|
169
|
+
SemanticRelation.destroy_all(
|
142
170
|
:subject_id => @assoc_source.id,
|
143
171
|
:predicate_uri => @assoc_predicate
|
144
|
-
|
172
|
+
)
|
173
|
+
end
|
174
|
+
@assoc_source.my_rdf.remove(N::URI.new(@assoc_predicate))
|
175
|
+
@items = []
|
176
|
+
@loaded = true
|
145
177
|
end
|
146
|
-
@assoc_source.my_rdf.remove(N::URI.new(@assoc_predicate))
|
147
|
-
@items = []
|
148
|
-
@loaded = true
|
149
178
|
end
|
150
|
-
end
|
151
179
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
180
|
+
# This attempts to save the items to the database
|
181
|
+
def save_items!
|
182
|
+
return if(clean?) # If there are no items, nothing was modified
|
183
|
+
@assoc_source.save! unless(@assoc_source.id)
|
184
|
+
@items.each do |item|
|
185
|
+
next if(item.fat_relation) # we skip the fat relations, they are never new and never saveable
|
186
|
+
rel = item.plain_relation
|
187
|
+
must_save = rel.new_record?
|
188
|
+
if(rel.object_id.nil?)
|
189
|
+
rel.object.save! if(rel.object.new_record?)
|
190
|
+
rel.object_id = rel.object.id
|
191
|
+
must_save = true
|
192
|
+
end
|
193
|
+
unless(rel.subject_id != nil)
|
194
|
+
rel.subject_id = @assoc_source.id
|
195
|
+
must_save = true
|
196
|
+
end
|
197
|
+
rel.save! if(must_save)
|
168
198
|
end
|
169
|
-
|
199
|
+
@items = nil unless(loaded?) # Otherwise we'll have trouble reload-and merging
|
170
200
|
end
|
171
|
-
@items = nil unless(loaded?) # Otherwise we'll have trouble reload-and merging
|
172
|
-
end
|
173
201
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
202
|
+
# Indicates of the internal collection is loaded
|
203
|
+
def loaded?
|
204
|
+
@loaded
|
205
|
+
end
|
178
206
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
207
|
+
# Indicates that the wraper is "clean", that is it hasn't been written to
|
208
|
+
# or read from
|
209
|
+
def clean?
|
210
|
+
@items.nil?
|
211
|
+
end
|
184
212
|
|
185
|
-
|
186
|
-
|
187
|
-
|
213
|
+
def empty?
|
214
|
+
self.size == 0
|
215
|
+
end
|
188
216
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
217
|
+
# Injector for a fat relation. This must take place before flagging the
|
218
|
+
# source as "loaded"
|
219
|
+
def inject_fat_item(fat_rel)
|
220
|
+
raise(RuntimeError, 'Trying to inject in loaded object.') if(loaded?)
|
221
|
+
@items ||= []
|
222
|
+
@items << SemanticCollectionItem.new(fat_rel, :fat)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Forces this relation to be empty. This initializes the relation
|
226
|
+
# as if no elements exist. This doesn't look anything up in the
|
227
|
+
# databse. *Warning* Only call this if you need an empty wrapper
|
228
|
+
# that doesn't look up anything in the database
|
229
|
+
def init_as_empty!
|
230
|
+
raise(ArgumentError, "Already initialized!") if(loaded?)
|
231
|
+
@items = []
|
232
|
+
@loaded = true
|
233
|
+
end
|
196
234
|
|
197
|
-
|
235
|
+
private
|
198
236
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
237
|
+
# Load the current relation. (Loading should be lazy, so that the database
|
238
|
+
# is not hit until needed.
|
239
|
+
def load!
|
240
|
+
# The "fat" relations contain all the data to build the related objects if
|
241
|
+
# required
|
242
|
+
relations = SemanticRelation.find_fat_relations(@assoc_source, @assoc_predicate)
|
205
243
|
|
206
|
-
|
207
|
-
|
244
|
+
init_from_fat_rels(relations)
|
245
|
+
end
|
208
246
|
|
209
|
-
|
247
|
+
# Inject a fat relation into the items
|
248
|
+
|
249
|
+
# Inititlizes the collection from the given collection of "fat" relations
|
250
|
+
def init_from_fat_rels(fat_relations)
|
251
|
+
# Check if there are records that have been added previously
|
252
|
+
old_items = @items
|
253
|
+
# Create the internal collection
|
254
|
+
@items = Array.new(fat_relations.size)
|
255
|
+
fat_relations.each_index do |idx|
|
256
|
+
rel = SemanticCollectionItem.new(fat_relations.at(idx), :fat)
|
257
|
+
@items[idx] = rel
|
258
|
+
end
|
259
|
+
@items = (@items | old_items) if(old_items)
|
260
|
+
@loaded = true
|
261
|
+
@items
|
262
|
+
end
|
210
263
|
|
264
|
+
# Returns the items in the collection
|
265
|
+
def items
|
266
|
+
load! unless(loaded?)
|
267
|
+
@items
|
268
|
+
end
|
211
269
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
fat_relations.each_index do |idx|
|
219
|
-
rel = SemanticCollectionItem.new(fat_relations.at(idx), :fat)
|
220
|
-
@items[idx] = rel
|
270
|
+
# Deletes the relation where with the current predicate and the given
|
271
|
+
# value.
|
272
|
+
def remove_relation(value)
|
273
|
+
idx = items.index(value)
|
274
|
+
return unless(idx)
|
275
|
+
remove_at(idx)
|
221
276
|
end
|
222
|
-
@items = (@items | old_items) if(old_items)
|
223
|
-
@loaded = true
|
224
|
-
@items
|
225
|
-
end
|
226
277
|
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
278
|
+
# Removes a relation at the given index
|
279
|
+
def remove_at(index)
|
280
|
+
items.at(index).relation.destroy
|
281
|
+
items.delete_at(index)
|
282
|
+
end
|
232
283
|
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
284
|
+
# Creates a record for a value and adds it. This will add the given value if it's
|
285
|
+
# a database record and otherwise create a property with the given value.
|
286
|
+
# The block can be given when you want to add the new SemanticCollectionItem
|
287
|
+
# to the colleciton in a specific way.
|
288
|
+
# are loaded.
|
289
|
+
def add_record_for(value, order = nil)
|
290
|
+
if(@force_type)
|
291
|
+
# If we have a type, we must transform the value
|
292
|
+
value = value.respond_to?(:uri) ? value.uri : value
|
293
|
+
value = ActiveSource.new(value.to_s)
|
294
|
+
end
|
240
295
|
|
241
|
-
|
242
|
-
def remove_at(index)
|
243
|
-
items.at(index).relation.destroy
|
244
|
-
items.delete_at(index)
|
245
|
-
end
|
296
|
+
value = check_for_source(value) if(value.is_a?(ActiveSource))
|
246
297
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
# are loaded.
|
252
|
-
def add_record_for(value, order = nil)
|
253
|
-
if(@force_type)
|
254
|
-
# If we have a type, we must transform the value
|
255
|
-
value = value.respond_to?(:uri) ? value.uri : value
|
256
|
-
value = ActiveSource.new(value.to_s)
|
298
|
+
rel = create_predicate(value)
|
299
|
+
rel.rel_order = order if(order)
|
300
|
+
item = SemanticCollectionItem.new(rel, :plain)
|
301
|
+
block_given? ? yield(item) : insert_item(item)
|
257
302
|
end
|
258
303
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
block_given? ? yield(item) : insert_item(item)
|
265
|
-
end
|
266
|
-
|
267
|
-
# Insert a new item
|
268
|
-
def insert_item(item)
|
269
|
-
@items ||= []
|
270
|
-
@items << item
|
271
|
-
end
|
304
|
+
# Insert a new item
|
305
|
+
def insert_item(item)
|
306
|
+
@items ||= []
|
307
|
+
@items << item
|
308
|
+
end
|
272
309
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
310
|
+
# Write a triple to the store. For normal operation it's recommended that
|
311
|
+
# the usual accessor methods are used. This method does less checking
|
312
|
+
# and does not accept array objects as value.
|
313
|
+
def create_predicate(value)
|
314
|
+
# TODO: Semantic Properties should only be created inside, since assigning
|
315
|
+
# one to multiple relations and then deleting breaks integrity.
|
316
|
+
# The whole semantic property should be flattened into a field in
|
317
|
+
# SemanticRelation anyway.
|
318
|
+
assit(!value.is_a?(SemanticProperty), "Should not pass in Semantic Properties here!")
|
319
|
+
# We need to manually create the relation, to add the predicate_url
|
320
|
+
to_add = SemanticRelation.new(
|
284
321
|
:subject_id => @assoc_source.id,
|
285
322
|
:predicate_uri => @assoc_predicate
|
286
|
-
|
323
|
+
) # Create a new relation linked to this object
|
287
324
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
325
|
+
if(value.is_a?(TaliaCore::ActiveSource) || value.is_a?(TaliaCore::SemanticProperty))
|
326
|
+
to_add.object = value
|
327
|
+
else
|
328
|
+
prop = TaliaCore::SemanticProperty.new
|
329
|
+
# Check if we need to add from a PropertyString
|
330
|
+
prop.value = value.is_a?(PropertyString) ? value.to_rdf : value
|
331
|
+
to_add.object = prop
|
332
|
+
end
|
333
|
+
to_add
|
294
334
|
end
|
295
|
-
to_add
|
296
|
-
end
|
297
335
|
|
298
336
|
|
299
337
|
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
338
|
+
# This "checks" for the given source. If a source with the same URI has been
|
339
|
+
# added to any collection wrapper unsaved
|
340
|
+
def check_for_source(source)
|
341
|
+
return source unless(source.new_record?)
|
342
|
+
cached = unsaved_source_cache[source.uri.to_s]
|
343
|
+
if(cached.nil?)
|
344
|
+
unsaved_source_cache[source.uri.to_s] = source
|
345
|
+
cached = source
|
346
|
+
end
|
347
|
+
cached
|
308
348
|
end
|
309
|
-
cached
|
310
|
-
end
|
311
349
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
350
|
+
# Cache for sources that were added as unsaved elements
|
351
|
+
def self.unsaved_source_cache
|
352
|
+
@unsaved_source_cache ||= {}
|
353
|
+
end
|
316
354
|
|
317
|
-
|
318
|
-
|
319
|
-
|
355
|
+
def unsaved_source_cache
|
356
|
+
SemanticCollectionWrapper.unsaved_source_cache
|
357
|
+
end
|
320
358
|
|
321
359
|
|
360
|
+
end
|
361
|
+
|
322
362
|
end
|
323
|
-
|
324
|
-
end
|