Skip to content

Latest commit

 

History

History
275 lines (173 loc) · 13.1 KB

AdminGuide.md

File metadata and controls

275 lines (173 loc) · 13.1 KB

AGN LabFinder Admin Guide

This is a brief guide to the AGN LabFinder administration interface.

CLARIFICATION: The words "instrument", "procedure" and "technique" are equivalent in this document. Instruments, procedures and techniques are all stored as "techniques" in the database.

How to add a new Technique/Instrument/Procedure

PLEASE NOTE: The data entered in steps 2,3,4,5 are optional, because they may have already been entered for other machines. E.g. your university lab has already been added. In this case they can be copied or re-used for the new technique.

Step 1: Add an image (if required)

  1. Take a picture of the equipment. The picture must be "PNG" or "JPEG", roughly square, not too large or detailed (typically 300kB in size)
  2. In the main admin page, click on "Images and Movies"
  3. Click on "New Image"
  4. Type in a caption into the "Caption"
  5. Select the image by clicking on the "Choose file" button
  6. Click "Create"

Step 2: Add new location (optional)

Is this a new institution? If not, skip this step.

  1. In the admin page, click on "Locations"

  2. Click on "New Location"

  3. Enter in institution name, e.g. "Curtin University"

    Select a state

    Ignore "Status" field

    Enter in full address into the address field

    Enter in centre name e.g. "John de Laeter Research Centre"

  4. Click "Create"

Step 3: Add new contact (optional)

This defines the person that manages the laboratory and institution. Skip this step if the person & institution already exists in the database.

  1. In the "Admin" page, click on "Contacts".

  2. Click on "Add Contact"

  3. Enter in "Ms", "Dr" etc into title field

    Enter in full name e.g. "Jane Smith"

    Enter in position e.g. "Lab Manager"

    Enter in telephone, email

    IMPORTANT: Set technique contact to "Yes"

    Select same location as defined in previous step

  4. Click "Create"

Step 4: Add metadata (optional)

This defines the TYPE of technique/instrument/procedure as used in the "Geochemical Analysis Choices" and/or if it is used for "Sample Preparation" and/or "Experimental Procedure". This step is only required if the technique's metadata category has not been defined yet.

This table is a summary:

Type of lab technique Choice of Category Type Choice of Analysis Type
Geochemical Analysis Choices <any> (Appears in "Step 1" choices) <any> (Appears in "Step 2" choices)
Experimental Procedure Experimental Instrument Not Applicable
Sample Preparation Sample Preparation Not Applicable
  1. In the "Admin" page, click on "Metadata"

  2. Click on "New Metadata"

  3. Define your metadata record.

    (i) Enter in the "Category" field – this is the broad type of machine/technique used e.g. "Diamond Saws", "ICP-MS", "Magnetic Separation"

    (ii) Select in the "Category Type". For "Sample Preparation" or "Experimental Instruments" just pick "Sample Preparation" or "Experimental Instrument".

    Note if you choose "Age Determination" or "Elemental Composition" or "Isotopic Analysis" the associated technique will be displayed in the "Geochemical Analysis and Age Determination" section.

    (iii) Select the "Analysis Type". This is really only used by instruments which will be displayed in the "Geochemical Analysis" section. Therefore, if you chose "Age Determination" or "Elemental Composition" or "Isotopic Analysis" in (ii), then you should choose "Spot Analysis" or "Whole Rock or Mineral Separates" or "Both". Otherwise just choose "Not Applicable".

Step 5: Add elements (optional)

This is only required if the technique has a fixed set of elements that it can detect (e.g. mass spectrometers), and this set of elements has not yet been defined.

  1. In the "Admin" page, click on "Elements"
  2. Click on "New Elements"
  3. Enter in a name for the new set of elements. Select elements by clicking on tickboxes as required Click "Create"

Step 6: Add technique (instrument/procedure)

  1. In the "Admin" page, click on "Techniques"

  2. Click on "New Technique"

  3. Fields with asterisk (*) are compulsory

    Enter in "Name*", "Alternative Name", "Instrument Name*", "Model*", "Manufacturer*", "Sample Type", "Wavelength", "Beam Diameter", "Minimum Conc.", "Mass", "Volume", "Pressure", "Temperature" as best describes by the instrument's capabilities.

    "Summary*" field should be a BRIEF one line description of the technique

    "Long Description*" is the final "landing page" after the "Geochemical Analysis and Age Determination" section of the website.

    "Keywords" is used in the search function

    "Media Examples" is used to select the photo entered in Step 1

    "Contacts" is used to select the contact entered in Step 3

    NB: "Machine Localisation" is seldom used. It can be used to copy an existing machine localisation. Only use this if you have duplicate machines - two identical machines installed in the same year in the same laboratory. Normally machine localisation would be added in the next step.

    Select "Metadata" and click "Add Metadata". Add in metadata from Step 4. You can add more than one row of metadata to a technique. If you add in one row of metadata, that option is automatically selected as representing this technique/instrument in "Geochem Analysis Choices" section. If you add more than one row of metadata, you can choose which metadata row you want to represent this technique/instrument by clicking on the radio buttons in the "Geochem Analysis Choices" column. Only one metadata row can be referenced in "Geochem Analysis Choices".

    If the machine has a list of detected elements (from Step 5), select them.

    Click "Create".

