From jcamins at cpbibliography.com Mon Jul 2 19:14:17 2012 From: jcamins at cpbibliography.com (Jared Camins-Esakov) Date: Mon, 2 Jul 2012 13:14:17 -0400 Subject: [Koha-patches] [PATCH] Bug 8208: Add fast-add link to auth finder plugin Message-ID: <1341249257-21359-1-git-send-email-jcamins@cpbibliography.com> When performing subject analysis, it is not uncommon to find that an authority record you need does not exist. This commit adds a link in the search results to enable the cataloger to create an authority on the fly and have the heading populated by the new authority. To test: 1. Use the auth finder plugin the cataloguing module to search for a heading you do not have an authority record for. 2. Click the "Create new" link. 3. Fill in your authority and save it. 4. Note that the heading field was populated with the data you entered in the authority record. --- authorities/authorities.pl | 6 +++++- .../prog/en/modules/authorities/authorities.tt | 1 + .../modules/authorities/searchresultlist-auth.tt | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletions(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 23653f6..1d9ea9a 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -604,7 +604,11 @@ if ($op eq "add") { } else { ($authid) = AddAuthority($record,$authid,$authtypecode); } - print $input->redirect("detail.pl?authid=$authid"); + if ($myindex) { + print $input->redirect("blinddetail-biblio-search.pl?authid=$authid&index=$myindex"); + } else { + print $input->redirect("detail.pl?authid=$authid"); + } exit; } else { # it may be a duplicate, warn the user and do nothing diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index e684179..352d518 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -584,6 +584,7 @@ function searchauthority() { +
Number of records deleted | [% num_deleted %] |
Number of items deleted | [% num_items_deleted %] | Basket | Order line | Summary | -View record | +View record | Quantity | Unit cost | Order cost | @@ -421,7 +357,7 @@
---|