@@ -, +, @@ - Moves the holdingst table from plain DataTable to KohaTable - Creates a sample yml colvis configuration for this table containing all the currently available columns - Visit some record's detail page in the OPAC - Apply this patch - Reload - On the staff interface, go to: Home > Administration > Columns settings holdingst. - Choose to hide some fields (both currently displayed and currently hidden). - Reload the OPAC detail page - Required fields are hidden - It doesn't explode because of trying to hide stuff that is not there to start with - Sign off :-D --- admin/columns_settings.yml | 34 +++++++++ .../prog/en/modules/admin/columns_settings.tt | 6 ++ .../bootstrap/en/includes/columns_settings.inc | 37 ++++++++++ .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 86 +++++++++++----------- 4 files changed, 118 insertions(+), 45 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/columns_settings.inc --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -255,6 +255,40 @@ modules: cannot_be_toggled: 1 cannot_be_modified: 1 + opac: + biblio-detail: + holdingst: + - + columnname: item_itemtype + - + columnname: item_current_location + - + columnname: item_home_location + - + columnname: item_ccode + - + columnname: item_callnumber + - + columnname: item_enumchron + - + columnname: item_url + - + columnname: item_copy + - + columnname: item_status + - + columnname: item_notes + - + columnname: item_datedue + - + columnname: item_barcode + - + columnname: item_holds + - + columnname: item_priority + - + columnname: item_coursereserves + reports: lostitems: lostitems-table: --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt @@ -156,6 +156,12 @@ [% PROCESS pagelist module=modules.members modulename="members" %] +
Item type | [% END %] - [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] -Current location | - [% END %] - [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] -Home library | - [% END %] - [% IF ( itemdata_ccode ) %]Collection | [% END %] -Call number | - [% IF ( itemdata_enumchron ) %]Vol info | [% END %] - [% IF ( itemdata_uri ) %]URL | [% END %] - [% IF ( itemdata_copynumber ) %]Copy number | [% END %] -Status | - [% IF ( itemdata_itemnotes ) %]Notes | [% END %] -Date due | - [% IF ( OPACShowBarcode ) %]Barcode | [% END %] - [% IF holds_count.defined %] -Item holds | - [% ELSIF show_priority %] -Item hold queue priority | - [% END %] - [% IF ( ShowCourseReservesHeader ) %]Course reserves | [% END %] + [% IF ( item_level_itypes ) %] +Item type | [% END %] + [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] +Current location | [% END %] + [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %] +Home library | [% END %] + [% IF ( itemdata_ccode ) %] +Collection | [% END %] +Call number | + [% IF ( itemdata_enumchron ) %] +Vol info | [% END %] + [% IF ( itemdata_uri ) %] +URL | [% END %] + [% IF ( itemdata_copynumber ) %] +Copy number | [% END %] +Status | + [% IF ( itemdata_itemnotes ) %] +Notes | [% END %] +Date due | + [% IF ( OPACShowBarcode ) %] +Barcode | [% END %] + [% IF holds_count.defined %] +Item holds | + [% ELSIF show_priority %] +Item hold queue priority | + [% END %] + [% IF ( ShowCourseReservesHeader ) %] +Course reserves | [% END %]
---|