Skip to content

Commit

Permalink
documents: display all fields on the detail view
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Jul 23, 2021
1 parent bd6e0d6 commit 26ae9b3
Show file tree
Hide file tree
Showing 15 changed files with 976 additions and 348 deletions.
12 changes: 11 additions & 1 deletion projects/admin/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ import {
} from './record/detail-view/contribution-detail-view/corporate-bodies-detail-view/corporate-bodies-detail-view.component';
import { PersonDetailViewComponent } from './record/detail-view/contribution-detail-view/person-detail-view/person-detail-view.component';
import { DialogImportComponent } from './record/detail-view/document-detail-view/dialog-import/dialog-import.component';
import { DescriptionZoneComponent } from './record/detail-view/document-detail-view/document-description/description-zone/description-zone.component';
import {
DocumentDescriptionComponent
} from './record/detail-view/document-detail-view/document-description/document-description.component';
import {
OtherEditionComponent
} from './record/detail-view/document-detail-view/document-description/other-edition/other-edition.component';
import { DocumentDetailViewComponent } from './record/detail-view/document-detail-view/document-detail-view.component';
import { HoldingDetailComponent } from './record/detail-view/document-detail-view/holding-detail/holding-detail.component';
import { HoldingSharedViewComponent } from './record/detail-view/document-detail-view/holding-shared-view/holding-shared-view.component';
Expand Down Expand Up @@ -266,7 +273,10 @@ export function appInitFactory(appInitService: AppInitService) {
CirculationLogsComponent,
CirculationLogsDialogComponent,
CirculationLogComponent,
ItemInCollectionPipe
ItemInCollectionPipe,
DocumentDescriptionComponent,
OtherEditionComponent,
DescriptionZoneComponent
],
imports: [
AppRoutingModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
RERO ILS UI
Copyright (C) 2021 RERO
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<div class="row">
<div class="font-weight-bold col-3">
<ng-content select="[label]"></ng-content>
</div>
<div class="col-9">
<ng-content select="[content]"></ng-content>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* RERO ILS UI
* Copyright (C) 2021 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DescriptionZoneComponent } from './description-zone.component';


describe('DescriptionZoneComponent', () => {
let component: DescriptionZoneComponent;
let fixture: ComponentFixture<DescriptionZoneComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ DescriptionZoneComponent ]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(DescriptionZoneComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* RERO ILS UI
* Copyright (C) 2021 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component } from '@angular/core';

@Component({
selector: 'admin-description-zone',
templateUrl: './description-zone.component.html'
})
export class DescriptionZoneComponent { }
Loading

0 comments on commit 26ae9b3

Please sign in to comment.