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

(-)a/installer/data/mysql/atomicupdate/Bug11976-DisplayPublishedDate.sql (-1 / +2 lines)
Line 1 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');
1
DELETE FROM systempreferences WHERE variable='OPACSerialDisplayPublishedDate';
2
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('OPACSerialDisplayPublishedDate', 'both', 'publication|receival|both', 'Which date should be displayed in the OPAC page of a serial', 'Choice');
(-)a/installer/data/mysql/kohastructure.sql (+3 lines)
Lines 3922-3927 CREATE TABLE IF NOT EXISTS `housebound_role` ( Link Here
3922
-- Table structure for table 'article_requests'
3922
-- Table structure for table 'article_requests'
3923
--
3923
--
3924
3924
3925
DROP TABLE IF EXISTS `article_requests`;
3925
CREATE TABLE `article_requests` (
3926
CREATE TABLE `article_requests` (
3926
  `id` int(11) NOT NULL AUTO_INCREMENT,
3927
  `id` int(11) NOT NULL AUTO_INCREMENT,
3927
  `borrowernumber` int(11) NOT NULL,
3928
  `borrowernumber` int(11) NOT NULL,
Lines 3955-3960 CREATE TABLE `article_requests` ( Link Here
3955
-- Table structure for table `biblio_metadata`
3956
-- Table structure for table `biblio_metadata`
3956
--
3957
--
3957
3958
3959
DROP TABLE IF EXISTS `biblio_metadata`;
3958
CREATE TABLE biblio_metadata (
3960
CREATE TABLE biblio_metadata (
3959
    `id` INT(11) NOT NULL AUTO_INCREMENT,
3961
    `id` INT(11) NOT NULL AUTO_INCREMENT,
3960
    `biblionumber` INT(11) NOT NULL,
3962
    `biblionumber` INT(11) NOT NULL,
Lines 3970-3975 CREATE TABLE biblio_metadata ( Link Here
3970
-- Table structure for table `deletedbiblio_metadata`
3972
-- Table structure for table `deletedbiblio_metadata`
3971
--
3973
--
3972
3974
3975
DROP TABLE IF EXISTS `deletedbiblio_metadata`;
3973
CREATE TABLE deletedbiblio_metadata (
3976
CREATE TABLE deletedbiblio_metadata (
3974
    `id` INT(11) NOT NULL AUTO_INCREMENT,
3977
    `id` INT(11) NOT NULL AUTO_INCREMENT,
3975
    `biblionumber` INT(11) NOT NULL,
3978
    `biblionumber` INT(11) NOT NULL,
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 376-382 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
376
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
376
('OpacSeparateHoldings','0',NULL,'Separate current branch holdings from other holdings (OPAC)','YesNo'),
377
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
377
('OpacSeparateHoldingsBranch','homebranch','homebranch|holdingbranch','Branch used to separate holdings (OPAC)','Choice'),
378
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
378
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
379
('OPACSerialDisplayPublishedDate', 1, NULL, 'Wether to display the publication date (yes) or the received date (no)', 'YesNo'),
379
('OPACSerialDisplayPublishedDate', 'both', 'publication|receival|both', 'Which date should be displayed in the OPAC page of a serial', 'Choice'),
380
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
380
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
381
('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'),
381
('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'),
382
('OPACShowBarcode','0','','Show items barcode in holding tab','YesNo'),
382
('OPACShowBarcode','0','','Show items barcode in holding tab','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref (-2 / +3 lines)
Lines 11-18 Serials: Link Here
11
        - Display the
11
        - Display the
12
        - pref: OPACSerialDisplayPublishedDate
12
        - pref: OPACSerialDisplayPublishedDate
13
          choices:
13
          choices:
14
              yes: "publication date"
14
              publication: "publication date"
15
              no: "receival date"
15
              receival: "receival date"
16
              both: "publication and receival dates"
16
        - in the OPAC details tab for serials.
17
        - in the OPAC details tab for serials.
17
    -
18
    -
18
        - pref: RenewSerialAddsSuggestion
19
        - pref: RenewSerialAddsSuggestion
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-4 / +9 lines)
Lines 846-861 Link Here
846
                                    <table class="table table-bordered table-striped">
846
                                    <table class="table table-bordered table-striped">
847
                                        <tr>
847
                                        <tr>
848
                                            <th>Issue #</th>
848
                                            <th>Issue #</th>
849
                                            <th>Date</th>
849
                                            [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'publication' || Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'both' %]
850
                                                <th>Publication date</th>
851
                                            [% END %]
852
                                            [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'receival' || Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'both' %]
853
                                                <th>Receival date</th>
854
                                            [% END %]
850
                                            <th>Status</th>
855
                                            <th>Status</th>
851
                                            <th>Note</th>
856
                                            <th>Note</th>
852
                                        </tr>
857
                                        </tr>
853
                                        [% FOREACH latestserial IN subscription.latestserials %]
858
                                        [% FOREACH latestserial IN subscription.latestserials %]
854
                                            <tr>
859
                                            <tr>
855
                                                <td>[% latestserial.serialseq %]</td>
860
                                                <td>[% latestserial.serialseq %]</td>
856
                                                [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) %]
861
                                                [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'publication' || Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'both' %]
857
                                                    <td>[% latestserial.publisheddate %]</td>
862
                                                    <td>[% latestserial.publisheddate %]</td>
858
                                                [% ELSE %]
863
                                                [% END %]
864
                                                [% IF Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'receival' || Koha.Preference( 'OPACSerialDisplayPublishedDate' ) == 'both' %]
859
                                                    <td>[% latestserial.planneddate %]</td>
865
                                                    <td>[% latestserial.planneddate %]</td>
860
                                                [% END %]
866
                                                [% END %]
861
                                                <td>
867
                                                <td>
862
- 

Return to bug 11976