Bugzilla – Attachment 26017 Details for
Bug 10486
Allow external Z39.50 targets to be searched from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10486 - QA followup: Remove given/when, update license and datatables
Bug-10486---QA-followup-Remove-givenwhen-update-li.patch (text/plain), 4.45 KB, created by
Jesse Weaver
on 2014-03-10 15:07:11 UTC
(
hide
)
Description:
Bug 10486 - QA followup: Remove given/when, update license and datatables
Filename:
MIME Type:
Creator:
Jesse Weaver
Created:
2014-03-10 15:07:11 UTC
Size:
4.45 KB
patch
obsolete
>From d73aaa4c4b9da6d263ae51219fe804e041b22340 Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Mon, 10 Mar 2014 15:57:16 +0100 >Subject: [PATCH] Bug 10486 - QA followup: Remove given/when, update license > and datatables > >QA script note: There are several failures related to [% interface %] >versus opac-tmpl. According to a discussion with Owen Leonard on IRC, >these can be ignored in this case. >--- > admin/external_targets.pl | 42 ++++++++++++---------- > .../prog/en/modules/admin/external-targets.tt | 4 +-- > .../prog/en/modules/admin/preferences/opac.pref | 2 +- > 3 files changed, 25 insertions(+), 23 deletions(-) > >diff --git a/admin/external_targets.pl b/admin/external_targets.pl >index 0fc9037..4249b38 100755 >--- a/admin/external_targets.pl >+++ b/admin/external_targets.pl >@@ -1,24 +1,24 @@ > #!/usr/bin/perl > # >-# Copyright 2013 Jesse Weaver >-# > # This file is part of Koha. > # >-# Koha is free software; you can redistribute it and/or modify it under the >-# terms of the GNU General Public License as published by the Free Software >-# Foundation; either version 2 of the License, or (at your option) any later >-# version. >+# Copyright 2013 Jesse Weaver >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. > # >-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY >-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR >-# A PARTICULAR PURPOSE. See the GNU General Public License for more details. >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. > # >-# You should have received a copy of the GNU General Public License along >-# with Koha; if not, write to the Free Software Foundation, Inc., >-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. > # > >-use Modern::Perl '2010'; >+use Modern::Perl; > > use CGI; > >@@ -43,12 +43,16 @@ our ( $template, $loggedinuser, $cookie ) = get_template_and_user( { > our $op = $input->param( 'op' ) // 'show'; > $template->{VARS}->{op} = $op; > >-given ( $op ) { >- when ( 'show' ) { show_external_targets(); } >- when ( 'add' ) { show_edit_form(); } >- when ( 'edit' ) { show_edit_form(); } >- when ( 'save' ) { save_target(); } >- when ( 'delete' ) { delete_target(); } >+if ( $op eq 'show' ) { >+ show_external_targets(); >+} elsif ( $op eq 'add' ) { >+ show_edit_form(); >+} elsif ( $op eq 'edit' ) { >+ show_edit_form(); >+} elsif ( $op eq 'save' ) { >+ save_target(); >+} elsif ( $op eq 'delete' ) { >+ delete_target(); > } > > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/external-targets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/external-targets.tt >index 8858a62..e6b8483 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/external-targets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/external-targets.tt >@@ -8,9 +8,7 @@ > [% END %] > [% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> >-[% INCLUDE 'datatables-strings.inc' %] >-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> >+[% INCLUDE 'datatables.inc' %] > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index a48416c..977a743 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -442,7 +442,7 @@ OPAC: > choices: > yes: Search > no: "Don't search" >- - external targets from the OPAC. >+ - external targets from the OPAC. (Check with your system administrator first to ensure that Pazpar2 is enabled and running.) > > Policy: > - >-- >1.9.0
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 10486
:
19142
|
19143
|
19226
|
19227
|
19680
|
21687
|
21734
|
22084
|
22540
|
23109
|
23112
|
23113
|
24036
|
24206
|
24207
|
24208
|
25235
|
25236
|
25979
|
26002
|
26017
|
26129
|
26804
|
26988
|
27275
|
27276
|
27438
|
27439
|
27440
|
27559
|
27756
|
27781
|
27783
|
27785
|
27786
|
27787
|
27788
|
27789
|
27790