Bugzilla – Attachment 10708 Details for
Bug 8208
Add "create authority" button to auth_finder plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8208: Add fast-add link to auth finder plugin
SIGNED-OFF-Bug-8208-Add-fast-add-link-to-auth-find.patch (text/plain), 3.70 KB, created by
Katrin Fischer
on 2012-07-09 06:19:56 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8208: Add fast-add link to auth finder plugin
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-07-09 06:19:56 UTC
Size:
3.70 KB
patch
obsolete
>From 8120497d40689106f7f80dc9c3c9584547f05ad7 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Mon, 2 Jul 2012 12:51:08 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 8208: Add fast-add link to auth finder > plugin > >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. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >1) Added a new authority using the plugin >2) Used an existing authority using the plugin >3) Created a new authority in the authority module > >All worked nicely. >--- > authorities/authorities.pl | 6 +++++- > .../prog/en/modules/authorities/authorities.tt | 1 + > .../modules/authorities/searchresultlist-auth.tt | 10 ++++++++++ > 3 files changed, 16 insertions(+), 1 deletion(-) > >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() { > <input type="hidden" name="repeat_field" value="" /> > <input type="hidden" name="authtypecode" value="[% authtypecode %]" /> > <input type="hidden" name="authid" value="[% authid %]" /> >+ <input type="hidden" name="index" value="[% index %]" /> > <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> > > <div id="toolbar"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >index 2881710..dc3a72e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt >@@ -66,6 +66,16 @@ function jumpfull(page) > </td> > <td> </td> > </tr> >+ <tr> >+ <td> </td> >+ <td> </td> >+ <td> >+ <a href="javascript:jumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]')" class="button"> >+ Create new >+ </a> >+ </td> >+ <td> </td> >+ </tr> > [% FOREACH resul IN result %] > <tr> > <td>[% PROCESS authresult summary=resul.summary %]</td> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8208
:
10615
| 10708 |
10709
|
10714
|
10732