');
+
+ var rowsToInsert = [];
+ var i = 0;
+
+ $.each(me.subdisciplineActivity, function(index, density) {
+ rowsToInsert[i++] = '';
+ rowsToInsert[i++] = '' + truncateText(SUBDISCIPLINES[index].label, 20) + ' | ';
+ rowsToInsert[i++] = '' + density.toFixed(1) + ' |
';
+ });
+
+ tbody.append(rowsToInsert.join(''));
+ table.append(tbody);
+ me.tableDiv.append(table);
+
+ /* Register events */
+ table.children("tbody").children("tr").mouseenter(function() {
+ me.sciMapWidget.mouseInNode(me.type, me.label, $(this).attr("id"));
+ });
+
+ table.children("tbody").children("tr").mouseleave(function() {
+ me.sciMapWidget.mouseOutNode(me.type, me.label, $(this).attr("id"));
+ });
+
+ /* Init DataTable object */
+ me.widget = table.dataTable({
+ "sDom": '<"' + me.dom.paginationContainerClass + '"p><"table-separator"><"datatablewrapper"t>',
+ "aaSorting": [
+ [1, "desc"], [0,'asc']
+ ],
+ "asStripClasses": [],
+ "aoColumns": [{ "bSearchable": false },
+ { "bSearchable": false }],
+ "iDisplayLength": 10,
+ "bInfo": true,
+ "bFilter": false,
+ "oLanguage": {
+ "sInfo": "_START_ - _END_ of _TOTAL_",
+ "sInfoEmpty": "No matching science areas found",
+ "sInfoFiltered": ""
+ },
+ "sPaginationType": "gmail_style",
+ "fnDrawCallback": function () {
+ }
+ });
+
+ /* Create csv download button */
+ var csvButton = '
';
+ me.tableDiv.append(csvButton);
+
+ /* Create mapping statistic result */
+ var totalPublications = me.pubsWithNoJournals + me.pubsWithInvalidJournals + me.pubsMapped;
+ var mappedText = '' +
+ (100 * me.pubsMapped / totalPublications).toFixed(2) + '% mapped';
+ me.tableDiv.append($(mappedText));
+ me.widget.fnDraw();
+ }
+});
+
+function truncateText(text, len) {
+
+ var trunc = text;
+
+ if (text.length > len) {
+ trunc = text.substring(0, len);
+ trunc = trunc.replace(/\w+$/, '') + '...'
+ }
+
+ return trunc;
+}
\ No newline at end of file
diff --git a/productMods/js/visualization/mapofscience/VisModeControllers.js b/productMods/js/visualization/mapofscience/VisModeControllers.js
index 4da364f9..002c9c15 100644
--- a/productMods/js/visualization/mapofscience/VisModeControllers.js
+++ b/productMods/js/visualization/mapofscience/VisModeControllers.js
@@ -125,7 +125,8 @@ var ComparisonVisModeController = VisModeController.extend({
initWidgets: function(map) {
var widgets = {};
widgets['scimap'] = new ComparisonScimapWidget(map);
- widgets['sci_area_table'] = new ComparisonDataTableWidget(widgets['scimap']);
+ widgets['entity_area_table'] = new EntityTablesWidget(widgets['scimap']);
+ widgets['sci_area_table'] = new ComparisonDataTableWidget(widgets['scimap'], widgets['entity_area_table']);
this.widgets = widgets;
}
diff --git a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonSetup.ftl b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonSetup.ftl
index 8863904e..2eb68300 100644
--- a/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonSetup.ftl
+++ b/productMods/templates/freemarker/visualization/entitycomparison/entityComparisonSetup.ftl
@@ -110,7 +110,7 @@ var subOrganizationPublicationTemporalGraphCommonURL = "${subOrganizationPublica
var jsonString = '${jsonContent!}';
var vivoDefaultNamespace = '${vivoDefaultNamespace!}';
-var organizationLabel = "${organizationLabel}";
+var organizationLabel = '${organizationLabel}';
var organizationVIVOProfileURL = "${organizationVivoProfileURL}";
var loadingImageLink = contextPath + "/images/visualization/ajax-loader-indicator.gif";
diff --git a/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceSetup.ftl b/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceSetup.ftl
index 0563665a..59473d8d 100644
--- a/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceSetup.ftl
+++ b/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceSetup.ftl
@@ -35,15 +35,19 @@
',
'',
'',
+ '',
+ '',
'',
'',
'',
diff --git a/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceStandalone.ftl b/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceStandalone.ftl
index 30e6ae18..301515dc 100644
--- a/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceStandalone.ftl
+++ b/productMods/templates/freemarker/visualization/mapOfScience/mapOfScienceStandalone.ftl
@@ -17,7 +17,7 @@ corresponding changes in the included Templates. -->
- Explore
publications activity across 554 scientific sub-disciplines
+
Explore
publications activity across 554 scientific subdisciplines

@@ -34,10 +34,10 @@ corresponding changes in the included Templates. -->
-
x
-
-
#{title}
-
#{text}
+
x
+
+
#{title}
+
#{text}
@@ -53,18 +53,21 @@ corresponding changes in the included Templates. -->
-
-
-mapped
% of
publications
-

-
+
+
+
+ mapped
% of
publications
+

+
-
+
+
+
+
+
<#-- START TOOLTIP TEXT -->
@@ -76,33 +79,33 @@ overlaid on the map of science. This particular page shows the publication activ
You can use VIVO's Map of Science visualization to see where ${entityLabel} is active in the world of science --
based solely
on publications that have been loaded into this VIVO instance.
-Overlaid circles are larger if ${entityLabel} has many publications in that sub-discipline, and are smaller if ${entityLabel} has
-fewer publications in that sub-discipline.
+Overlaid circles are larger if ${entityLabel} has many publications in that subdiscipline, and are smaller if ${entityLabel} has
+fewer publications in that subdiscipline.
-Circles are overlaid on the Map of Science itself, which is made of 554 interconnected sub-disciplines, shown as grey dots here.
-A sub-discipline is defined as a cluster of journals. The Map of Science groups over 16,000 journals into 554 sub-disciplines using
-similarities in their lists of references and key terms. Sub-disciplines that are especially similar to one another are interconnected,
+Circles are overlaid on the Map of Science itself, which is made of 554 interconnected subdisciplines, shown as grey dots here.
+A subdiscipline is defined as a cluster of journals. The Map of Science groups over 16,000 journals into 554 subdisciplines using
+similarities in their lists of references and key terms. Subdisciplines that are especially similar to one another are interconnected,
and will be closer to one another on the map.
For more information on this and other maps of science, see
http://mapofscience.com or
http://scimaps.org
-${entityLabel}'s publication activity can be categorized into 13 disciplines or 554 sub-disciplines on the map of science.
+${entityLabel}'s publication activity can be categorized into 13 disciplines or 554 subdisciplines on the map of science.
The map of science is divided into 13 disciplines, each of which has its own area on the map, as well as its own color.
-Each of these disciplines contains multiple sub-disciplines. You can hover over a discipline in the table below to show
+Each of these disciplines contains multiple subdisciplines. You can hover over a discipline in the table below to show
which overlaid circles it corresponds to on the map.
-Each grey dot on the map represents one of the 554 sub-disciplines. A sub-discipline is defined as a cluster of journals.
+Each grey dot on the map represents one of the 554 subdisciplines. A subdiscipline is defined as a cluster of journals.
We grouped over 16,000 journals into 554 disciplines using similarities in their lists of references and key terms.
-Sub-disciplines that are especially similar to one another are connected by lines, and are closer to one another on the map.
-You can hover over a sub-discipline in the table below to show which overlaid circle it corresponds to on the map.
+Subdisciplines that are especially similar to one another are connected by lines, and are closer to one another on the map.
+You can hover over a subdiscipline in the table below to show which overlaid circle it corresponds to on the map.
<#--
-In the table below, # of pubs. column indicates number of publications that fall under a particular field (sub-discipline or
+In the table below, # of pubs. column indicates number of publications that fall under a particular field (subdiscipline or
discipline). Sometimes this number will be fractional. This happens when a journal in which the publication was published is associated
with more than one (sub)discipline. In these cases, the publication score is fractionally mapped based on the weight scores
of the journal.
@@ -111,7 +114,7 @@ of the journal.
-->
The table below summarizes this institution's body of publications as plotted on the map of science.
-Each row corresponds to a field (discipline or sub-discipline) on the map.
+Each row corresponds to a field (discipline or subdiscipline) on the map.
The # of pubs. column shows how many of the publications were mapped to each field.
@@ -134,8 +137,8 @@ may need to be cleaned up before they are recognized. You may contact a VIVO sys
concern.
-
- List only sub-disciplines (or disciplines) whose name contains this text.
+
+ List only subdisciplines (or disciplines) whose name contains this text.
@@ -143,8 +146,8 @@ concern.
The organizations or people listed below are only those which are directly beneath ${entityLabel} in the
-organization hierarchy. You may 'drill down' to see the organizations or people below a given sub-organization
-by selecting the chart icon next to a selected sub-organization's name below the graph on the right.
+organization hierarchy. You may 'drill down' to see the organizations or people below a given suborganization
+by selecting the chart icon next to a selected suborganization's name below the graph on the right.
The # of pubs. column shows how many of the publications were mapped to each field.
@@ -157,7 +160,7 @@ The % activity column shows what proportion of the publications were mapp
-
+
List only organizations (or people) whose name contains this text.
<#-- END TOOLTIP TEXT -->