Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-21-2013, 05:46 PM   #1
AIberto
Member
AIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it is
 
Posts: 10
Karma: 2126
Join Date: Jan 2013
Device: Kobo Glo
Question Is it possible to have dataset templates in calibre ?

Hello to all members and readers and especially to Kovid for creating calibre and updating it so frequently

I'm wondering if there is any way to have "dataset templates" in Calibre (not to be confused with the template language):

I also use Calibre for archiving periodicals which have no ISBN and no possibility to retrieve data for the defined dataset (Name, Author, Publisher, etc. to only name a few) automatically, so I have to enter them always manually!

So each time I want to archive new periodicals I have to add all data manually with most of them are always the same (i.e. Publisher and my defined fields like type or area of Publication).

It would be great if there were any way to automate the population of these fields in a way of having templates for it: If one adds a new periodical Calibre could ask which template to use.

Another way could be to copy a selection of fields of an existing dataset entry to an new one.


Is there a way to do this (which I haven't found so far) and if not is there any chance of implementing it ?
AIberto is offline   Reply With Quote
Old 11-21-2013, 06:32 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by AIberto View Post
Hello to all members and readers and especially to Kovid for creating calibre and updating it so frequently

I'm wondering if there is any way to have "dataset templates" in Calibre (not to be confused with the template language):

I also use Calibre for archiving periodicals which have no ISBN and no possibility to retrieve data for the defined dataset (Name, Author, Publisher, etc. to only name a few) automatically, so I have to enter them always manually!

So each time I want to archive new periodicals I have to add all data manually with most of them are always the same (i.e. Publisher and my defined fields like type or area of Publication).

It would be great if there were any way to automate the population of these fields in a way of having templates for it: If one adds a new periodical Calibre could ask which template to use.

Another way could be to copy a selection of fields of an existing dataset entry to an new one.


Is there a way to do this (which I haven't found so far) and if not is there any chance of implementing it ?
You would be amazed what can be done (populating a custom field) with the Bulk Metadata Edit Search and replace form.

set the search mode to REGEX
theducks is offline   Reply With Quote
Advert
Old 11-21-2013, 08:21 PM   #3
AIberto
Member
AIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it is
 
Posts: 10
Karma: 2126
Join Date: Jan 2013
Device: Kobo Glo
Question

Hello theducks,

I'm not sure if I understand you.

Can you give me an example for the following (very simplyfied) situation please:

If I add an magazine with the name "PC World*" fill in the field "Area" of this new entry with "Computer" and the field "Publisher" with "PC World Publisher".

Thanks
AIberto is offline   Reply With Quote
Old 11-21-2013, 08:44 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by AIberto View Post
Hello theducks,

I'm not sure if I understand you.

Can you give me an example for the following (very simplyfied) situation please:

If I add an magazine with the name "PC World*" fill in the field "Area" of this new entry with "Computer" and the field "Publisher" with "PC World Publisher".

Thanks
Insufficient data

You can't 'guess' the data from thin air.
A specific Recipe can create metadata (Tags).

You can create a tag to apply:

Search ublisher:"=PC World Publisher"
Select all: Add Tags: Computer <== Note I used the Tags to set the one or more topics. You don't need a special field.
theducks is offline   Reply With Quote
Old 11-21-2013, 10:16 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,720
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@AIberto - if you're adding back issues, try adding them in batches for a single periodical (ie all the PC Worlds, all the Bytes etc) then you can select everything in a batch and use Bulk Edit to set common fields.

FWIW

I have a separate Journals Library, where the Author Name is the Periodical name (eg Foreign Policy) and the Title identifies the issue, most often its the date of publication eg 2010-11-18, some have an issue number, some have Season eg Winter 2011 - which I 'normalize' to 2011-Q3

When adding new issues I limit the Library list to the periodical in question and enter the metadata directly into the library list cells - then I can see what I have previously entered for that periodical. Since I started doing that for periodicals I now do it for everything, so that I rarely use the single book edit metadata - when I have a metadata source I hit 'W' on the selected book(s) in the Library list.

BR
BetterRed is offline   Reply With Quote
Advert
Old 11-22-2013, 06:10 AM   #6
AIberto
Member
AIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it is
 
Posts: 10
Karma: 2126
Join Date: Jan 2013
Device: Kobo Glo
Question

Quote:
Originally Posted by theducks View Post
Insufficient data You can't 'guess' the data from thin air.
In my example I set data on the added filename starting with "PC World*"

Quote:
Originally Posted by BetterRed View Post
When adding new issues I limit the Library list to the periodical in question and enter the metadata directly into the library list cells
That's the way I do it now but I have to add about a dozen fields for each magazine record and I am looking for a way to not do it manually each time a new magazine is added.

Maybe there is little missunderstanding here: It's not about batch operations (which Calibre handles fine), it's about the following workflow:

Each week I have "x" new magazines to add which have all different titles and I want to quickly add the record fields of each magazine with the appropriate data - but automatically instead of manually typing in each record field.

Best would be a way to define a template for a magazine and add all fields automatically if I add a new magazine (with drag and drop) in Calibre based on the filename of it (with wildcards allowed, see my example above).

Second best would be a way to have these templates and to assign a newly added magazine manually to it.

Thinking of it there could be a third (quick) solution: Is it possible to duplicate a complete record with all fields in Calibre ? That would also do the trick!
AIberto is offline   Reply With Quote
Old 11-22-2013, 07:40 AM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The easiest way I can think of would be to:
- Create an empty book record with the desired metadata fields
- Save the metadata.opf file for the empty book record - this will have all the fields you entered.
- When adding a new magazine, first drag-and-drop the relevant .opf file to create a new book record in the Calibre database.
- Drag-and-drop the related magazine to that record to attach the ebook file
- Do any final metadata editing for the entry just added.
itimpi is offline   Reply With Quote
Old 11-22-2013, 07:44 AM   #8
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
One possibility (Not tested) could be to place the new periodical in a folder with a matching opf-file, and then add the publication. Depending on how you add the publication, the metadata in the opf-file will be used. You would still have to edit the actual issue number.

It should be possible to even automate some of this using scripts that identify (from the name) what type of publication it is and select the right opf-file and copy it. The script could also add the book to a calibre library. For instance a small "incoming" library where you then add the correct issue number and move the publication to the real calibre library.

Depending on how the publications are named it could even be possible to add the publication with complete metadata fully automatically.

However, the effort to make this work most likely exceed a few years of manually fixing the metadata, unless we talk about a lot of publications.

Edit: Almost what itimpi said... :X
Adoby is offline   Reply With Quote
Old 11-22-2013, 09:49 AM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,720
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Variation on itimpi & Adoby suggestions

Put the journal templates into a separate physical library (as empty books - ie no format files), to create a new item copy the template for the relevant Journal from the template library (right click journal template, select Copy to library->'journal library')

Then switch to the 'journal library' and fill in the blanks, and copy the format file to the book perhaps by drag/drop onto book details panel.

Just tested it, works fine - you may need a means to identify the 'copied' templates in your 'journal library', in my case a search on - title:"Unknown" - does the trick.

BR

PS the Template library will need to be a clone of your journal library - you do that when you create the library

Last edited by BetterRed; 11-22-2013 at 10:22 AM. Reason: clarity & ps
BetterRed is offline   Reply With Quote
Old 11-23-2013, 07:45 AM   #10
AIberto
Member
AIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it isAIberto knows what time it is
 
Posts: 10
Karma: 2126
Join Date: Jan 2013
Device: Kobo Glo
Thumbs up

Quote:
Originally Posted by itimpi View Post
The easiest way I can think of would be to:
- Create an empty book record with the desired metadata fields
- Save the metadata.opf file for the empty book record - this will have all the fields you entered.
- When adding a new magazine, first drag-and-drop the relevant .opf file to create a new book record in the Calibre database.
- Drag-and-drop the related magazine to that record to attach the ebook file
- Do any final metadata editing for the entry just added.
itimpi, Adoby and BetterRed

That does it

Drag and drop of the .opf-template works best for me but I need to have the correct date (of entering the template/magazine) so after creating and renaming the template I deleted the line

Quote:
<meta content="{date and time of template creation}" name="calibre:timestamp"/>
in the .opf and hoped that calibre will fill in the correct date and time if this meta-info is missing - which it fortunately does (well coded Kovid)

One small thing remains but is a bit off-topic to my initial post: If I - after creating the new record - drag the pdf to the detail window on the right is there any chance to have the cover created automatically ?
AIberto is offline   Reply With Quote
Old 11-23-2013, 04:56 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,720
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by AIberto View Post
One small thing remains but is a bit off-topic to my initial post: If I - after creating the new record - drag the pdf to the detail window on the right is there any chance to have the cover created automatically ?
Best way to find out would be to make a change request at https://bugs.launchpad.net/calibre

Perhaps the 'standard' cover extraction should happen when any format is dropped onto an empty book with no cover - not just PDF's.

It can be done manually via Edit Metadata - in single mode click the shiny brown book after selecting a format, in bulk - search "cover:False", select all, Edit, Change cover->Set from book file

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help using templates krakenmoth Library Management 2 04-10-2013 03:44 PM
Using Templates with ePub data? slothful Library Management 7 09-03-2012 03:08 AM
Help using custom column templates gabby98 Calibre 2 07-17-2012 05:24 PM
templates? TAG_Keri Calibre 1 10-28-2011 02:11 PM
Iliad Templates Pitchfork iRex 3 07-17-2006 11:40 AM


All times are GMT -4. The time now is 11:18 PM.


MobileRead.com is a privately owned, operated and funded community.