Bugzilla – Attachment 65473 Details for
Bug 7317
Add an Interlibrary Loan Module to Circulation and OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7317: Add generic Copyright Clearance functionality.
Bug-7317-Add-generic-Copyright-Clearance-functiona.patch (text/plain), 3.08 KB, created by
Alex Sassmannshausen
on 2017-08-03 15:39:15 UTC
(
hide
)
Description:
Bug 7317: Add generic Copyright Clearance functionality.
Filename:
MIME Type:
Creator:
Alex Sassmannshausen
Created:
2017-08-03 15:39:15 UTC
Size:
3.08 KB
patch
obsolete
>From a74123dfb3841ef7e26cd1eeeb84545e00f71e46 Mon Sep 17 00:00:00 2001 >From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> >Date: Thu, 25 May 2017 18:28:41 +0200 >Subject: [PATCH] Bug 7317: Add generic Copyright Clearance functionality. > >* Koha/Illrequest.pm (backend_create): Consider Copyright Clearance > syspref. >* koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt: Display > Copyright Clearance information. >--- > Koha/Illrequest.pm | 17 +++++++++++++++++ > .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 15 ++++++++++++++- > 2 files changed, 31 insertions(+), 1 deletion(-) > >diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm >index 145c55ac9a..6677fcde03 100644 >--- a/Koha/Illrequest.pm >+++ b/Koha/Illrequest.pm >@@ -467,6 +467,23 @@ pass it $params, as it does not yet have any other data associated with it. > sub backend_create { > my ( $self, $params ) = @_; > >+ # Establish whether we need to do a generic copyright clearance. >+ if ( ( !$params->{stage} || $params->{stage} eq 'init' ) >+ && C4::Context->preference("ILLModuleCopyrightClearance") ) { >+ return { >+ error => 0, >+ status => '', >+ message => '', >+ method => 'create', >+ stage => 'copyrightclearance', >+ value => { >+ backend => $self->_backend->name >+ } >+ }; >+ } elsif ( $params->{stage} eq 'copyrightclearance' ) { >+ $params->{stage} = 'init'; >+ } >+ > # First perform API action, then... > my $args = { > request => $self, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >index 5c2f3fb556..c0137270f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >@@ -1,4 +1,5 @@ > [% USE Branches %] >+[% USE Koha %] > > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › ILL requests ›</title> >@@ -396,7 +397,19 @@ > > [% IF query_type == 'create' %] > <h1>New ILL request</h1> >- [% PROCESS $whole.template %] >+ [% IF whole.stage == 'copyrightclearance' %] >+ <div> >+ <p> >+ [% Koha.Preference('ILLModuleCopyrightClearance') %] >+ </p> >+ <a href="?method=create&stage=copyrightclearance&backend=[% whole.value.backend %]" >+ class="btn btn-sm btn-default btn-group"><i class="fa fa-check">Yes</i></a> >+ <a href="/cgi-bin/koha/ill/ill-requests.pl" >+ class="btn btn-sm btn-default btn-group"><i class="fa fa-times">No</i></a> >+ </div> >+ [% ELSE %] >+ [% PROCESS $whole.template %] >+ [% END %] > > [% ELSIF query_type == 'confirm' %] > <h1>Confirm ILL request</h1> >-- >2.13.4
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 7317
:
59893
|
59894
|
59895
|
59920
|
60485
|
60486
|
60487
|
60488
|
63081
|
63082
|
63083
|
63084
|
63085
|
63086
|
63087
|
63088
|
63089
|
63090
|
63113
|
63175
|
63176
|
63354
|
63421
|
63472
|
63475
|
65469
|
65470
|
65471
|
65472
|
65473
|
65474
|
65475
|
65476
|
66266
|
67242
|
67243
|
67244
|
67245
|
67246
|
67247
|
67248
|
67249
|
67250
|
67251
|
67252
|
67253
|
67254
|
67255
|
67256
|
67257
|
67258
|
67259
|
67260
|
67261
|
67262
|
67263
|
67264
|
67281
|
67282
|
67283
|
67284
|
67285
|
67286
|
67287
|
67288
|
67289
|
67290
|
67291
|
67292
|
67293
|
67294
|
67295
|
67296
|
67297
|
67298
|
67299
|
67300
|
67301
|
67302
|
67303
|
68185
|
68186
|
68328
|
68391
|
68406
|
68407
|
68408
|
68409
|
68418
|
68444
|
68445
|
68483
|
68484
|
68485
|
68487
|
68516
|
68517
|
68518
|
68519
|
68520
|
68521
|
68522
|
68523
|
68524
|
68525
|
68542
|
68543
|
68544
|
68545
|
68546
|
68547
|
68548
|
68549
|
68550
|
68551
|
68552
|
68558
|
68559
|
68560
|
68561
|
68562
|
68563
|
68564
|
68565
|
68566
|
68567
|
68858
|
68874
|
68877
|
68878
|
68885
|
68886
|
68921
|
68922
|
68926
|
68927
|
68928
|
68929
|
68931
|
68932
|
68933
|
68988
|
68989
|
68999
|
69000
|
69006
|
69008
|
69009
|
69012
|
69014
|
69044
|
69045
|
69046
|
69056
|
69059
|
69060
|
69061
|
69063
|
69064
|
69065
|
69066
|
69069
|
69070
|
69071
|
69074