Skip to content

Commit 98262f3

Browse files
BookWyrm Botgithub-actions[bot]
authored andcommitted
deploy versions
1 parent 6c84730 commit 98262f3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

locale/en_US/LC_MESSAGES/messages.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-04-24 06:47+0000\n"
11+
"POT-Creation-Date: 2025-04-24 08:21+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

site/management-commands.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ <h2 class="menu-label">Codebase</h2>
219219
<section class="block content">
220220
<p>In the <code>bookwyrm/management/commands</code> directory there are some commands to manipulate the instance’s database. Some of them are documented here.</p>
221221
<h2 id="merging-objects"><a class="headerlink" href="#merging-objects">Merging objects</a></h2>
222-
<p>Quite often an instance will end up with duplicate books and authors or editions that appear as separate books when they are actually just different editions of the same work. This can happen because of importing editions that don’t have shared identifiers or from user mistakes. Sadly there’s no user interface to correct this for the time being, but in cases where the books are important for your instance you can use these management commands to fix some of the problems if you are using at least version 0.6.2.</p>
222+
<p>Quite often an instance will end up with duplicate books and authors or editions that appear as separate books when they are actually just different editions of the same work. This can happen because of importing editions that don’t have shared identifiers or from user mistakes. There also was a bug prior to version 0.7.5 which created a large number of duplicate books, editions, and authors. Sadly there’s no user interface to correct this for the time being, but in cases where the books are important for your instance you can use these management commands to fix some of the problems if you are using at least version 0.6.2.</p>
223223
<p>Please take extra care when using these commands because if you make a mistake there’s no way to undo it.</p>
224224
<h3 id="merging-editions"><a class="headerlink" href="#merging-editions">Merging editions</a></h3>
225225
<p>If an edition of a book appears twice in the database and you are sure they are actually both referring to same edition, you can combine them into one with a command like this:</p>
@@ -229,8 +229,13 @@ <h3 id="merging-editions"><a class="headerlink" href="#merging-editions">Merging
229229
<p>This will copy any missing information from edition 38 (the “other” edition) over to edition 27 (the “canonical” edition) and then delete the other edition. If any field of information is in both editions then the data from the canonical edition will be kept. If the other edition is in any lists or has any comments or reviews etc then these will all be updated to point to the canonical edition instead.</p>
230230
<p>You can find the numbers to use in the command by visiting the page for a book and looking at the number in the URL.</p>
231231
<h3 id="merging-authors"><a class="headerlink" href="#merging-authors">Merging authors</a></h3>
232-
<p>Similarly if an author is duplicated, you can combine the two authors into one with a command like this:</p>
233-
<div class="highlight"><pre><span></span><code>./bw-dev runweb python manage.py merge_authors --canonical=7 --other=46
232+
<p>You can identify potential duplicate authors with <code>show_duplicate_authors</code>:</p>
233+
<div class="highlight"><pre><span></span><code>./bw-dev<span class="w"> </span>runweb<span class="w"> </span>python<span class="w"> </span>manage.py<span class="w"> </span>show_duplicate_authors
234+
</code></pre></div>
235+
236+
<p>This will list all your <em>potential</em> duplicate author records, based purely on their name, showing their birth and death dates if available, the count of books for each author, and a link to their page on your instance. Note that <strong>you must check that these are actually duplicates</strong> before merging them as they may be different authors with the same name.</p>
237+
<p>Once confirmed, if an author is duplicated you can combine the two authors into one with a command like this:</p>
238+
<div class="highlight"><pre><span></span><code>./bw-dev<span class="w"> </span>runweb<span class="w"> </span>python<span class="w"> </span>manage.py<span class="w"> </span>merge_authors<span class="w"> </span>--canonical<span class="o">=</span><span class="m">7</span><span class="w"> </span>--other<span class="o">=</span><span class="m">46</span>
234239
</code></pre></div>
235240

236241
<p>As for the editions, any extra information from the other author will be copied over to the canonical author and then the other author will be deleted. Any books written by the other author will be changed to be written by the canonical author. You can find the numbers to use in the command by visiting the page for an author and looking at the number in the URL.</p>

0 commit comments

Comments
 (0)