forked from gbv/vufind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateHierarchyTrees.php
38 lines (37 loc) · 1.62 KB
/
createHierarchyTrees.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Create all the hierarchy files which are used for looking up hierarchichal trees.
* This script will search the Solr index and create the files needed so they don't
* need to be built at runtime. If this script is run after every index, the caching
* time for hierarchy trees can be set to -1 so that trees are always assumed to be
* up to date.
*
* -!!!!-This script is specifically for trees built for JSTree from Solr.-!!!!-
*
* PHP version 5
*
* Copyright (C) National Library of Ireland 2012.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @category VuFind2
* @package Utilities
* @author Lutz Biedinger <[email protected]>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki Wiki
*/
// Load the Zend framework -- this will automatically trigger the appropriate
// controller action based on directory and file names
define('CLI_DIR', __DIR__); // save directory name of current script
require_once __DIR__ . '/../public/index.php';