<span class="material-icons" aria-hidden="true">search</span>
<span i18n>Search the Catalog</span>
</a>
- <a href="/eg/staff/cat/catalog/index" class="dropdown-item">
+ <a *ngIf="showTraditionalCatalog" href="/eg/staff/cat/catalog/index" class="dropdown-item">
<span class="material-icons" aria-hidden="true">search</span>
<span i18n>Search the Catalog (Traditional)</span>
</a>
locales: any[];
currentLocale: any;
- // When active, show a link to the experimental Angular staff catalog
- showAngularCatalog: boolean;
+ // When active, show a link to the traditional staff catalog
+ showTraditionalCatalog: boolean;
curbsideEnabled: boolean;
@ViewChild('navOpChange', {static: false}) opChange: OpChangeComponent;
// Avoid attempts to fetch org settings if the user has not yet
// logged in (e.g. this is the login page).
if (this.user()) {
- this.org.settings('ui.staff.angular_catalog.enabled')
- .then(settings => this.showAngularCatalog =
- Boolean(settings['ui.staff.angular_catalog.enabled']));
+ this.org.settings('ui.staff.traditional_catalog.enabled')
+ .then(settings => this.showTraditionalCatalog =
+ Boolean(settings['ui.staff.traditional_catalog.enabled']));
this.org.settings('circ.curbside')
.then(settings => this.curbsideEnabled =
Boolean(settings['circ.curbside']));
)
);
+INSERT into config.org_unit_setting_type
+ (name, datatype, grp, label, description)
+VALUES (
+ 'ui.staff.traditional_catalog.enabled', 'bool', 'gui',
+ oils_i18n_gettext(
+ 'ui.staff.traditional_catalog.enabled',
+ 'GUI: Enable Traditional Staff Catalog',
+ 'coust', 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.staff.traditional_catalog.enabled',
+ 'Display an entry point in the browser client for the ' ||
+ 'traditional staff catalog.',
+ 'coust', 'description'
+ )
+);
+
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.org_unit_setting_type
+ (name, datatype, grp, label, description)
+VALUES (
+ 'ui.staff.traditional_catalog.enabled', 'bool', 'gui',
+ oils_i18n_gettext(
+ 'ui.staff.traditional_catalog.enabled',
+ 'GUI: Enable Traditional Staff Catalog',
+ 'coust', 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.staff.traditional_catalog.enabled',
+ 'Display an entry point in the browser client for the ' ||
+ 'traditional staff catalog.',
+ 'coust', 'description'
+ )
+);
+
+COMMIT;
+
+
<span>[% l('Search the Catalog') %]</span>
</a>
</li>
- <li>
+ <li ng-if="showTraditionalCatalog">
<a href="./cat/catalog/index" target="_self">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
[% l('Search the Catalog (Traditional)') %]
egCore.org.settings([
'ui.staff.max_recent_patrons',
- 'ui.staff.angular_catalog.enabled',
+ 'ui.staff.traditional_catalog.enabled',
'circ.curbside'
]).then(function(s) {
var val = s['ui.staff.max_recent_patrons'];
$scope.showRecentPatron = val > 0;
$scope.showRecentPatrons = val > 1;
- $scope.showAngularCatalog =
- s['ui.staff.angular_catalog.enabled'];
+ $scope.showTraditionalCatalog =
+ s['ui.staff.traditional_catalog.enabled'];
$scope.enableCurbside =
s['circ.curbside'];
}).then(function() {
'webstaff.format.dates',
'webstaff.format.date_and_time',
'ui.staff.max_recent_patrons', // affects navbar
- 'ui.staff.angular_catalog.enabled', // affects navbar
+ 'ui.staff.traditional_catalog.enabled', // affects navbar
'lib.timezone'
]).then(
function(set) {