diff --git a/src/app/dialogs/library/form.validators.spec.ts b/src/app/dialogs/library/form.validators.spec.ts
deleted file mode 100644
index 98c63f4c89..0000000000
--- a/src/app/dialogs/library/form.validators.spec.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/*!
- * @license
- * Alfresco Example Content Application
- *
- * Copyright (C) 2005 - 2018 Alfresco Software Limited
- *
- * This file is part of the Alfresco Example Content Application.
- * If the software was purchased under a paid Alfresco license, the terms of
- * the paid license agreement will prevail. Otherwise, the software is
- * provided under the following open source license terms:
- *
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-
-import { SiteIdValidator } from './form.validators';
-
-describe('SiteIdValidator', () => {
- it('should be defined', () => {
- expect(SiteIdValidator).toBeDefined();
- });
-});
diff --git a/src/app/dialogs/library/form.validators.ts b/src/app/dialogs/library/form.validators.ts
deleted file mode 100644
index 97937f9b3e..0000000000
--- a/src/app/dialogs/library/form.validators.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/*!
- * @license
- * Copyright 2016 Alfresco Software, Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { AbstractControl, FormControl } from '@angular/forms';
-import { ContentApiService } from '../../services/content-api.service';
-
-export class SiteIdValidator {
- static createValidator(contentApiService: ContentApiService) {
- let timer;
-
- return (control: AbstractControl) => {
- if (timer) {
- clearTimeout(timer);
- }
-
- return new Promise(resolve => {
- timer = setTimeout(() => {
- return contentApiService
- .getSite(control.value)
- .subscribe(
- () => resolve({ message: 'LIBRARY.ERRORS.EXISTENT_SITE' }),
- () => resolve(null)
- );
- }, 300);
- });
- };
- }
-}
-
-export function forbidSpecialCharacters({ value }: FormControl) {
- const validCharacters: RegExp = /[^A-Za-z0-9-]/;
- const isValid: boolean = !validCharacters.test(value);
-
- return isValid
- ? null
- : {
- message: 'LIBRARY.ERRORS.ILLEGAL_CHARACTERS'
- };
-}
diff --git a/src/app/dialogs/library/library.dialog.html b/src/app/dialogs/library/library.dialog.html
index e74c31d73d..8666516030 100644
--- a/src/app/dialogs/library/library.dialog.html
+++ b/src/app/dialogs/library/library.dialog.html
@@ -1,80 +1,84 @@
-