Skip to content

Commit

Permalink
Merge pull request #2559 from NCEAS/bugfix-1899-truncate-jsonld-descr…
Browse files Browse the repository at this point in the history
…iptions

Move JSON-LD schema.org logic into single view + model; truncate or pad descriptions that are too long or too short
  • Loading branch information
rushirajnenuji authored Dec 18, 2024
2 parents 399f5bc + 16c2cca commit 5d22065
Show file tree
Hide file tree
Showing 12 changed files with 795 additions and 438 deletions.
6 changes: 4 additions & 2 deletions src/js/models/AppModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1116,8 +1116,10 @@ define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
searchMapTileHue: "192",

/**
* If true, the dataset landing pages will generate Schema.org-compliant JSONLD
* and insert it into the page.
* If true, the dataset landing pages and data catalog view will
* generate Schema.org-compliant JSONLD and insert it into the page.
* If there is a JSONLD template for the app, it will also be
* inserted. This is useful for search engines and other web crawlers.
* @type {boolean}
* @default true
*/
Expand Down
Loading

0 comments on commit 5d22065

Please sign in to comment.