-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
1,992 additions
and
1,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
Checklist.TaxonConceptController = Ember.ArrayController.extend({ | ||
content: [], | ||
|
||
taxaCount: 0, | ||
|
||
contentIds: function(){ | ||
return this.get('content').objectAt(0).get('contentIds'); | ||
}.property('content'), | ||
contentHistory: null, | ||
contentDidChange: function(){ | ||
if (this.get('content.isLoaded')){ | ||
this.set('taxaCount', this.get('content').objectAt(0).get('total_cnt')); | ||
this.set('contentHistory', | ||
Checklist.store.findMany(Checklist.TimelinesForTaxonConcept, this.get('contentIds')) | ||
); | ||
} | ||
}.observes('content.isLoaded','contentIds'), | ||
|
||
refresh: function(params) { | ||
this.set('content', Checklist.store.find( | ||
refresh: function(params){ | ||
var that = this; | ||
var promise = new RSVP.Promise(); | ||
var res = Checklist.store.find( | ||
Checklist.Index, | ||
params | ||
)); | ||
$.extend({locale: Em.I18n.currentLocale}, params) | ||
); | ||
res.addObserver( | ||
'@each.didLoad', | ||
function(){ | ||
Ember.run.once( | ||
this, | ||
function() { promise.resolve(res); } | ||
); | ||
} | ||
); | ||
promise.then(function(taxon_concepts_index_ary){ | ||
that.set('content', taxon_concepts_index_ary); | ||
var contentIds = taxon_concepts_index_ary.objectAt(0).get('contentIds'); | ||
Checklist.store.find( | ||
Checklist.TimelinesForTaxonConcept, { | ||
taxon_concept_ids: contentIds, locale: Em.I18n.currentLocale | ||
} | ||
); | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,113 @@ | ||
Em.I18n.locales = {}; | ||
|
||
Em.I18n.locales.en = { | ||
'title': 'Checklist of CITES Species', | ||
'about.title': 'About the CITES Checklist', | ||
'terms.title': 'Terms of Use', | ||
'toplink.about': 'About', | ||
'toplink.terms': 'Terms of Use', | ||
'powered.by': 'Powered By', | ||
|
||
'search.by_taxon.button': 'SEARCH', | ||
'search.by_taxon.placeholder': 'Species, higher taxon, synonym or common name...', | ||
'search.by_appendix.all': 'All', | ||
'search.by_appendix.appxs': 'Appxs.', | ||
|
||
'search.by_location.placeholder': 'Type to filter countries or regions', | ||
'search.by_location.selected': 'Selected Locations', | ||
'search.by_location.regions': 'Regions', | ||
'search.by_location.countries': 'Countries and territories', | ||
'search.by_location.no_matches': 'No matches', | ||
|
||
'search.clear': 'Clear Search', | ||
'search.no_results': 'Your search did not match any taxa.', | ||
'search.results.page': 'Page', | ||
|
||
'search.result.show_history': 'Show History', | ||
'search.result.hide_history': 'Hide History', | ||
'distribution.more': 'and {{count}} more.', | ||
'distribution.see_all': 'See all...', | ||
|
||
'timeline.party': 'See reservations to CITES listings', | ||
'timeline.split': 'NB: this taxon is split-listed. See also timeline(s) ' + | ||
'for lower taxa.', | ||
'timeline.nohistory': 'No history information is available for this taxon.', | ||
'timeline.reservations': 'Appendix-{{appendix}} reservations:', | ||
'timeline.event.appendix': 'CITES Appendix {{appendix}}', | ||
'timeline.event.symbol.amendment': 'A', | ||
'timeline.event.symbol.reservation': 'R', | ||
'timeline.event.symbol.reservation_withdrawal': 'W', | ||
'timeline.event.description.addition': 'APPENDIX', | ||
'timeline.event.description.reservation': 'RESERVATION', | ||
'timeline.event.description.reservation_withdrawal': 'RESERVATION WITHDRAWAL', | ||
|
||
'advanced.title': 'Advanced Options', | ||
'advanced.common_names': 'COMMON NAMES', | ||
'advanced.common_names.en': 'EN', | ||
'advanced.common_names.es': 'ES', | ||
'advanced.common_names.fr': 'FR', | ||
'advanced.online_view': 'Online view', | ||
'advanced.online_view.alphabetical': 'Alphabetical', | ||
'advanced.online_view.taxonomic': 'Taxonomic', | ||
'advanced.online_view.appendix': 'Appendix', | ||
'advanced.display': 'DISPLAY', | ||
'advanced.display.synonyms': 'Synonyms', | ||
'advanced.display.author_name': 'Author\'s name', | ||
'advanced.display.unfold_history': 'History of listing', | ||
'advanced.downloads': 'Downloads', | ||
'advanced.downloads.include_intro': 'Include introduction in PDF', | ||
'advanced.downloads.separator': 'CSV separator', | ||
'advanced.downloads.separator.comma': 'comma', | ||
'advanced.downloads.separator.semicolon': 'semicolon', | ||
|
||
'downloads.button': 'Download', | ||
'downloads.popup.title': 'Download Taxa', | ||
'downloads.popup.info': 'Please select the format of your choice', | ||
|
||
'download.button': 'Download', | ||
'download.failed': 'Failed.', | ||
'download.remove': 'Remove?', | ||
'download.spinner': 'Downloading...', | ||
|
||
'saved_search.button': 'SAVE THIS', | ||
'saved_search.count.zero': '', | ||
'saved_search.count.one': '1 saved search', | ||
'saved_search.count.other': '{{count}} saved searches', | ||
|
||
'featured.title': 'Featured', | ||
'featured.index': 'Full species list', | ||
'featured.history': 'History of listings', | ||
'featured.format': 'Format', | ||
|
||
'locations.count.zero': 'All Locations', | ||
'locations.count.one': '1 Location', | ||
'locations.count.other': '{{count}} Locations', | ||
|
||
'reports.count.zero': '', | ||
'reports.count.one': 'Generating 1 report', | ||
'reports.count.other': 'Generating {{count}} reports', | ||
|
||
'reports.ready.count.zero': '', | ||
'reports.ready.count.one': '1 report ready', | ||
'reports.ready.count.other': '{{count}} reports ready', | ||
|
||
'reports.failed.count.zero': '', | ||
'reports.failed.count.one': '1 report failed', | ||
'reports.failed.count.other': '{{count}} reports failed', | ||
|
||
'reports.failed.description': 'You can restart a download, or remove it from the list.', | ||
'reports.generating.description': 'It can take some time, but you can close this window and continue working in other CITES Checklist reports.', | ||
'reports.failed.description': 'You can restart a download, or remove it ' + | ||
'from the list.', | ||
'reports.generating.description': 'It can take some time, but you can ' + | ||
'close this window and continue working in other CITES Checklist reports.', | ||
|
||
'reports.ready.title': 'Your Reports', | ||
'reports.generating.title': 'Currently Generating Reportings', | ||
'reports.latest.title': 'Your report is being generated', | ||
|
||
'results.count.zero': 'taxa', | ||
'results.count.one': 'taxon', | ||
'results.count.other': 'taxa' | ||
'splash.p1': 'CITES (the Convention on International Trade in Endangered ' + | ||
'Species of Wild Fauna and Flora) is an international agreement between ' + | ||
'governments that aims to ensure that international trade in specimens ' + | ||
'of wild animals and plants does not threaten their survival.', | ||
'splash.p2': 'The Checklist of CITES Species allows the exploration of ' + | ||
'more than 35,000 species of animals and plants and their degree of ' + | ||
'protection.', | ||
'splash.button': 'Start Exploring' | ||
}; |
Oops, something went wrong.