Thanks for your patience during our recent outage at scalar.usc.edu. While Scalar content is loading normally now, saving is still slow, and Scalar's 'additional metadata' features have been disabled, which may interfere with features like timelines and maps that depend on metadata. This also means that saving a page or media item will remove its additional metadata. If this occurs, you can use the 'All versions' link at the bottom of the page to restore the earlier version. We are continuing to troubleshoot, and will provide further updates as needed. Note that this only affects Scalar projects at scalar.usc.edu, and not those hosted elsewhere.
Scalar 2 User's GuideMain MenuGetting StartedExplains account and book creation, and some interface basics.QuickStartsA path of all QuickStart content in this user's guide.Working with MediaHow to get the most out of your use of media in Scalar.Working with ContentCreating and editing content in Scalar.Working with WidgetsWorking with StructureHow to use Scalar's many options for structuring publications.Editorial WorkflowHow to use features for performing editorial review of content.VisualizationsExploring the contents of a book visually.LensesAn introduction to lenses, a tool for searching and visualizing Scalar content.Advanced TopicsDescribing Scalar's more advanced features.Third Party Plugins and Platforms
Getting started with the Scalar API JavaScript library
12014-10-01T16:38:31-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa63732965A "hello world" example of working with the Scalar API JavaScript library.plain388612022-04-26T10:08:16-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
This “hello world” example retrieves the node representing the home page of this User’s Guide and displays its title and content (view demo).
For a detailed explanation, follow the path below, or check out the API reference.
This page has paths:
12014-10-01T16:38:30-07:00Andrew Myersdc594d77bef213038c742a8107d25b9f6fb6a0e5Scalar API JavaScript libraryErik Loyer1Using Scalar's Javascript Library to access the RDF APIplain2014-10-01T16:38:30-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:31-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Including the Scalar API JavaScript library1media2014-10-01T16:38:31-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Set the current Scalar book1media2014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:31-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Load the book’s index node1media2014-10-01T16:38:31-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Retrieve the node1media2014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:30-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Display the node’s title1media2014-10-01T16:38:30-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Retrieve related nodes1media2014-10-01T16:38:34-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637
12014-10-01T16:38:30-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637Display the number of related nodes1media2014-10-01T16:38:30-07:00Erik Loyerf862727c4b34febd6a0341bffd27f168a35aa637