Bug 8992: DB changes - add the IdRef syspref

Signed-off-by: valerie bertrand <valerie.bertrand@univ-lyon3.fr>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-04-23 13:33:25 +02:00 committed by Tomas Cohen Arazi
parent 6af69c2648
commit d04af8d7e4
3 changed files with 18 additions and 0 deletions

View File

@ -148,6 +148,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('IDreamBooksReadometer','0','','Display Readometer from IDreamBooks.com','YesNo'),
('IDreamBooksResults','0','','Display IDreamBooks.com rating in search results','YesNo'),
('IDreamBooksReviews','0','','Display book review snippets from IDreamBooks.com','YesNo'),
('IdRef','0','','Disable/enable the IdRef webservice from the OPAC detail page.','YesNo'),
('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),

View File

@ -10257,6 +10257,16 @@ DELETE FROM language_descriptions
SetVersion($DBversion);
}
$DBversion = "3.19.00.XXX";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(q{
INSERT INTO systempreferences (variable,value,explanation,options,type)
VALUES('IdRef','0','Disable/enable the IdRef webservice from the OPAC detail page.',NULL,'YesNo')
});
print "Upgrade to $DBversion done (Bug 8992: Add system preference IdRef))\n";
SetVersion($DBversion);
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.

View File

@ -45,3 +45,10 @@ Web services:
- pref: SvcMaxReportRows
class: integer
- rows of a report requested via the reports web service.
IdRef:
-
- pref: IdRef
choices:
yes: Enable
no: Disable
- the IdRef webservice from the opac detail page. IdRef allows to request authorities from the Sudoc database.