diff --git a/application/config/version.php b/application/config/version.php index 3421d336c5..ae90e8960a 100644 --- a/application/config/version.php +++ b/application/config/version.php @@ -29,14 +29,14 @@ * * @var string */ -$config['version'] = '2.37.2'; +$config['version'] = '3.0.0'; /** * Version release date. * * @var string */ -$config['release_date'] = '2019-11-21'; +$config['release_date'] = '2019-12-03'; /** * Link to the code repository downloads page. diff --git a/application/controllers/attribute_by_survey.php b/application/controllers/attribute_by_survey.php index 0d91569dff..a43f6d18c7 100644 --- a/application/controllers/attribute_by_survey.php +++ b/application/controllers/attribute_by_survey.php @@ -47,7 +47,7 @@ public function index() { $segments = $this->uri->segment_array(); $this->_survey_id = $segments[2]; $this->pagetitle = 'Attributes for ' . $this->getSurvey()->title; - $this->page_breadcrumbs[] = html::anchor('survey', 'Surveys'); + $this->page_breadcrumbs[] = html::anchor('survey', 'Survey datasets'); $this->page_breadcrumbs[] = $this->pagetitle; $this->template->content = new View('attribute_by_survey/index'); $this->template->title = $this->pagetitle; @@ -348,7 +348,7 @@ protected function get_return_page() { * Set the edit page breadcrumbs to cope with the fact this controller handles all *_attributes_website models. */ protected function defineEditBreadcrumbs() { - $this->page_breadcrumbs[] = html::anchor('survey', 'Surveys'); + $this->page_breadcrumbs[] = html::anchor('survey', 'Survey datasets'); $survey = ORM::Factory('survey', $this->model->restrict_to_survey_id); $this->page_breadcrumbs[] = html::anchor('/attribute_by_survey/'.$this->model->restrict_to_survey_id.'?type='.$this->type, 'Attributes for '.$survey->title); $this->page_breadcrumbs[] = $this->model->caption(); diff --git a/application/controllers/occurrence.php b/application/controllers/occurrence.php index 9669d5ef8d..c32807f6c2 100644 --- a/application/controllers/occurrence.php +++ b/application/controllers/occurrence.php @@ -36,7 +36,7 @@ public function __construct() { $this->columns = [ 'id' => 'ID', 'website' => 'Website', - 'survey' => 'Survey', + 'survey' => 'Survey dataset', 'taxon' => 'Taxon', 'entered_sref' => 'Spatial Ref', 'date_start' => 'Date', diff --git a/application/controllers/sample.php b/application/controllers/sample.php index 5dca220325..90653883cb 100644 --- a/application/controllers/sample.php +++ b/application/controllers/sample.php @@ -32,10 +32,10 @@ public function __construct() ( 'id' => 'ID', 'website' => 'Website', - 'survey' => 'Survey', + 'survey' => 'Survey dataset', 'entered_sref' => 'Spatial Ref.', 'location' => 'Location', - 'date_start' => 'Date' + 'date_start' => 'Date', ); $this->set_website_access('editor'); } diff --git a/application/controllers/survey_comment.php b/application/controllers/survey_comment.php index 2f96385c2e..ff781fe0d4 100644 --- a/application/controllers/survey_comment.php +++ b/application/controllers/survey_comment.php @@ -77,7 +77,7 @@ protected function get_return_page() { * Define non-standard behaviuor for the breadcrumbs, since this is accessed via a taxon list */ protected function defineEditBreadcrumbs() { - $this->page_breadcrumbs[] = html::anchor('survey', 'Surveys'); + $this->page_breadcrumbs[] = html::anchor('survey', 'Survey datasets'); if ($this->model->id) { // editing an existing item, so our argument is the survey_comment_id $survey_id = $this->model->survey_id; diff --git a/application/controllers/survey_medium.php b/application/controllers/survey_medium.php index 13e5cec88d..b370fb1c9e 100644 --- a/application/controllers/survey_medium.php +++ b/application/controllers/survey_medium.php @@ -73,8 +73,9 @@ protected function getDefaults() { */ protected function get_return_page() { if (array_key_exists('survey_medium:survey_id', $_POST)) { - return "survey/edit/".$_POST['survey_medium:survey_id']."?tab=Media_Files"; - } else { + return "survey/edit/" . $_POST['survey_medium:survey_id'] . "?tab=Media_Files"; + } + else { return $this->model->object_name; } } @@ -82,28 +83,28 @@ protected function get_return_page() { /** * Get the list of terms ready for the media types list. */ - protected function prepareOtherViewData(array $values) - { - return array( - 'media_type_terms' => $this->get_termlist_terms('indicia:media_types') - ); + protected function prepareOtherViewData(array $values) { + return [ + 'media_type_terms' => $this->get_termlist_terms('indicia:media_types'), + ]; } /** * Define non-standard behaviuor for the breadcrumbs, since this is accessed via a survey */ protected function defineEditBreadcrumbs() { - $this->page_breadcrumbs[] = html::anchor('survey', 'Surveys'); + $this->page_breadcrumbs[] = html::anchor('survey', 'Survey datasets'); if ($this->model->id) { - // editing an existing item + // Editing an existing item. $surveyId = $this->model->survey_id; - } else { - // creating a new one so our argument is the survey id + } + else { + // Creating a new one so our argument is the survey id. $surveyId = $this->uri->argument(1); } $survey = ORM::factory('survey', $surveyId); - $this->page_breadcrumbs[] = html::anchor('survey/edit/'.$surveyId, $survey->caption()); + $this->page_breadcrumbs[] = html::anchor("survey/edit/$surveyId", $survey->caption()); $this->page_breadcrumbs[] = $this->model->caption(); } -} \ No newline at end of file +} diff --git a/application/controllers/user.php b/application/controllers/user.php index cb28507473..523c94dcc7 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -66,9 +66,26 @@ protected function get_action_columns() { } protected function password_fields($password = '', $password2 = '') { - return '
This page allows you to specify a users details.