Bug 14510: (QA followup) Fix bug with unmapped columns

Fall back more smoothly when items subfields are not mapped to a
kohafield. Note, however, that this development does not allow applying
default settings to subfields that aren't mapped. A note has been added
to the columns settings page, as there is no known workaround for this.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Jesse Weaver 2015-08-06 12:48:07 -06:00 committed by Tomas Cohen Arazi
parent 13fadc06da
commit cd104f0a90
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ function KohaTable(selector, dt_parameters, columns_settings) {
var excluded_ids = [];
$(columns_settings).each( function() {
var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( 'th' );
var used_id = named_id == -1 ? id : named_id;
var used_id = this.columnname ? named_id : id;
if ( used_id == -1 ) return;
if ( this['is_hidden'] == "1" ) {
hidden_ids.push( used_id );

View File

@ -13,7 +13,7 @@
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
[% FOR tablename IN tables.$pagename.keys.sort %]
[% IF pagename == 'additem' AND tablename == 'itemst' %]
<div class="alert">Saving changes to column visibility here will override framework visibility settings for the table of items.</div>
<div class="alert">Changes made below will only apply to item subfields that are <a href="/cgi-bin/koha/admin/koha2marclinks.pl">mapped</a> to the <code>items</code> table.</div>
[% END %]
<table>
<caption>