def q5c_species(self): v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/SpeciesList/text()'][0] other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts/SpeciesList'\ '/Q5c_SpeciesOther/text()'] return ItemListFiltered(v.split(' ') + other)
def q5c_habitats(self): v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/Habitats/text()'] other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts/Habitats' \ '/Q5c_HabitatsOther/text()'] return ItemListFiltered(v + other)
def q5c_pressures(self): v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/Pressures/text()'][0] other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/Pressures/Q5c_PressureOther/text()'] return ItemListFiltered(v.split(' ') + other)
def q5c_physical(self): v = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/PhysicalChemicalFeatures/text()'][0] other = self.mpr['.//Q5c_RelevantFeaturesPressuresImpacts' \ '/PhysicalChemicalFeatures' \ '/Q5c_PhysicalChemicalOther/text()'] return ItemListFiltered(v.split(' ') + other)
def q2a_public_dates(self): nodes = self.r['Q2a_PublicConsultationDates'] v = [] for node in nodes: start = node.xpath('StartDate/text()')[0] end = node.xpath('EndDate/text()')[0] v.append('{} / {}'.format(start, end)) return ItemListFiltered(v)
def _rows_from_children_nodes(self, nodes): res = [] for node in nodes.getchildren(): name = node.tag value = node.xpath('AddressedByProgramme/text()')[0] other = node.xpath('DescriptionOther/text()') if other: v = [value] + other res.append((name, ItemListFiltered(v))) continue res.append((name, value)) return res
def q9b_other(self): v = self.subr['.//Other/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q9b_pres_output(self): v = self.subr['.//Pressure_output/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q9b_activity(self): v = self.subr['.//Activity/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q7c_measures(self): v = self.mpr['.//Q7c_RelevantMeasure/text()'] return ItemListFiltered(v)
def q9b_hab_impact(self): v = self.subr['.//Habitat_impacts/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q9e_quality(self): v = self.subr['.//Q9e_QualityAssurance/text()'][0] other = self.subr['.//Q9e_QualityAssurance/Q9e_Other/text()'] return ItemListFiltered(v.split(' ') + other)
def q4b_responsible_org(self): v = self.r['Q4b_ResponsibleOrganisations' \ '/Q4b_ResponsibleOrganisation/text()'] return ItemListFiltered(v)
def q9b_spec_popsize(self): v = self.subr['.//Species_population_size/MeasurementParameter' \ '/text()'][0] return ItemListFiltered(v.split(' '))
def q2b_public_description(self): v = self.r['Q2b_PublicConsultationDescription/text()'] return ItemListFiltered(v)
def q5a_gesindicator(self): v = self.mpr['.//Q5b_RelevantGESIndicators/text()'][0] other = self.mpr['.//Q5b_RelevantGESIndicators' \ '/Q5b_DescriptionOther/text()'] return ItemListFiltered(v.split(' ') + other)
def q9b_spec_distr(self): v = self.subr['.//Species_distribution/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q5a_gescrit(self): v = self.mpr['.//Q5a_RelevantGESCriteria/text()'][0] other = self.mpr['.//Q5a_RelevantGESCriteria' \ '/Q5a_DescriptionOther/text()'] return ItemListFiltered(v.split(' ') + other)
def q9a_element(self): v = self.subr['.//Q9a_ElementMonitored/text()'] return ItemListFiltered(v)
def q7a_activities(self): v = self.mpr['.//Q7a_RelevantActivities/text()'][0] other = self.mpr['.//Q7a_UsesActivitiesOther/text()'] return ItemListFiltered(v.split(' ') + other)
def mru_mp(self): v = self.mpr['.//MonitoringProgramme//MarineUnitID/text()'] return ItemListFiltered(v)
def q5e_natural(self): v = self.mpr['MonitoringProgramme/Q5e_NaturalVariablity/text()'][0] other = self.mpr['.//Q5e_NaturalVariablity/Q5e_Other/text()'] return ItemListFiltered(v.split(' ') + other)
def q9h_temporal(self): v = self.subr['.//Q9h_TemporalResolutionSampling/text()'][0] other = self.subr['.//Q9h_TemporalResolutionSampling/Q9h_Other/text()'] return ItemListFiltered(v.split(', ') + other)
def q9b_hab_distr(self): v = self.subr['.//Habitat_distribution/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q10a_aggregation(self): v = self.subr['.//Q10a_AggregationData/text()'][0] other = self.subr['.//Q10a_AggregationData/Q10a_Other/text()'] return ItemListFiltered(v.split(' ') + other)
def q9b_hab_cond_bio(self): v = self.subr['.//Habitat_condition_biological' \ '/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q9b_spec_popchar(self): v = self.subr['.//Species_population_characteristics' \ '/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def q8a_links(self): v = self.mpr['.//Q8a_LinksExistingMonitoringProgrammes/text()'][0] other = self.mpr['.//Q8a_Other/text()'] return ItemListFiltered(v.split(' ') + other)
def q9b_spec_impact(self): v = self.subr['.//Species_impacts/MeasurementParameter/text()'][0] return ItemListFiltered(v.split(' '))
def mru(self): v = self.mpr['ReferenceExistingProgramme//MarineUnitID/text()'] return ItemListFiltered(v)