Closed SophieDavison closed 8 years ago
Hi Sophie, The Indicia pages are "functional" rather than "content", so the output is a bit more embedded in the code than the Drupal content. Having said that its by no means impossible though it would be easier to explain with specific examples. If you want, can you give me a couple of examples of exactly what you want to change and I'll write up a few tutorial notes for you on how to do it. Cheers John
Some examples of things we wanted to alter on the Indicia pages:
On the page where people match up the columns in their spreadsheet to the fields in the database, we wanted to include a little bit of text to explain to people about what
We were also wanting to include a note on the page people see if a number of records in an import fail to upload successfully (due to an error in the spreadsheet, for example) to explain that they then have to download the generated spreadsheet containing failed records, correct the errors and then re-upload the generated spreadsheet, rather than re-uploading their whole dataset again.
Hi Sophie, For the first point, I think you basically need to edit and append some text to the paragraph at the top of the column mapping page? We can do this using the facility to translate Indicia pages to other languages, which can also be used to change the wording used for English to your own preferences. To do that you can use a file which contains the translations to apply. You'll need to edit the file directly on the server using an FTP client - I'll give you the instructions here for safe-keeping but if you prefer just pass the text to me and I'll do it.
global $custom_term_overrides;
$custom_term_overrides[] = array(
'' => '',
);
If the file exists, add a line above the final parenthesis containing just '' => '',
'' => '',
bit is a placeholder for a translation - with the key of the item you are translating from in the first pair of quotes, then the final translation to show in the 2nd. So, you need to find out the key. Often the key is going to be exactly the same as the text you see on screen, particularly for shorter translations. Sometimes, and particularly for longer translations, the key is shorter to make it less cumbersome to use. To find the key, add ¬ranslate to the page and reload it. You will see square brackets around the various keys on the page, which will contain the untranslated keys. You need to copy the relevant key out of the square brackets and paste it into the first pair of quotes. The key you need is column_mapping_instructions
so the file content will look something like:
global $custom_term_overrides;
$custom_term_overrides[] = array(
'column_mapping_instructions' => 'My text goes here',
);
For your second suggestion, I actually like the idea of adding some more explanatory text here as part of the standard code, as it will be useful for other users of Indicia. Would you like to propose some text to add to the page in the event of there being some errors?
Hi John,
Okay, for now I think it's probably easier if I just send you the text, which is as follows.
On the page where people match up the columns in their spreadsheet to the fields in the database:
Previously defined fields (i.e. spatial reference system, pass definition, sensitivity) can be left as
A note on the page people see if a number of records in an import fail to upload successfully (due to an error in the spreadsheet, for example): If part of your upload was unsuccessful, download the generated CSV file which holds the rows of data that did not upload. Find the column 'Problem' which lists the associated error for each row. Correct the error, and then re-upload the CSV file containing only the rows of data which did not upload correctly. Please do not re-upload the whole dataset again.
Are we still okay to edit pages on the website whilst you're sorting it out today or do you want us to leave it alone for a bit??
Cheers
Sophie
In the second paragraph above (if a number of records in an import fail to upload successfully etc) it should read
'Correct the error, and then re-upload the CSV file containing only the rows of data which did not upload correctly. Please do not re-upload the whole dataset again.'
Can we have the only in bold please? Just to make it clear.
Thank you!!
This should be done now - I've not tested the last page with the instructions on downloading errors as I don't want to upload into the live db, so let me know if it's not OK. Otherwise please close this issue.
Hi John,
Thanks very much for sorting the colorbox thing out - works perfectly now!!
Would you be able to teach me how to edit the Indicia pages? We don't want to do anything major, only add some text here and there to assist users with data entry and make the process a bit clearer, but when we try and edit say, the page where they maps to attribute page, if on that page I click 'edit' it just takes me to editing the page with the upload form - and the same for the analysis pages.
Please let me know if that doesn't make sense/you want any more explanation.
Cheers,
Sophie