Bugzilla – Attachment 34908 Details for
Bug 13485
Add a page to display links to restricted sites
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12823: Alert about defining the SRU search field mappings
Bug-12823-Alert-about-defining-the-SRU-search-fiel.patch (text/plain), 1.75 KB, created by
Kyle M Hall (khall)
on 2015-01-02 16:27:05 UTC
(
hide
)
Description:
Bug 12823: Alert about defining the SRU search field mappings
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-01-02 16:27:05 UTC
Size:
1.75 KB
patch
obsolete
>From 1c2d772ab0a2df5b48e2a8ad3c854e3be1f6f8d6 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 26 Aug 2014 11:14:33 +0200 >Subject: [PATCH] Bug 12823: Alert about defining the SRU search field mappings > >This is a follow-up for report 6536 (SRU search targets). >It will alert a user that saves a SRU server without field mappings. > >Test plan: >Add a Z39.50 server. No confirm message. >Add a SRU server without field mappings. Cancel the confirm. >Add one field mapping. No confirm message. > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> > >http://bugs.koha-community.org/show_bug.cgi?id=13485 >--- > .../prog/en/modules/admin/z3950servers.tt | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >index 3d7851f..0ff1b09 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >@@ -47,6 +47,10 @@ > } > }); > $("#serverentry").submit(function( event ) { >+ // first test if show_sru_fields exists >+ if( $('#show_sru_fields').length && $('#show_sru_fields').val()=='' && !confirm( _("No SRU search field mappings have been defined. This means that all field searches will go through the whole record. Continue?"))) { >+ return false; >+ } > // copy show_sru_fields to hidden counterpart > $('#sru_fields').val( $('#show_sru_fields').val() ); > // enable recordtype to include field in post >-- >1.7.2.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 13485
:
34597
|
34598
|
34604
|
34908
|
34909
|
34910
|
40820
|
40821
|
40822
|
41377
|
41378