@{ /****************************************************************************** // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // // Author(s) : Natalia Portillo // // --[ License ] -------------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // ---------------------------------------------------------------------------- // Copyright © 2003-2020 Natalia Portillo *******************************************************************************/ } @page "/admin/magazines/details/{Id:long}" @page "/admin/magazines/edit/{Id:long}" @page "/admin/magazines/create" @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject Iso31661NumericService CountriesService @inject DocumentCompaniesService CompaniesService @inject DocumentRolesService DocumentRolesService @inject CompaniesByMagazineService CompaniesByMagazineService @inject NavigationManager NavigationManager @inject IWebHostEnvironment Host @inject IJSRuntime JSRuntime @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Magazine details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@L["Title using latin script"] @L["Please enter a valid title."] @if(_editing || _model.NativeTitle != null) { @L["Native title, that is, title using native script (cyrillic, chinese, etc)"] @if(_editing) { @L["Unknown (native title)"] } @if(!_editing || !_unknownNativeTitle) { @L["Please enter a valid native title."] } } @if(_editing || _model.FirstPublication != null) { @L["First publication"] @if(_editing) { @L["Unknown (first publication date)"] } @if(!_editing || !_unknownFirstPublication) { @L["Please enter a valid first publication date."] } } @if(_editing || _model.CountryId != null) { @L["Country of publication"] @if(_editing) { @L["Unknown (country of publication)"] } @if(!_editing || !_unknownCountry) { } } @if(_editing || _model.Issn != null) { @L["ISSN"] @if(_editing) { @L["Unknown (ISSN)"] } @if(!_editing || !_unknownIssn) { @L["Please enter a valid ISSN."] } }
@if(!_editing) { } else { } @L["Back to list"]
@if(!_editing) {

@L["Companies involved in this magazine"]

@if(_addingCompany) {
@L["Company"] @L["Role"]
} @if(_magazineCompanies?.Count > 0) {
@foreach(var item in _magazineCompanies) { }
@L["Company"] @L["Role"]
@item.Company @item.Role
} @_deleteTitle @_deleteText }