Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help button host config option. #6226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions web-ui/src/main/resources/catalog/js/CatController.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,10 @@ goog.require('gn_alert');
'workflowAssistApps': [
{'appUrl': '', 'appLabelKey': ''}
]
},
'helperDocumentHost': {
'enabled': false,
'appUrl': ''
}
}
};
Expand Down Expand Up @@ -1036,6 +1040,9 @@ goog.require('gn_alert');
this.applyConfig(configOverlay);
this.setLegacyOption(gnViewerSettings, gnSearchSettings);
this.gnUrl = gnUrl || '../';
if (this.gnCfg.mods.helperDocumentHost.enabled) {
this.docUrl = this.gnCfg.mods.helperDocumentHost.appUrl;
}
this.proxyUrl = this.gnUrl + '../proxy?url=';
},
setLegacyOption: function(gnViewerSettings, gnSearchSettings) {
Expand Down
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/en-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@
"ui-filters": "Filters",
"ui-minUserProfileToCreateTemplate": "Which minimum profile is required to manage/create template?",
"ui-minUserProfileToCreateTemplate-help": "Can be one of: '', 'Editor', 'Reviewer', 'UserAdmin', 'Administrator'. Depending on the user highest profile, user may not be able to import a record as a template or subtemplate, save a record as a template in the editor or manage directory templates. This applies only to the user interface, not to the API. '' means that all users can create template.",
"ui-facetTabField": "Facet field to display using tabs",
"ui-facetTabField": "Facet field to display using tabs",
"ui-facetTabField-help": "Tab field is displayed above search results.",
"ui-filters-help": "Add extra filters to add to any search queries. See <a href='https://www.elastic.co/guide/en/elasticsearch/reference/current/query-filter-context.html#filter-context'>the documentation for more information</a>.",
"ui-languages-help": "Define the list of languages in the language selector",
Expand Down Expand Up @@ -1259,6 +1259,7 @@
"ui-mod-editor": "Editor application",
"ui-mod-authentication": "Authentication",
"ui-mod-workflowHelper": "Workflow assist",
"ui-mod-helperDocumentHost": "Helper document host",
"ui-signinUrl": "Sign in application URL",
"ui-signoutUrl": "Sign out application URL",
"ui-signinUrl-help": "URL of the home page. Can contain the following variables between 2 opening and closing '{': <ul><li><strong>node</strong> for the current portal</li><li><strong>lang</strong> for 3 letters language code</li><li> <strong>isoLang</strong> for 2 letters language code.</li></ul>",
Expand Down