Step 7: Add new localisation

This defines the particular instrument/technique details

  1. In the "Admin" page, click on "Localisation".

  2. Click on "Add Localisation"

    Enter in a four digit "Year Commissioned".

    Select an application, click on "Add Applications" to add it. You can add as many applications as you like.

    Select a location.

    Select the technique added in the previous step.

Changing Titles and Short Phrases in Web Pages

In the Admin Page the "Static Content" sub menu allows you to edit the titles and certain short phrases. A table is displayed with the left hand column describing the location and purpose of the text.

Advice about using the HTML Editor

Some fields use the HTML editor, i.e. in "Static Content" section and "Summary" and "Description" in "Techniques" section.

It uses HTML markup to format the text. HTML markup is represented by text in angle brackets e.g. <div>

Please note that many of the fields in "Static Content" and the "Summary" field will display correctly only when displayed with minimal HTML markup.

This means just "<p>" and "<\p>"

e.g. <p>Search for your choice here.<\p>

To use minimise the HTML markup, enter in your text with the "Source" button enabled (click on "Source" in top LH corner).

With the "Description" fields it is expected that HTML will be in full use, so the "Source" button can be disabled.

Changing a Technique's text and images: which fields to edit in the Admin Pages

This section is a map from the text and images you see in the public web pages to the fields that can be modified in the admin pages.

Option 1: Choose your research interest

Geochemical Analysis and Age Determination

Web Page Element Admin Submenu Field Notes
Text in boxes under "Step 1: Choose a research interest" Technique Geochem Analysis Choices See "Step 4" in "How to add a new Technique"
Text in boxes under "Step 2: Type of analysis" Technique Geochem Analysis Choices See "Step 4" in "How to add a new Technique"
Cards header Metadata Category
Cards body Technique Model
Cards mouseover text Technique Name, Summary The mouseover text has the technique id displayed so it is easy to locate which technique to edit

Geochemical Analysis and Age Determination Landing Page

Web Page Element Admin Submenu Field Notes
Final cards landing page Technique Description The landing page has the technique id in the URL e.g. "https://labfinder.geoanalytics.group/Portal/viewGeochemAnalysis/16" has technique id of 16. This can be used to locate the correct technique to edit.

Experimental Procedure

Web Page Element Admin Submenu Field
Cards header Metadata Category
Cards body Technique *

Experimental Procedure Details Page

Web Page Element Admin Submenu Field
Cards header Locations Center Name & Institution
Cards "Applications" & "Year Commissioned" attributes Localisation Applications & Year Commissioned
Cards other attributes Locations *
Cards tables "analysis type" Metadata Analysis type
Cards tables Technique *

NOTE: The details page has the technique id in the URL e.g. "https://labfinder.geoanalytics.group/Portal/viewTechnique/41" has technique id of 41. This can be used to locate the correct technique to edit.

Sample Preparation

Web Page Element Admin Submenu Field
Text box header Technique Name
Text box attributes Technique *
Pictures Images and Movies *

Option 2: Search by keyword

Search List Results

Web Page Element Admin Submenu Field
Title Technique Name
Text Technique Summary
Image Images and Movies *

Cards Page

Web Page Element Admin Submenu Field
Cards header Locations Center Name & Institution
Cards "Applications" & "Year Commissioned" attributes Localisation Applications & Year Commissioned
Cards other attributes Locations *
Cards tables "analysis type" Metadata Analysis type
Cards tables Technique *

NOTE: The cards page has the technique id in the URL e.g. "https://labfinder.geoanalytics.group/Portal/viewTechnique/41" has technique id of 41. This can be used to locate the correct technique to edit.

Option 3: View list of available techniques

List Page

Web Page Element Admin Submenu Field
Instrument Type Technique Instrument Name
Model Technique Model
Manufacturer Technique Manufacturer

Cards Page

Web Page Element Admin Submenu Field
Cards header Locations Center Name & Institution
Cards "Applications" & "Year Commissioned" attributes Localisation Applications & Year Commissioned
Cards other attributes Locations *
Cards table "analysis type" Metadata Analysis type
Cards table Technique *

NOTE: The cards page has the technique id in the URL e.g. "https://labfinder.geoanalytics.group/Portal/viewTechnique/41" has technique id of 41. This can be used to locate the correct technique to edit.

Search Function

The search function uses the MySQL "MATCHES" search in "NATURAL LANGUAGE" mode.

If there are multiple words e.g. "Scanning Raman", then it will should return records with "Scanning" and records with "Raman", but if any records have both, then they are ranked higher and will come higher up in the search results list.

Two letter word searches for chemical element symbol names like 'Pt' are supported by modifying the 'innodb_ft_min_token_size' database parameter

More info:

  1. https://database.guide/how-the-match-function-works-in-mysql/
  2. https://dev.mysql.com/doc/refman/5.7/en/fulltext-fine-tuning.html

The search function does a search of the following fields:

Admin Sub-Menu Field
Techniques Name, Instrument Name, Model, Manufacturer, Sample Type, Alternative Names, Summary, Description, Keywords
Locations Institution, Center Name, Address, State
Techniques "Category" in Geochem Analysis Choices
Metadata Category
Images and Movies Caption
Elements Name, Symbol