GithubHelp home page GithubHelp logo

hmaier-fws / ak-md-profiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usfws/ak-md-profiles

1.0 1.0 0.0 128 KB

Alaska Region mdEditor profile testing

Home Page: https://hmaier-fws.github.io/ak-md-profiles/

License: The Unlicense

ak-md-profiles's Introduction

Alaska Region mdEditor profiles

The mdEditor is designed to support creating metadata for a wide variety of data types. As a result, an edit session will likely display much more information than is required for the data that you are describing. Applying a profile allows a user to hide menus and data entry fields that may not be required for a given use case.

The mdEditor defaults to the "Full Profile" when a metadata record is first created, displaying all available menus and data entry fields.

When editing a record, a Profile Selection field is displayed on the mdEditor Primary Navigation Bar. A selected profile will remain associated with metadata record unless changed during a subsequent edit session.

For more information see the mdEditor Core Profile Definitions page.

See the List of Alaska Profiles for the current profile URL's.

Contents

Custom profile

A mdEditor profile is a template that can be used to limit the metadata fields that are displayed during an edit session and define the fields that are required to be completed within a metadata record. A mdEditor custom profile consists of a "profile definition" and an associated "validation schema". Multiple validation schemas may be associated with a single profile definition. Each unique combination of a definition and schema is a distinct mdEditor profile.

What is a profile definition

A profile definition is file used to configure the menus and fields that are displayed while editing a mdEditor metadata record.

What is a validation schema

A validation schema is a file or set of files that specify the metadata fields that must contain data for a record to be considered valid. The validation schema controls when an error message is displayed by the editor.

Creating profile definitions and schemas

A discussion of creating profiles and schemas is beyond the scope of this documentation. Contact your Data Manager or Data Steward for assistance.

Adding a custom profile to mdEditor

Before a custom profile can be created for use in the mdEditor, the profile definition and validation schema must be accessible as URLs. Note: if you are using GitHub to host profile definition files, make sure that you provide users with the url to the "raw" version of the file.

Add profile definition

  1. Go to Settings/Profiles/Manage Definitions.
  2. Select "Add Definition".
  3. Select "Imported" tab.
  4. Enter URL to profile definition.
  5. Enter an optional alias (the alias replaces the definition title).
  6. Select "Save definition". You should receive a notification that the profile has been downloaded and profile information will be displayed on the tab.

Add profile for use by mdEditor

  1. Go to Settings/Profiles.
  2. Select "Add Profile".
  3. Enter a "Title" (displayed in profile selection field). 1. Select a "Profile Definition" from dropdown list (either the definition title or the alias entered in the previous step will be displayed). 1. And optional description (displayed when cursor hovers over "?" in the profile selection field).
  4. Identify a schema from the "Selected Schema" list and select "Add" (NOTE: Skip this step for testing. You will see a "No schemas have been assigned" warning, just ignore that for now!).
  5. Select "Save Profile".

Notes: Changes made to a existing profile may not be reflected until the editor is reloaded.

Add Validation Schema:

  1. Goto Settings/Profiles/Validation.
  2. Select "Add Schema".
  3. Enter URL to the schema root.
  4. Enter a Title and Description.
  5. Select the record "Type" to which the schema applies.
  6. Select "Save Schema". You should receive a notification that the profile has been downloaded.

Updating a profile

  1. Goto Settings/Profiles/Manage Definitions
  2. Select "Check for Updates"
  3. A blue information icon next to a profile definition indicates that an update is available
  4. Select the definition "Edit" button. (The currently installed version will be displayed along with the updated version in a blue box)
  5. Select "Update Definition" button to proceed with update.
  6. Refresh browser to activate updated profile.

Currently available Alaska Region profile definitions

Alaska Region basic project definition (alpha version)

File name: ak-proj-a.json
url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-proj-a.json

Alaska Region basic product definition (alpha version)

File name: ak-prod-a.json
url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-prod-a.json

Alaska Region project definition (production version)

	File name: ak-proj-profile.json
	url:https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-proj-profile.json

Alaska Region product definition (production version)

	File name: ak-prod-profile.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-prod-profile.json

Alaska Region data dictionary definition (production version)

	File name: ak-data-dict-profile.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-data-dict-profile.json

NWRS project definition

	File name: ak-nwrs-proj.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-nwrs-proj.json

NWRS product definition

	File name: ak-nwrs-prod.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-nwrs-prod.json

NWRS data dictionary definition

	File name: ak-nwrs-dict.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-nwrs-dict.json

Currently available Alaska Region schemas

Alaska Region project schema

	File name: ak-proj-schema.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-proj-schema.json

Alaska Region product schema

	File name: ak-prod-schema.json
	url:https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-prod-schema.json

Alaska Region data dictionary schema

	File name: ak-data-dict-schema.json
	url: https://raw.githubusercontent.com/USFWS/ak-md-profiles/main/ak-data-dict-schema.json

References and resources

mdEditor

mdEdiorGuide

Core Profile Definitions for the mdEditor https://adiwg.github.io/mdProfiles/

Core Schema: https://raw.githubusercontent.com/adiwg/mdJson-schemas/master/schema/schema.json

ADIwg mdProfiles: https://github.com/adiwg/mdProfiles

mdJson-schemas: https://github.com/adiwg/mdJson-schemas

ak-md-profiles's People

Contributors

ckelseyfws avatar hmaier-fws avatar twisneskie avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.