Bugzilla – Attachment 12457 Details for
Bug 7986
Export issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7986: Followup: Hide the export link unless sysprefs are set
SIGNED-OFF-Bug-7986-Followup-Hide-the-export-link-.patch (text/plain), 4.68 KB, created by
Marc Véron
on 2012-09-23 16:19:38 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7986: Followup: Hide the export link unless sysprefs are set
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-09-23 16:19:38 UTC
Size:
4.68 KB
patch
obsolete
>From 9dfd62e3af16e3ceb729942b66ad6693851a2326 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 14 Sep 2012 11:39:35 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 7986: Followup: Hide the export link unless sysprefs are set >Content-Type: text/plain; charset="utf-8" > >If at least one of both sysprefs (ExportRemoveFields and >ExportWithCsvProfile) is filled, the export link is displayed > >Signed-off-by: Marc Veron <veron@veron.ch> > >Tested with both sysprefs filled/not filled, patch behaves as expected. >--- > .../prog/en/modules/circ/circulation.tt | 32 ++++++++++++------- > 1 files changed, 20 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index db17ced..652cbf8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -774,7 +774,9 @@ No patron matched <span class="ex">[% message %]</span> > <th scope="col">Price</th> > <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th> > <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th> >- <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th> >+ [% IF export_remove_fields OR export_with_csv_profile %] >+ <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th> >+ [% END %] > </tr> > [% IF ( todayissues ) %]</thead> > [% INCLUDE 'checkouts-table-footer.inc' %] >@@ -844,10 +846,12 @@ No patron matched <span class="ex">[% message %]</span> > </td> > [% END %] > [% END %] >- <td style="text-align:center;"> >+ [% IF export_remove_fields OR export_with_csv_profile %] >+ <td style="text-align:center;"> > <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" /> > <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" /> >- </td> >+ </td> >+ [% END %] > </tr> > [% END %] <!-- /loop todayissues --> > <!-- /if todayissues -->[% END %] >@@ -923,10 +927,12 @@ No patron matched <span class="ex">[% message %]</span> > </td> > [% END %] > [% END %] >- <td style="text-align:center;"> >+ [% IF export_remove_fields OR export_with_csv_profile %] >+ <td style="text-align:center;"> > <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" /> > <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" /> >- </td> >+ </td> >+ [% END %] > </tr> > <!-- /loop previssues -->[% END %] > <!--/if previssues -->[% END %] >@@ -942,13 +948,15 @@ No patron matched <span class="ex">[% message %]</span> > [% END %] > <input type="submit" name="renew_checked" value="Renew or Return checked items" /> > <input type="submit" id="renew_all" name="renew_all" value="Renew all" /> >- <br/><br/> >- Don't export fields : <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> >- <span id="exportmenuc">Export</span> >- <input type="hidden" name="op" value="export" /> >- <input type="hidden" id="export_format" name="format" value="iso2709" /> >- <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> >- <input type="hidden" id="record_type" name="record_type" value="bibs" /> >+ [% IF export_remove_fields OR export_with_csv_profile %] >+ <br/><br/> >+ Don't export fields : <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" /> >+ <span id="exportmenuc">Export</span> >+ <input type="hidden" name="op" value="export" /> >+ <input type="hidden" id="export_format" name="format" value="iso2709" /> >+ <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> >+ <input type="hidden" id="record_type" name="record_type" value="bibs" /> >+ [% END %] > </fieldset> > [% END %] > </form> >-- >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 7986
:
9269
|
9972
|
10635
|
10675
|
11002
|
11388
|
11407
|
11408
|
11409
|
11972
|
11998
|
11999
|
12000
|
12168
|
12212
|
12296
|
12457
|
12819
|
12821
|
12822
|
12824
|
12840
|
12841
|
12850
|
12882