"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactBootstrap = require("react-bootstrap");
var _react = _interopRequireDefault(require("react"));
var _entity = require("../../helpers/entity");
/*
* Copyright (C) 2023 Shivam Awasthi
*
* 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 2 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/* eslint-disable max-len */
/**
* Renders the page for the Frequently Asked Questions on Bookbrainz
* @returns {JSX.Element} a React JSX Element
*/
function FAQPage() {
return /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Header, {
as: "h2"
}, "Frequently Asked Questions"), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Body, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.ListGroup, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.ListGroup.Item, null, /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement("b", null, "How do I add a book?")), "First and foremost, search for both the author and the title of the book to avoid creating duplicates.", /*#__PURE__*/_react.default.createElement("br", null), "If a Work and an Edition containing it exist, the questions below will help you decide whether to create a new Edition.", /*#__PURE__*/_react.default.createElement("br", null), "Otherwise, here is a step-by-step procedure:", /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("ol", null, /*#__PURE__*/_react.default.createElement("li", null, "Find or add a new ", (0, _entity.genEntityIconHTMLElement)('Author'), "Author"), /*#__PURE__*/_react.default.createElement("li", null, "On the Author page, click on 'Add Work' to create a ", (0, _entity.genEntityIconHTMLElement)('Work'), "Work with a relationship to the Author"), /*#__PURE__*/_react.default.createElement("li", null, "On the Work page, click 'Add Edition' to create an ", (0, _entity.genEntityIconHTMLElement)('Edition'), "Edition with a relationship to the Work.", /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, "A new ", (0, _entity.genEntityIconHTMLElement)('EditionGroup'), "Edition Group will be created automatically, but you can select an existing one"), /*#__PURE__*/_react.default.createElement("li", null, "Create a new ", (0, _entity.genEntityIconHTMLElement)('Publisher'), "Publisher if you cannot find an existing one"))), /*#__PURE__*/_react.default.createElement("li", null, "To enter another format of the same book (see explanations below), go to the Edition Group and click the 'Add Edition' button. Repeat step 4."))), /*#__PURE__*/_react.default.createElement(_reactBootstrap.ListGroup.Item, null, /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement("b", null, "When should I create a new Edition of a Work?")), /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, "When it is published in a different format (e.g. paperback and e-book)"), /*#__PURE__*/_react.default.createElement("li", null, "When there are substantial content (textual or editorial) changes"), /*#__PURE__*/_react.default.createElement("li", null, "Translations will both be a new Work and a new Edition for it."), /*#__PURE__*/_react.default.createElement("li", null, "Add a relationship between the original and the translated Works"), /*#__PURE__*/_react.default.createElement("li", null, "New cover or changed credits/attribution on the cover"), /*#__PURE__*/_react.default.createElement("li", null, "When there's a new ISBN"))), /*#__PURE__*/_react.default.createElement(_reactBootstrap.ListGroup.Item, null, /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement("b", null, "When should I ", /*#__PURE__*/_react.default.createElement("i", null, "not"), " create a new Edition of a Work?")), /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, "Minimal changes as in proofreading errors"), /*#__PURE__*/_react.default.createElement("li", null, "Minimal changes on the cover"), /*#__PURE__*/_react.default.createElement("li", null, "Reprints of the same Edition. You can mention \u201CReprint \u2013 [date]\u201D in the annotations."), /*#__PURE__*/_react.default.createElement("li", null, "When the edition uses the same ISBN (with rare exceptions)"))), /*#__PURE__*/_react.default.createElement(_reactBootstrap.ListGroup.Item, null, /*#__PURE__*/_react.default.createElement("h4", null, /*#__PURE__*/_react.default.createElement("b", null, "When should two Editions be part of the same Edition Group?")), "Edition Groups exist to group together all the variations of an edition (an identifiable set of works) in a given language. Here are examples of Editions that should be part of the same Edition Group:", /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, "Different formats of the same edition (paperback, hardcover and e-book by the same publisher)"), /*#__PURE__*/_react.default.createElement("li", null, "Revised and updated editions"), /*#__PURE__*/_react.default.createElement("li", null, "Reprints"), /*#__PURE__*/_react.default.createElement("li", null, "Editions with different forewords/intros"), /*#__PURE__*/_react.default.createElement("li", null, "Co-editions (same book published in different countries by different publishers)"))))));
}
FAQPage.displayName = 'FAQPage';
var _default = FAQPage;
exports.default = _default;
//# sourceMappingURL=faq.js.map