![]() |
#1 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,172
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
[GUI Plugin] Category Tags
The main idea of this plugin is to enable the users to tag items (authors, tags, series, publisher ... etc) in the same way they can tag the books, by making use of user categories. There are two ways to do this in the plugin:
Import/Export user categories
Credits
Installation Notes:
Special Notes:
Paypal Donations: Version History: Spoiler:
Last edited by capink; 03-12-2025 at 04:44 PM. Reason: Version 0.3.2 released |
|
![]() |
![]() |
![]() |
#2 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
I hope to explain myself more or less, since my English is quite primitive:
Having defined (for example) Naguib Mahfouz (item) authors (item_type) Nationality.Egyptian (categories), how could the value Egyptian be automatically transferred to a user column, for all the books of the author Naguib Mahfouz? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,172
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
You can use the template language to populate a custom column with the user categories.
Code:
program: user_categories() Also, the template language should allow you to control what user categories should be included and what should not. For example, if you want only user categories starting with "Nationality." to be included: Code:
program: res = ''; for cat in user_categories(): if '^nationality\.' in cat then res = list_union(res, cat, ',') fi rof; res Last edited by capink; 10-23-2021 at 04:47 AM. |
![]() |
![]() |
![]() |
#4 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Many thanks.
I will try it today. ![]() |
![]() |
![]() |
![]() |
#5 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
It works great.
![]() ![]() ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
After having carried out an import of authors-nationality without any problem, in the second import with new authors this error appears:
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,172
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Try this and report back, please.
Last edited by capink; 10-31-2021 at 08:39 AM. Reason: zip moved to first post |
![]() |
![]() |
![]() |
#8 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
I will do it.
![]() |
![]() |
![]() |
![]() |
#9 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
It works perfectly.
![]() |
![]() |
![]() |
![]() |
#10 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Error
After working without any problem, today trying to import I find the following error:
Code:
calibre, version 5.34.0 ERROR: Excepción no considerada: <b>AttributeError</b>:'list' object has no attribute 'add' calibre 5.34 [64bit] embedded-python: True is64bit: True Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19041') Python 3.8.5 Windows: ('10', '10.0.19041', '', 'Multiprocessor Free') Interface language: es Successfully initialized third party plugins: DeDRM (7, 2, 1) && Action Chains (1, 14, 0) && Calibre Power Search Plugin (2, 1, 1) && Category Tags (0, 1, 2) && Comments Cleaner (1, 5, 0) && Count Pages (1, 11, 1) && Diaps Editing Toolbag (0, 3, 7) && Editor Chains (0, 4, 1) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && EpubSplit (3, 1, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 8, 10) && GetFileName (0, 1, 1) && Import List (1, 5, 6) && Job Spy (1, 0, 190) && LanguageTool (0, 1, 1) && Modify ePub (1, 6, 3) && Prince PDF (1, 5, 0) && Quality Check (1, 11, 4) && Resize Cover (1, 1, 0) && Search The Internet (1, 8, 1) && TOC View Generator (2, 1, 1) && User Category (1, 5, 5) && View Manager (1, 6, 0) Traceback (most recent call last): File "calibre_plugins.category_tags.user_categories.page_resolve", line 699, in validatePage File "calibre_plugins.category_tags.user_categories.actions", line 115, in add_categories_for_item AttributeError: 'list' object has no attribute 'add' |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,172
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Does this solve the problems for you?
Last edited by capink; 12-17-2021 at 01:14 PM. Reason: remove zip and add it to first post |
![]() |
![]() |
![]() |
#12 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Well yes sir! speed and efficiency.
Thanks a lot. ![]() |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,172
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Version 0.2.0
Changes for the upcoming PyQt6.
|
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2022
Device: IPAD
|
Calibre 5.38
Does it work with the new version 5.38 ?
I have tried to export but I get only a .csv file with : "item" "item_type" "categories". My target is to upload a new list of categories for tags to be used for classifying future ebook. Thanks P ![]() |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2022
Device: IPAD
|
I have also tried to import a .csv file but I get always the error message:
"name 'os' is not defined" |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] User Category | kiwidude | Plugins | 123 | 03-16-2024 11:59 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Category Editor (Tags) - Manage Tags | Pachuqismo | Library Management | 5 | 03-10-2021 02:19 PM |
How to get the selected category in the code of the gui plugin? | esvorontsov | Development | 1 | 10-03-2015 12:52 AM |