Comment 0 for bug 1703142

JP (jecilop) wrote :

4 REQUESTS regarding Tags - quick summary, details below.
1)Additional actions triggered by rules to include ADD, Append, and Prepend.
2)TAGS database export
3)TAGS editor modifier when in use with the Tags Mapper.
4)Single Tags filter list ruleset update to apply to all uses.

I've done my best to clearly explain each, but if you need pics to better illustrate, just let me know.

REQUEST 1----------------------------------------

Additional actions triggered by rules to include ADD, Append, and Prepend.
Current options are Replace, Remove, etc...
I've tried using variations of the existing and other logic to map, but it doesn't fit all or is inefficient. These options would help with this if possible.

Examples:
ADD
If tags "contain" a word such as Book or "match a pattern" such as (.*)book(?i)(.*), it will add the assigned tag.
  ** Tags: Book 2, Third Book, ...other tags... Will add ASSIGNEDTAG
  ** Result: Book 2, Third Book, ASSIGNEDTAG, ...other tags...
  ** IDEALLY, if possible, "contain" would mean the ability to use more than one word, but I haven't found that it works like that as is. Please, clarify if I'm wrong. I only know to list words separated by commas, so I may be doing it wrong. ex: "contains" book OR novella in one rule listing vs. 2

Append
If tags "contain" a word such as Book or "match a pattern" such as (.*)book(?i)(.*), it will append the assigned tag.
  ** Tags: Book 2, Third Book, ...other tags... Will append (a typed space)ASSIGNEDTAG
  ** Result: Book 2 ASSIGNEDTAG, Third Book ASSIGNEDTAG, ...other tags...

Prepend
If tags "contain" a word such as Book or "match a pattern" such as (.*)book(?i)(.*), it will prepend the assigned tag.
  ** Tags: Book 2, Third Book, ...other tags... Will Prepend ASSIGNEDTAG(a typed space)
  ** Result: ASSIGNEDTAG Book 2, ASSIGNEDTAG Third Book, ...other tags...

REQUEST 2-----------------------------------------

TAGS database export
Be able to export a Tags list to a text or excel file from the Tags Manager(Category Editor-Tags), the database that is separate from the Mapper. Perhaps a button for this action from the Tags Mgr screen that list the actual tags in use (as opposed to the Mapper rules which may have eliminated tags but they still appear in that database list)
The list generated would be or be convertible to a line item list just as presented in the Tags Mgr.
I've tried this in a round about way by adding all tags to a book, then exporting with the jacket that uses the tags field. However, it cuts that off after an indeterminate number of tags (I have MANY), so exporting as text then into excel with comma delimited is still short all tags.

REQUEST 3-----------------------------------------

TAGS editor modifier when in use with the Tags Mapper.
Perhaps a checkbox or on/off button that would eliminate tags from the available list IF they are applied in ANY of the rules in the Tags Mapper.

Problem:
I don't know how this would work, but it is worth asking. The addition of the Tags Editor Button that lists everything and is searchable was a terrific addition. However, when in use with the Tags Mapper, it pulls from ALL TAGS in the Tag Mapper rules database (tag-map-rules.json).

This means that even if you've eliminated the tag from current books, yet it exists in a remove or replace rule to prevent its import in the future, it will list as an available tag in the Editor making difficult to know if you've already included it in a previous rule. This becomes particularly overwhelming and difficult to manage and fully utilize that great available/applied tags list manipulation.

REQUEST 4-----------------------------------------
Single Tags filter list ruleset update to apply to all uses.

I've asked this before, but I think it was misunderstood.

I"m coming from a point of view that uses the same exact Tag Map Ruleset for all uses in the same database. So, if I refine my ruleset (Let call it TAGRULES), then I want to to apply immediately after one action. Currently, after refining I have to then go to the remaining 3 places to LOAD the ruleset there as the changes do not show as applying, nor do they as I learned the hard way in the past.

Example:
Update TAGRULES in 1) Tag Mapper.
Then have to remember to go to:
  2) Preferences/Add Books/..Tag rules to filter...
  3) Configure Metadata download/...Tag rules to filter...

If you change the ruleset TAGRULES through any of these 3 methods, a quick box asking for applications (or just auto application and not having to load in each location) if the user wants it applied to other locations would help. I only realized this was happening when it wasn't filtering as I knew I'd set the rules while in one location thinking it applied to the ruleset everywhere.

Could there be a small series of checkboxes or a pop-up asking you the user want to apply the saved rules to these other locations?

I can't figure how it currently loads (I have no know-how in coding on this). I recently directly modified the .json file of the ONLY ruleset that exists and is currently applied in all locations. After opening Calibre assuming it would pull the changes, I found I have to again "load" that ruleset for the changes to apply. Does it not load with the database changes in order to save time in overall Calibre load/opening time?
Is there a way to change how this applies?