mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'isbn' of https://github.com/Kasijjuf/calibre
This commit is contained in:
commit
33347efd93
@ -126,7 +126,7 @@ values that the RocketWriter generates:
|
||||
|
||||
Encrypted titles have a few more entries (including those listed above):
|
||||
|
||||
ISBN=<ISBN number, including dashes>
|
||||
ISBN=<ISBN, including dashes>
|
||||
REVISION=<digits>
|
||||
TITLE_LANGUAGE=<en-us>
|
||||
PUB_NAME=<Publisher's name>
|
||||
|
@ -27,7 +27,7 @@ You can use all the various metadata fields available in calibre in a template,
|
||||
In addition to the column based fields, you also can use::
|
||||
|
||||
{formats} - A list of formats available in the calibre library for a book
|
||||
{identifiers:select(isbn)} - The ISBN number of the book
|
||||
{identifiers:select(isbn)} - The ISBN of the book
|
||||
|
||||
If a particular book does not have a particular piece of metadata, the field in the template is automatically removed for that book. Consider, for example::
|
||||
|
||||
|
@ -1529,10 +1529,10 @@ class IdentifiersEdit(QLineEdit, ToMetadataMixin):
|
||||
col = 'none'
|
||||
elif check_isbn(isbn) is not None:
|
||||
col = OK_COLOR
|
||||
extra = '\n\n'+_('This ISBN number is valid')
|
||||
extra = '\n\n'+_('This ISBN is valid')
|
||||
else:
|
||||
col = ERR_COLOR
|
||||
extra = '\n\n' + _('This ISBN number is invalid')
|
||||
extra = '\n\n' + _('This ISBN is invalid')
|
||||
self.setToolTip(tt+extra)
|
||||
self.setStyleSheet(INDICATOR_SHEET % col)
|
||||
|
||||
@ -1611,10 +1611,10 @@ class ISBNDialog(QDialog): # {{{
|
||||
extra = ''
|
||||
elif check_isbn(isbn) is not None:
|
||||
col = OK_COLOR
|
||||
extra = _('This ISBN number is valid')
|
||||
extra = _('This ISBN is valid')
|
||||
else:
|
||||
col = ERR_COLOR
|
||||
extra = _('This ISBN number is invalid')
|
||||
extra = _('This ISBN is invalid')
|
||||
self.line_edit.setToolTip(extra)
|
||||
self.line_edit.setStyleSheet(INDICATOR_SHEET % col)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user