View | Details | Raw Unified | Return to bug 11976
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/Bug11976-DisplayPublishedDate.sql (+1 lines)
Line 0 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('OPACSerialDisplayPublishedDate', 1, NULL, 'Wether to display the publication date (yes) or the received date (no)', 'YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 375-380 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
375
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
375
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
376
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
376
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
377
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
377
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
378
('OPACSerialDisplayPublishedDate', 1, NULL, 'Wether to display the publication date (yes) or the received date (no)', 'YesNo'),
378
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
379
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
379
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
380
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
380
('OPACShowBarcode','0','','Show items barcode in holding tab','YesNo'),
381
('OPACShowBarcode','0','','Show items barcode in holding tab','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref (+7 lines)
Lines 8-13 Serials: Link Here
8
              serialcollection: Serial Collection tab
8
              serialcollection: Serial Collection tab
9
        - as default tab for serials in OPAC. Please note that the Serial Collection tab is currently available only for UNIMARC.
9
        - as default tab for serials in OPAC. Please note that the Serial Collection tab is currently available only for UNIMARC.
10
    -
10
    -
11
        - Display the
12
        - pref: OPACSerialDisplayPublishedDate
13
          choices:
14
              yes: "publication date"
15
              no: "receival date"
16
        - in the OPAC details tab for serials.
17
    -
11
        - pref: RenewSerialAddsSuggestion
18
        - pref: RenewSerialAddsSuggestion
12
          choices:
19
          choices:
13
              yes: Add
20
              yes: Add
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +5 lines)
Lines 853-859 Link Here
853
                                        [% FOREACH latestserial IN subscription.latestserials %]
853
                                        [% FOREACH latestserial IN subscription.latestserials %]
854
                                            <tr>
854
                                            <tr>
855
                                                <td>[% latestserial.serialseq %]</td>
855
                                                <td>[% latestserial.serialseq %]</td>
856
                                                <td>[% latestserial.planneddate %]</td>
856
                                                [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) %]
857
                                                    <td>[% latestserial.publisheddate %]</td>
858
                                                [% ELSE %]
859
                                                    <td>[% latestserial.planneddate %]</td>
860
                                                [% END %]
857
                                                <td>
861
                                                <td>
858
                                                    [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
862
                                                    [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
859
                                                    [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
863
                                                    [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
860
- 

Return to bug 11976