Bug 11441

Summary: Ability to globally remove authorities with no bibliographic record linked.
Product: Koha Reporter: Iming Chan <iming>
Component: ToolsAssignee: Juan Romay Sieira <juan.sieira>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aloi54, fridolin.somers, gmcharlt, juan.sieira, kyle, marjorie.barry-vila, mathsabypro, nicolas.legrand
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 11441 - Ability to globally remove authorities with no bibliographic record linked.
[SIGNED OFF] Bug 11441 - Ability to globally remove authorities with no bibliographic record linked.
Bug 11441 - Ability to globally remove authorities with no bibliographic record linked.

Description Iming Chan 2013-12-24 10:47:04 UTC
Ability to globally remove unused authorities (those that are not linked to any bibliographic record).  Currently, this can be done by each heading and this is very time consuming and labour-intensive!
Comment 1 Mathieu Saby 2013-12-24 14:20:43 UTC
Good idea!

M. Saby
Comment 2 Juan Romay Sieira 2014-01-21 11:58:47 UTC Comment hidden (obsolete)
Comment 3 aloij 2014-03-12 11:47:26 UTC
Can you give us a test plan for this bug. Is it automatically applied or must we generate it?
Comment 4 Juan Romay Sieira 2014-03-12 11:52:27 UTC
It will parse all authoritiestypes (or only those given as parameter), and remove authorities without any biblio attached.
Comment 5 Nicolas Legrand 2014-03-14 08:22:42 UTC Comment hidden (obsolete)
Comment 6 Nicolas Legrand 2014-03-14 08:25:13 UTC
my installation for the Marseille hackfest was perfect too test this one :), I had loads of authorities not attached to biblios (quick import from marc dumps from BULAC ILS...). It passed the tests :). Cheers.
Comment 7 Kyle M Hall (khall) 2014-04-11 14:16:32 UTC
Created attachment 27025 [details] [review]
Bug 11441 - Ability to globally remove authorities with no bibliographic record linked.

To test it:
	Parse only PERSO_NAME authorities:
		misc/migration_tools/remove_unused_authorities.pl -aut PERSO_NAME

	Parse all authorities:
		misc/migration_tools/remove_unused_authorities.pl

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 8 Galen Charlton 2014-04-11 16:29:14 UTC
Pushed to master.  Thanks, Juan!
Comment 9 Juan Romay Sieira 2014-04-14 06:51:48 UTC
(In reply to Galen Charlton from comment #8)
> Pushed to master.  Thanks, Juan!

You're welcome
Comment 10 Fridolin Somers 2014-08-06 08:06:19 UTC
Pushed to 3.14.x, will be in 3.14.10
Comment 11 Kyle M Hall (khall) 2014-08-13 13:59:33 UTC
Picked for 3.12.15!