Bug 33465

Summary: Make it clear if there are linked licenses when viewing the vendor record
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: ERMAssignee: Jonathan Druart <jonathan.druart>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, jonathan.field, martin.renvoize, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 33106    
Bug Blocks:    

Description Katrin Fischer 2023-04-09 13:41:14 UTC
Bug 33106 added a new tab to the vendors detail page that will take you to the licenses page in the ERM module and show any linked licenses for the vendor.

At the moment you cannot tell without clicking the tab, if there are any linked licenses. There are 2 options that could improve things here:

* Only show the tab if there are linked licenses
* Show the number of linked licenses in the tab description

I am leaning a little to the second and it would match what we do in the catalog detail page for holds and other things.
Comment 1 Jonathan Druart 2023-05-02 13:46:03 UTC
From bug 33106 comment 11

"""
(In reply to Jonathan Field from comment #9)
> That works now, thanks for fixing that! I still think it would be good to
> not display the link if there is no attached record but I think we can deal
> with that in a separate bugzilla entry, this works as planned.

I am not sure about that. The other tabs are there even if there is nothing on the view (for baskets). If we add another tab later (for issues for instance), it  will be placed differently depending on the existence of license linked to the vendor, that does not seem correct to me.

We could add the number of licenses in parenthesis but again, it is inconsistent with the other tabs.

So basically, yes, we should discuss that on a separate bug :)
"""