10-11-2018, 01:04 PM | #121 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Nov 2014
Device: kobo h2O
|
|
10-12-2018, 10:56 AM | #122 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2018
Device: Paperwhite 3
|
Wow. Cool! Thank you!
However, it looks like I can't "Derive Identifiers" from Author/Title any more. And when I plug the oclc-owi identifier in, then it won't derive DDC/LCC/FAST from it. e.g. I have the OWI set to refer to http://classify.oclc.org/classify2/C...?owi=103033854 and when I derive the DDC/LCC/FAST, nothing happens. And a small feature request... can you change the separator in the FAST responses from -- to . so that we can have hierarchical tags? Thank you! |
Advert | |
|
10-12-2018, 11:05 AM | #123 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2018
Device: Paperwhite 3
|
Sorry, another quick question, do you have public git repos so other people can help do work on the plugins?
Thanks! |
10-12-2018, 11:21 AM | #124 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Nope.
|
10-12-2018, 03:16 PM | #125 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2018
Device: Paperwhite 3
|
Ok, so I got some debug logs for the problem I reported above and I see:
FAST name: Intergenerational relations oclc-other is: 1001478406 author(s): Albom, Mitch, 1958- title: Tuesdays with Morrie : an old man, a young man, and life's greatest lesson oclc-owi: 103033854 --------------------------------------------------------------------------------------------------- Author Details: LOC Authority Name: n88036767 VIAF Author ID: 97615503 Author: Albom, Mitch, 1958- returning from api: 378.12092 LD571.B418 [u'Teacher-student relationships', u'United States', u'Schwartz, Morris S', u'Universities and colleges--Faculty', u'Brandeis University', u'Death--Psychological aspects', u'Amyotrophic lateral sclerosis--Patients', u'Intergenerational relations'] 103033854 1001478406 n88036767 97615503 OCLC-OWI Route: too many values to unpack no books in book_ids_list; returning... --- Below is update #1 I see the problem. oclc_classify_api() is called but the fast list is not assigned in a couple of places in ui.py. Thanks -ben Last edited by knobunc; 10-12-2018 at 03:21 PM. |
Advert | |
|
10-12-2018, 05:18 PM | #126 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.36 - FAST Tags
Version 1.0.36 - 2018-10-12 FAST Tags
DaltonST |
10-12-2018, 05:26 PM | #127 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
If you want hierarchical Tags, whether for FAST Tags or standard Calibre Tags or LCEAD Tags or Genre Tags, you must handle those on your own using Calibre functionality to do so. That is a user-by-user choice. DaltonST |
|
10-12-2018, 07:57 PM | #128 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
10-12-2018, 10:06 PM | #129 | ||||
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
You posted this:
Quote:
You omitted the context of my response (my responding to a user's request to do something absurd). My full post was: Quote:
Essentially, the user was requesting a "small enhancement" to corrupt the Tag values in the Tag-Like Custom Column under discussion, #fast, by hardcoding in leading dots into its custom_column_NN table Tag-Like values. Not going to happen. I stand by my original response as being 100% accurate: The user needs to use Calibre's functionality to create hierarchies. DaltonSRT |
||||
10-12-2018, 11:53 PM | #130 | |||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Your response now makes me realise that what you were really saying is that either you don't think these tags represent a hierarchy, or you don't think it would be a good idea for this plugin to fiddle with these tags in this way. That is your decision. Quote:
Quote:
And for the record, if @knobunc wants to do this:
That will only do one level of changes. It would need to be run it multiple times if there are tags with multiple "--" separators. Or work out the correct regex to do them in one go. |
|||
10-13-2018, 10:29 AM | #131 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
The Library Codes plugin is 3 years old, and has been generating LCEAD Tags (Tag-Like Custom Column Tags) flawlessly for 3 years. FAST Tags are just a new source for a Tag-Like Custom Column. No big deal. LC is a generic plug-in, and I will not hardcode anything special in its API for a single user. Calibre is powerful enough in functionality so a user can use standard Calibre functionality to achieve whatever they want without asking me to hardcode it just for them. Since I have developed 14 plug-ins, I should be presumed a priori to know a little about programming plug-ins, using both Calibre's APIs and native SQLite, to create Tags in all of their flavors. DaltonST |
|
10-13-2018, 10:17 PM | #132 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
One thing I was trying to understand in the second post was whether not changing the tags to allow them to be treated as a hierarchy was a technical issue (can't be done easily), or a philosophical decision (doesn't fit into the way you see the plugin or the tags should be used untouched). I can see that it is that latter. It definitely isn't a technical issue as it took me about five minutes to find the line to change to do this. For the record, all that is needed is to change line 704 in ui.py from: Code:
fast_list = fast_dict[s_book] Code:
fast_list = [tag.replace("--", ".") for tag in fast_dict[s_book]] |
|
10-14-2018, 11:42 AM | #133 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
FAST Tags have no "--" at any time, anywhere, in LC, so your code is wrong too. I have decided to add new functionality to LC related to its tag-like custom columns, LCEAD and FAST, in order to facilitate hierarchies, but I guarantee you it will be nothing like you or the original user suggested. I am also going to add a new 5th Tag Rules table to the Job Spy "Scrub Tags" Tool to allow both prefixes and/or suffixes to be added to any Tags or Tag-Like custom columns using regular expressions. DaltonST |
|
10-14-2018, 01:06 PM | #134 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Use Job Spy "Scrub Tags" Tool to Modify LCEAD/FAST Tags
Library Codes users who wish to modify either the LCEAD Tags or the FAST Tags should see this post: https://www.mobileread.com/forums/sh...5&postcount=23
For example, if you want to replace any "--" with a "." for #fast tags, use the Tag String Replacement Rules table to do so. DaltonST Last edited by DaltonST; 10-15-2018 at 08:50 AM. |
10-14-2018, 10:17 PM | #135 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Or did you think I meant that the Library Code plugin was adding the "--" somewhere along the way? It is clear from the code it isn't. The code for this is extremely simple. It just grabs the tags from the result of the API call, puts them in a list and later copies that list to the metadata of the book. No fiddling with the actual tag values, no adding anything extra, just straight copies of data retrieved. But, it is clear from everything I can find on the web, that the FAST tags can include "--" and that treating these tags as a hierarchy split at those characters is not a dumb thing to do. And just for the record, I did have a little play with http://classify.oclc.org/classify2/a.../classify.html to see what sort of results came back for some books. And some of the FAST tags in those results have "--" in them Yes, it is obvious that it won't produce the requested results. And it escapes me as to what useful result it would give. It is simply adding a fixed value to the beginning of each tag. And as each tag type is in a separate column, and all the tags are replaced each time they are fetched, I'm not sure how that would be useful. I'll have to test it later. Maybe when I see some examples, it will come to me. |
|
Tags |
ddc, dewey decimal, lcc, library of congress, oclc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] SmartEject | JimmXinu | Plugins | 80 | 01-28-2024 06:15 PM |
[GUI Plugin] Consolidate All Library Metadata (CALM) | DaltonST | Plugins | 333 | 12-15-2023 08:40 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] Astro-ph | iatheia | Plugins | 14 | 07-25-2015 11:41 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |