aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXinhui2017-01-24 12:20:59 +0100
committerXinhui2017-01-24 12:20:59 +0100
commit17e8676b5456a51697168659a10693ddec7633ce (patch)
tree2ea10cfc9e52aefef0093051ade74af27b08833c /lib
parent2174668073a0cf6e03114b4fd3e0a91678009642 (diff)
downloadchouette-core-17e8676b5456a51697168659a10693ddec7633ce.tar.bz2
Fix area_type of Quay is now based on OBJET_QUALIFIER value
Refs #2451
Diffstat (limited to 'lib')
-rw-r--r--lib/stif/reflex_synchronization.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb
index b620051af..b7001bf68 100644
--- a/lib/stif/reflex_synchronization.rb
+++ b/lib/stif/reflex_synchronization.rb
@@ -71,8 +71,13 @@ module Stif
end
def stop_area_area_type entry, method
- type = entry['type'] == 'Quay' ? 'zde' : entry['TypeOfPlaceRef']
- type = "#{type.to_s}#{method.last}" unless type == 'LDA'
+ if entry['type'] == 'Quay'
+ type = 'zder' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT'
+ type = 'zdep' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT'
+ else
+ type = entry['TypeOfPlaceRef']
+ type = "#{type.to_s}#{method.last}" unless type == 'LDA'
+ end
type.downcase
end