Bugzilla – Attachment 149325 Details for
Bug 33180
Use template wrapper for tabs: Budgets and Search engine configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33180: Use template wrapper for tabs: Budgets and Search engine configuration
Bug-33180-Use-template-wrapper-for-tabs-Budgets-an.patch (text/plain), 52.20 KB, created by
Katrin Fischer
on 2023-04-08 22:03:26 UTC
(
hide
)
Description:
Bug 33180: Use template wrapper for tabs: Budgets and Search engine configuration
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-04-08 22:03:26 UTC
Size:
52.20 KB
patch
obsolete
>From a02c5add0c6df8790ef8bf1003e5114632d68655 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 9 Mar 2023 15:20:21 +0000 >Subject: [PATCH] Bug 33180: Use template wrapper for tabs: Budgets and Search > engine configuration > >This patch updates two administration templates so that they use the new >WRAPPER directive to build tabbed navigation: Budgets and Search engine >configuration. > >Note: this patch includes indentation changes, so check the diff >accordingly. > >To test, apply the patch and check the updated pages: > > - Administration -> Budgets > - Administration -> Search engine configuration > >On both pages tabs should look correct and work correctly. > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/admin/aqbudgetperiods.tt | 164 ++--- > .../searchengine/elasticsearch/mappings.tt | 562 +++++++++--------- > 2 files changed, 362 insertions(+), 364 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >index 78ef29164a..4c4c3aad78 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >@@ -474,89 +474,89 @@ > <div class="dialog message">Failed to delete budget because funds exist.</div> > [% END %] > >- [% INCLUDE 'budgets-active-currency.inc' %] >+ [% INCLUDE 'budgets-active-currency.inc' %] >+ >+ [% WRAPPER tabs id= "budgetsTabs" %] >+ >+ [% WRAPPER tabs_nav %] >+ [% WRAPPER tab_item tabname= "active" bt_active= 1 %] <span>Active budgets</span> [% END %] >+ [% WRAPPER tab_item tabname= "inactive" %] <span>Inactive budgets</span> [% END %] >+ [% END # /WRAPPER tabs_nav %] >+ >+ [% WRAPPER tab_panels %] >+ [% WRAPPER tab_panel tabname="active" bt_active= 1 %] >+ [% IF ( period_active_loop ) %] >+ <table id="activeperiodst"> >+ <thead> >+ <tr> >+ <th>Budget name</th> >+ <th>Start date</th> >+ <th>End date</th> >+ <th>Locked</th> >+ <th>Total</th> >+ <th class="noExport">Actions</th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH period_active IN period_active_loop %] >+ <tr> >+ <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id | uri %]" title="View funds for [% period_active.budget_period_description | html %]">[% period_active.budget_period_description | html %]</a></td> >+ <td data-order="[% period_active.budget_period_startdate | html %]">[% period_active.budget_period_startdate | $KohaDates %]</td> >+ <td data-order="[% period_active.budget_period_enddate | html %]">[% period_active.budget_period_enddate | $KohaDates %]</td> >+ <td> >+ [% IF ( period_active.budget_period_locked ) %] >+ <i class="fa fa-lock"></i> Locked</span> >+ [% END %] >+ </td> >+ <td class="data">[% period_active.budget_period_total | $Price %]</td> >+ <td> >+ [% PROCESS action_menu block_budget=period_active %] >+ </td> >+ </tr> >+ [% END # /FOREACH period_active %] >+ </tbody> >+ </table> <!-- /#activeperiodst --> >+ [% ELSE %] >+ <span>No active budgets</span> >+ [% END # /IF period_active_loop %] >+ [% END # /WRAPPER tab_panel#active %] >+ >+ [% WRAPPER tab_panel tabname="inactive" %] >+ [% IF ( period_inactive_loop ) %] >+ <table id="inactiveperiodst"> >+ <thead> >+ <tr> >+ <th>Budget name</th> >+ <th>Start date</th> >+ <th>End date</th> >+ <th>Locked</th> >+ <th>Total</th> >+ <th class="noExport">Actions</th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH period_loo IN period_inactive_loop %] >+ <tr> >+ <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id | uri %]" title="View funds for [% period_loo.budget_period_description | html %]">[% period_loo.budget_period_description | html %]</a></td> >+ <td data-order="[% period_loo.budget_period_startdate | html %]">[% period_loo.budget_period_startdate | $KohaDates %]</td> >+ <td data-order="[% period_loo.budget_period_enddate | html %]">[% period_loo.budget_period_enddate | $KohaDates %]</td> >+ <td>[% IF ( period_loo.budget_period_locked ) %]<i class="fa fa-lock"></i> Locked[% END %]</td> >+ <td class="data">[% period_loo.budget_period_total | $Price %]</td> >+ <td> >+ [% PROCESS action_menu block_budget=period_loo %] >+ </td> >+ </tr> >+ [% END # /FOREACH period_loo %] >+ </tbody> >+ </table> <!-- /#inactiveperiodst --> >+ [% ELSE %] >+ <span>No inactive budgets</span> >+ [% END # /IF inactiveperiodst %] >+ [% END # /WRAPPER tab_panel#inactive %] >+ [% END # /WRAPPER tab_panels %] >+ [% END # /WRAPPER tabs %] > >- <div id="budgetsTabs" class="toptabs"> >- <ul class="nav nav-tabs" role="tablist"> >- <li role="presentation" class="active"> >- <a href="#active" aria-controls="active" role="tab" data-toggle="tab">Active budgets</a> >- </li> >- <li role="presentation"> >- <a href="#inactive" aria-controls="inactive" role="tab" data-toggle="tab">Inactive budgets</a> >- </li> >- </ul> >- <div class="tab-content"> >- <div id="active" role="tabpanel" class="tab-pane active"> >- [% IF ( period_active_loop ) %] >- <table id="activeperiodst"> >- <thead> >- <tr> >- <th>Budget name</th> >- <th>Start date</th> >- <th>End date</th> >- <th>Locked</th> >- <th>Total</th> >- <th class="noExport">Actions</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH period_active IN period_active_loop %] >- <tr> >- <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id | uri %]" title="View funds for [% period_active.budget_period_description | html %]">[% period_active.budget_period_description | html %]</a></td> >- <td data-order="[% period_active.budget_period_startdate | html %]">[% period_active.budget_period_startdate | $KohaDates %]</td> >- <td data-order="[% period_active.budget_period_enddate | html %]">[% period_active.budget_period_enddate | $KohaDates %]</td> >- <td> >- [% IF ( period_active.budget_period_locked ) %] >- <i class="fa fa-lock"></i> Locked</span> >- [% END %] >- </td> >- <td class="data">[% period_active.budget_period_total | $Price %]</td> >- <td> >- [% PROCESS action_menu block_budget=period_active %] >- </td> >- </tr> >- [% END %] >- </tbody> >- </table> >- [% ELSE %] >- No active budgets >- [% END %] >- </div> >- <div id="inactive" role="tabpanel" class="tab-pane"> >- [% IF ( period_inactive_loop ) %] >- <table id="inactiveperiodst"> >- <thead> >- <tr> >- <th>Budget name</th> >- <th>Start date</th> >- <th>End date</th> >- <th>Locked</th> >- <th>Total</th> >- <th class="noExport">Actions</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH period_loo IN period_inactive_loop %] >- <tr> >- <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id | uri %]" title="View funds for [% period_loo.budget_period_description | html %]">[% period_loo.budget_period_description | html %]</a></td> >- <td data-order="[% period_loo.budget_period_startdate | html %]">[% period_loo.budget_period_startdate | $KohaDates %]</td> >- <td data-order="[% period_loo.budget_period_enddate | html %]">[% period_loo.budget_period_enddate | $KohaDates %]</td> >- <td>[% IF ( period_loo.budget_period_locked ) %]<i class="fa fa-lock"></i> Locked[% END %]</td> >- <td class="data">[% period_loo.budget_period_total | $Price %]</td> >- <td> >- [% PROCESS action_menu block_budget=period_loo %] >- </td> >- </tr> >- [% END %] >- </tbody> >- </table> >- [% ELSE %] >- No inactive budgets >- [% END %] >- </div> >- </div> <!-- /.tab-content --> >- </div> >-[% END %] >+[% END # /IF else %] > > </main> > </div> <!-- /.col-sm-10.col-sm-push-2 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >index 658223345f..283334f2db 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >@@ -118,319 +118,316 @@ a.add, a.delete { > </div> > > <form id="es_mappings" method="post"> >- <div id="tabs" class="toptabs"> >- <ul class="nav nav-tabs" role="tablist"> >- <li role="presentation" class="active"> >- <a href="#search_fields" data-tab="search_fields" aria-controls="search_fields" role="tab" data-toggle="tab" >Search fields</a> >- </li> >+ >+ [% WRAPPER tabs id= "tabs" %] >+ >+ [% WRAPPER tabs_nav %] >+ [% WRAPPER tab_item tabname= "search_fields" bt_active= 1 %] Search fields [% END %] > [% FOREACH index IN indexes %] > [% SWITCH index.index_name %] > [% CASE 'biblios' %] >- <li role="presentation"> >- <a href="#mapping_biblios" data-tab="mapping_biblios" aria-controls="mapping_biblios" role="tab" data-toggle="tab">Bibliographic records</a> >- </li> >+ [% WRAPPER tab_item tabname= "mapping_biblios" %] <span>Bibliographic records</span> [% END %] > [% CASE 'authorities' %] >- <li role="presentation"> >- <a href="#mapping_authorities" data-tab="mapping_authorities" aria-controls="mapping_authorities" role="tab" data-toggle="tab">Authorities</a> >- </li> >+ [% WRAPPER tab_item tabname= "mapping_authorities" %] <span>Authorities</span> [% END %] > [% END %] > [% END %] >- </ul> >- <div class="tab-content"> >- <div id="search_fields" role="tabpanel" class="tab-pane active"> >+ [% END # /WRAPPER tabs_nav %] >+ >+ [% WRAPPER tab_panels %] >+ [% WRAPPER tab_panel tabname="search_fields" bt_active= 1 %] > <table class="search_fields" id="search_fields_table"> > <thead> >- <tr> >- <th>Name</th> >- <th>Aliases</th> >- <th>Label</th> >- <th>Type</th> >- <th>Weight</th> >- <th colspan="2">Searchable</th> >- </tr> >- <tr> >- <th colspan="5" class="NoSort"> </th> >- <th class="NoSort">Staff interface</th> >- <th class="NoSort">OPAC</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH search_field IN all_search_fields %] > <tr> >- <td data-order="[% search_field.name | html %]"> >- [% IF search_field.mandatory %] >- <input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly /> >- [% ELSE %] >- <input type="text" name="search_field_name" value="[% search_field.name | html %]" /> >- [% END %] >- </td> >- <td> >- [% search_field.aliases.join(', ') | html %] >- </td> >- <td data-order="[% search_field.label | html %]"> >- [% IF search_field.mandatory %] >- <input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly /> >- [% ELSE %] >- <input type="text" name="search_field_label" value="[% search_field.label | html %]" /> >- [% END %] >- </td> >- <td data-order="[% search_field.type | html %]"> >- [% IF search_field.mandatory %] >- <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" /> >- <select name="search_field_type" disabled> >- [% ELSE %] >- <select name="search_field_type"> >- [% END %] >- <option value=""></option> >- [% IF search_field.type == "string" %] >- <option value="string" selected="selected">String</option> >- [% ELSE %] >- <option value="string">String</option> >- [% END %] >- [% IF search_field.type == "date" %] >- <option value="date" selected="selected">Date</option> >- [% ELSE %] >- <option value="date">Date</option> >- [% END %] >- [% IF search_field.type == "year" %] >- <option value="year" selected="selected">Year</option> >- [% ELSE %] >- <option value="year">Year</option> >- [% END %] >- [% IF search_field.type == "number" %] >- <option value="number" selected="selected">Number</option> >- [% ELSE %] >- <option value="number">Number</option> >- [% END %] >- [% IF search_field.type == "boolean" %] >- <option value="boolean" selected="selected">Boolean</option> >- [% ELSE %] >- <option value="boolean">Boolean</option> >- [% END %] >- [% IF search_field.type == "sum" %] >- <option value="sum" selected="selected">Sum</option> >- [% ELSE %] >- <option value="sum">Sum</option> >- [% END %] >- [% IF search_field.type == "isbn" %] >- <option value="isbn" selected="selected">ISBN</option> >- [% ELSE %] >- <option value="isbn">ISBN</option> >- [% END %] >- [% IF search_field.type == "stdno" %] >- <option value="stdno" selected="selected">Std. Number</option> >- [% ELSE %] >- <option value="stdno">Std. Number</option> >- [% END %] >- [% IF search_field.type == "callnumber" %] >- <option value="callnumber" selected="selected">Call Number</option> >- [% ELSE %] >- <option value="callnumber">Call Number</option> >- [% END %] >- </select> >- </td> >- <td data-order="[% search_field.weight | html %]"> >- [% IF search_field.mapped_biblios %] >- <input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" /> >- [% ELSE %] >- <input type="text" name="search_field_weight" value=""> >- [% END %] >- </td> >- <td> >- <select name="search_field_staff_client"> >- [% IF search_field.staff_client %] >- <option value="1" selected="selected">Yes</option> >- <option value="0">No</option> >- [% ELSE %] >- <option value="1">Yes</option> >- <option value="0" selected="selected">No</option> >- [% END %] >- </select> >- </td> >- <td> >- <select name="search_field_opac"> >- [% IF search_field.opac %] >- <option value="1" selected="selected">Yes</option> >- <option value="0">No</option> >- [% ELSE %] >- <option value="1">Yes</option> >- <option value="0" selected="selected">No</option> >- [% END %] >- </select> >- </td> >+ <th>Name</th> >+ <th>Aliases</th> >+ <th>Label</th> >+ <th>Type</th> >+ <th>Weight</th> >+ <th colspan="2">Searchable</th> > </tr> >- [% END %] >- </tbody> >- </table> >- </div> >- [% FOREACH index IN indexes %] >- <div id="mapping_[% index.index_name | html %]" role="tabpanel" class="tab-pane"> >- <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table"> >- <thead> >- <tr class="nodrag nodrop"> >- <th>Search field</th> >- <th>Sortable</th> >- <th>Facetable</th> >- <th>Suggestible</th> >- <th>Searchable</th> >- <th>Mapping</th> >- <th> </th> >+ <tr> >+ <th colspan="5" class="NoSort"> </th> >+ <th class="NoSort">Staff interface</th> >+ <th class="NoSort">OPAC</th> > </tr> > </thead> > <tbody> >- [% FOREACH mapping IN index.mappings %] >- [% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %] >+ [% FOREACH search_field IN all_search_fields %] > <tr> >- <td> >- <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> >- <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> >- [% mapping.search_field_name | html %] >- [% IF mapping.search_field_label != mapping.search_field_name %] ([% mapping.search_field_label | html %])[% END %] >+ <td data-order="[% search_field.name | html %]"> >+ [% IF search_field.mandatory %] >+ <input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly /> >+ [% ELSE %] >+ <input type="text" name="search_field_name" value="[% search_field.name | html %]" /> >+ [% END %] > </td> > <td> >- [% IF mapping.sort == 0 %] >- <input type="hidden" name="mapping_sort" value="0" readonly />No >- [% ELSE %] >- <input type="hidden" name="mapping_sort" value="1" readonly />Yes >- [% END %] >+ [% search_field.aliases.join(', ') | html %] > </td> >- <td> >- <input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %] >+ <td data-order="[% search_field.label | html %]"> >+ [% IF search_field.mandatory %] >+ <input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly /> >+ [% ELSE %] >+ <input type="text" name="search_field_label" value="[% search_field.label | html %]" /> >+ [% END %] > </td> >- <td> >- <input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %] >+ <td data-order="[% search_field.type | html %]"> >+ [% IF search_field.mandatory %] >+ <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" /> >+ <select name="search_field_type" disabled> >+ [% ELSE %] >+ <select name="search_field_type"> >+ [% END %] >+ <option value=""></option> >+ [% IF search_field.type == "string" %] >+ <option value="string" selected="selected">String</option> >+ [% ELSE %] >+ <option value="string">String</option> >+ [% END %] >+ [% IF search_field.type == "date" %] >+ <option value="date" selected="selected">Date</option> >+ [% ELSE %] >+ <option value="date">Date</option> >+ [% END %] >+ [% IF search_field.type == "year" %] >+ <option value="year" selected="selected">Year</option> >+ [% ELSE %] >+ <option value="year">Year</option> >+ [% END %] >+ [% IF search_field.type == "number" %] >+ <option value="number" selected="selected">Number</option> >+ [% ELSE %] >+ <option value="number">Number</option> >+ [% END %] >+ [% IF search_field.type == "boolean" %] >+ <option value="boolean" selected="selected">Boolean</option> >+ [% ELSE %] >+ <option value="boolean">Boolean</option> >+ [% END %] >+ [% IF search_field.type == "sum" %] >+ <option value="sum" selected="selected">Sum</option> >+ [% ELSE %] >+ <option value="sum">Sum</option> >+ [% END %] >+ [% IF search_field.type == "isbn" %] >+ <option value="isbn" selected="selected">ISBN</option> >+ [% ELSE %] >+ <option value="isbn">ISBN</option> >+ [% END %] >+ [% IF search_field.type == "stdno" %] >+ <option value="stdno" selected="selected">Std. Number</option> >+ [% ELSE %] >+ <option value="stdno">Std. Number</option> >+ [% END %] >+ [% IF search_field.type == "callnumber" %] >+ <option value="callnumber" selected="selected">Call Number</option> >+ [% ELSE %] >+ <option value="callnumber">Call Number</option> >+ [% END %] >+ </select> > </td> >+ <td data-order="[% search_field.weight | html %]"> >+ [% IF search_field.mapped_biblios %] >+ <input type="text" inputmode="decimal" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" /> >+ [% ELSE %] >+ <input type="text" name="search_field_weight" value=""> >+ [% END %] >+ </td> > <td> >- <input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %] >+ <select name="search_field_staff_client"> >+ [% IF search_field.staff_client %] >+ <option value="1" selected="selected">Yes</option> >+ <option value="0">No</option> >+ [% ELSE %] >+ <option value="1">Yes</option> >+ <option value="0" selected="selected">No</option> >+ [% END %] >+ </select> > </td> >- <td data-search="[% mapping.marc_field | html %]"> >- <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> >+ <td> >+ <select name="search_field_opac"> >+ [% IF search_field.opac %] >+ <option value="1" selected="selected">Yes</option> >+ <option value="0">No</option> >+ [% ELSE %] >+ <option value="1">Yes</option> >+ <option value="0" selected="selected">No</option> >+ [% END %] >+ </select> > </td> >- <td> </td> > </tr> >- [% ELSE %] >- <tr> >+ [% END %] >+ </tbody> >+ </table> >+ [% END %] >+ [% FOREACH index IN indexes %] >+ [% WRAPPER tab_panel tabname="mapping_${ index.index_name }" %] >+ <table class="mappings" data-index_name="[% index.index_name | html %]" data-ordering="false" id="mapping_[% index.index_name | html %]_table"> >+ <thead> >+ <tr class="nodrag nodrop"> >+ <th>Search field</th> >+ <th>Sortable</th> >+ <th>Facetable</th> >+ <th>Suggestible</th> >+ <th>Searchable</th> >+ <th>Mapping</th> >+ <th> </th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH mapping IN index.mappings %] >+ [% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %] >+ <tr> >+ <td> >+ <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> >+ <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> >+ [% mapping.search_field_name | html %] >+ [% IF mapping.search_field_label != mapping.search_field_name %] ([% mapping.search_field_label | html %])[% END %] >+ </td> >+ <td> >+ [% IF mapping.sort == 0 %] >+ <input type="hidden" name="mapping_sort" value="0" readonly />No >+ [% ELSE %] >+ <input type="hidden" name="mapping_sort" value="1" readonly />Yes >+ [% END %] >+ </td> >+ <td> >+ <input type="hidden" name="mapping_facet" value="[% mapping.facet | html %]" readonly />[% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %] >+ </td> >+ <td> >+ <input type="hidden" name="mapping_suggestible" value="[% mapping.suggestible | html %]" readonly />[% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %] >+ </td> >+ <td> >+ <input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %] >+ </td> >+ <td data-search="[% mapping.marc_field | html %]"> >+ <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> >+ </td> >+ <td> </td> >+ </tr> >+ [% ELSE %] >+ <tr> >+ <td> >+ <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> >+ <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> >+ [% mapping.search_field_name | html %] >+ [% IF mapping.search_field_label != mapping.search_field_name %] ([% mapping.search_field_label | html %])[% END %] >+ </td> >+ <td> >+ <select name="mapping_sort"> >+ [% IF mapping.sort == 0 %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% ELSE %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% END %] >+ </select> >+ </td> >+ <td> >+ [% IF mapping.is_facetable %] >+ <select name="mapping_facet"> >+ [% IF mapping.facet %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> >+ [% ELSE %] >+ <input type="hidden" name="mapping_facet" value="0" /> >+ No >+ [% END %] >+ </td> >+ <td> >+ <select name="mapping_suggestible"> >+ [% IF mapping.suggestible %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> >+ </td> >+ <td> >+ <select name="mapping_search"> >+ [% IF mapping.search %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> >+ </td> >+ <td data-search="[% mapping.marc_field | html %]"> >+ <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> >+ </td> >+ [% IF mapping.search_field_mandatory %] >+ <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> >+ [% ELSE %] >+ <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> >+ [% END %] >+ </tr> >+ [% END %] >+ [% END %] >+ </tbody> >+ <tfoot> >+ <tr class="nodrag nodrop"> > <td> >- <input type="hidden" name="mapping_index_name" value="[% index.index_name | html %]" /> >- <input type="hidden" name="mapping_search_field_name" value="[% mapping.search_field_name | html %]"> >- [% mapping.search_field_name | html %] >- [% IF mapping.search_field_label != mapping.search_field_name %] ([% mapping.search_field_label | html %])[% END %] >+ <input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" /> >+ <select data-id="mapping_search_field_name"> >+ [% FOREACH f IN all_search_fields %] >+ <option value="[% f.name | html %]">[% f.name | html %][% IF f.label != f.name %] ([% f.label | html %])[% END %]</option> >+ [% END %] >+ </select> > </td> > <td> >- <select name="mapping_sort"> >- [% IF mapping.sort == 0 %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% ELSE %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% END %] >- </select> >+ <select data-id="mapping_sort"> >+ <option value="undef">Undef</option> >+ <option value="0">0</option> >+ <option value="1">1</option> >+ </select> > </td> > <td> >- [% IF mapping.is_facetable %] >- <select name="mapping_facet"> >- [% IF mapping.facet %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >+ <select data-id="mapping_facet"> >+ [% IF mapping.facet %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] > </select> >- [% ELSE %] >- <input type="hidden" name="mapping_facet" value="0" /> >- No >- [% END %] > </td> > <td> >- <select name="mapping_suggestible"> >- [% IF mapping.suggestible %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >- </select> >+ <select data-id="mapping_suggestible"> >+ [% IF mapping.suggestible %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> > </td> > <td> >- <select name="mapping_search"> >- [% IF mapping.search %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >- </select> >- </td> >- <td data-search="[% mapping.marc_field | html %]"> >- <input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" /> >+ <select data-id="mapping_search"> >+ [% IF mapping.search %] >+ <option value="0">No</option> >+ <option value="1" selected="selected">Yes</option> >+ [% ELSE %] >+ <option value="0" selected="selected">No</option> >+ <option value="1">Yes</option> >+ [% END %] >+ </select> > </td> >- [% IF mapping.search_field_mandatory %] >- <td><a class="btn btn-default btn-xs delete mandatory" data-field_name="[% mapping.search_field_name | html %]" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> >- [% ELSE %] >- <td><a class="btn btn-default btn-xs delete" style="cursor: pointer;"><i class="fa fa-trash"></i> Delete</a></td> >- [% END %] >+ <td><input data-id="mapping_marc_field" type="text" /></td> >+ <td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td> > </tr> >- [% END %] >- [% END %] >- </tbody> >- <tfoot> >- <tr class="nodrag nodrop"> >- <td> >- <input data-id="mapping_index_name" type="hidden" value="[% index.index_name | html %]" /> >- <select data-id="mapping_search_field_name"> >- [% FOREACH f IN all_search_fields %] >- <option value="[% f.name | html %]">[% f.name | html %][% IF f.label != f.name %] ([% f.label | html %])[% END %]</option> >- [% END %] >- </select> >- </td> >- <td> >- <select data-id="mapping_sort"> >- <option value="undef">Undef</option> >- <option value="0">0</option> >- <option value="1">1</option> >- </select> >- </td> >- <td> >- <select data-id="mapping_facet"> >- [% IF mapping.facet %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >- </select> >- </td> >- <td> >- <select data-id="mapping_suggestible"> >- [% IF mapping.suggestible %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >- </select> >- </td> >- <td> >- <select data-id="mapping_search"> >- [% IF mapping.search %] >- <option value="0">No</option> >- <option value="1" selected="selected">Yes</option> >- [% ELSE %] >- <option value="0" selected="selected">No</option> >- <option value="1">Yes</option> >- [% END %] >- </select> >- </td> >- <td><input data-id="mapping_marc_field" type="text" /></td> >- <td><a class="btn btn-default btn-xs add"><i class="fa fa-plus"></i> Add</a></td> >- </tr> >- </tfoot> >+ </tfoot> > </table> > > [% IF index.index_name == 'biblios' %] >@@ -478,10 +475,11 @@ a.add, a.delete { > </table> > </div> > [% END %] >- </div> >- [% END %] >- </div> <!-- /.tab-content --> >- </div> <!-- /#tabs --> >+ [% END # /WRAPPER tab_panel#mapping_{ index.index_name} %] >+ [% END # /FOREACH index %] >+ [% END # /WRAPPER tab_panels %] >+ [% END # /WRAPPER tabs %] >+ > <fieldset class="action"> > <button class="btn btn-primary" type="submit" name="op" value="edit"><i class="fa fa-hdd-o" aria-hidden="true"></i> Save</button> > <button class="btn btn-default" type="submit" name="op" value="reset_confirm"><i class="fa fa-refresh" aria-hidden="true"></i> Reset mappings</button> >-- >2.30.2
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 33180
:
148015
|
148422
|
148879
| 149325