Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2017, 02:48 PM   #136
brokengillou
Junior Member
brokengillou began at the beginning.
 
brokengillou's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2017
Device: none
You made this fast and it works clean, thanks!
I've done a data copy in LibreOffice Calc from "Link Attachements" to "Extra" in the Zotero exported csv file and imported in Calibre then i let ZMI do the job

Next step i used bulk metadata edit to filter urls in #zotero_extra to #temp with:
Search Field: #zotero_extra
Search for: http://www.sudoc.fr/(.*); http://www.worldcat.org/search\?q=no%(.*)
Replace with: sudoc:\1, worldcat:\2
Destination Field: #temp
options: replace, break

Result Ok
I get the field #temp filled with data like sudoc:147110335, worldcat:3A758470786

Now I would like to append those to the identifiers field with:
Search Field: #temp
Search for: (.*), (.*)
Replace with: \1, \2
Destination Field: identifiers
id type: *
options: append, break, delimiter ", " (wo quotes)

Preview seems Ok
, sudoc:147110335, worldcat:3A758470786
But Apply is not making any change to identifiers...

I must have missed something...

Gilles
brokengillou is offline   Reply With Quote
Advert
Old 10-24-2017, 03:24 PM   #137
DaltonST
Deviser
DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!DaltonST rocks like Gibraltar!
 
DaltonST's Avatar
 
Posts: 1,001
Karma: 100454
Join Date: Aug 2013
Location: Texas
Device: 8" Win10 Tablet w/Calibre64
I think the issue might possibly be that you are trying to create 2 Identifiers simultaneously from a single source field. Identifiers is a complex metadata item, which is why it is not shown in the columns available in Preferences > Add your own columns. It is stored in the database with a key of both book ID and ID TYPE (e.g. isbn or issn or sudoc) and a result field of the value for that combination of book ID and ID TYPE. See the attached image of the metadata.db table "identifiers". That should give you a visual impression of the "destination" that you actually are attempting to populate.

You could create a temporary "Comments Short-Text Like Title" Custom Column each for sudoc and worldcat, then populate each using S&R separately. Then, use S&R for each temporary Custom Column to create a single Identifier for that respective temporary Custom Column. Once both of the Identifiers have been updated, you could delete the contents of the temporary Custom Columns.

Or, you could just keep the temporary Custom Columns permanently, and not make them into Identifiers. Up to you.

Note that if you want to see an Identifier in the Library View, you must create a Composite Custom Column (i.e., built from other columns) with a template such as {identifiers:select(sudoc)} or {identifiers:select(worldcat)} or {identifiers:select(isbn)}.

If you already have a "real" Custom Column for sudoc and worldcat, you would not need a Composite Custom Column to see their values. Your choice.

As usual with Calibre, there are many ways to do something. Your personal preferences should guide you to the correct one for you.



DaltonST
Attached Thumbnails
Click image for larger version

Name:	identifier_table.jpg
Views:	32
Size:	172.0 KB
ID:	159623  
DaltonST is offline   Reply With Quote
Old 10-24-2017, 07:12 PM   #138
brokengillou
Junior Member
brokengillou began at the beginning.
 
brokengillou's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2017
Device: none
I've read some threads quite before so i already managed to add identifiers view from start also custom fields to view ids isolated, no problem thanks.

If amazon and google are stored in identifiers why those sudoc and worldcat should not be stored the same way? Sudoc provides localization and inter library loan, it's a basic need for students.

WorldsWithoutEnd, is it some kind of model extension for automating id type web link (Sudoc is not providing one neither other public libraries i may use)?

Thanks,

Gilles
brokengillou is offline   Reply With Quote
Reply

Tags
zotero

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 403 07-29-2017 02:19 PM
[GUI Plugin] Consolidate All Library Metadata (CALM) DaltonST Plugins 188 06-09-2017 12:20 PM
[GUI Plugin] OPML Importer (RSS feeds from feedly/google reader) fem Plugins 14 07-19-2014 11:41 AM
Getting custom metadata field in GUI plugin SauliusP. Development 7 02-11-2012 02:31 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 09:50 AM.


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