<?php header("Content-Type: text/plain"); error_reporting(1); ini_set('display_errors', 1); include '../includes/autoloader.php'; include '../includes/config.php'; include '../includes/functions.php'; use SubjectsPlus\Control\Querier; use SubjectsPlus\Control\LibGuidesImport; $libguides_importer = new LibGuidesImport(); // Set the guide id $libguides_importer->setGuideID($_POST['libguide']); // Load all the links from the XML $libguides_xml = $libguides_importer->load_libguides_links_xml('libguides.xml'); // Load the XML $libguides_xml = $libguides_importer->load_libguides_xml('libguides.xml'); // Import the guides with the XML you just loaded $libguides_importer->import_libguides($libguides_xml);
use SubjectsPlus\Control\Querier; use SubjectsPlus\Control\LibGuidesImport; ?> <div class="pluslet"> <div class="titlebar"> <div class="titlebar_text">Instructions</div> </div> <div class="pluslet_body"> For instructions on how to use this view the <a href="http://www.subjectsplus.com/wiki/index.php?title=Libguides_Importer">documentation</a> on the SubjectsPlus wiki. </div> </div> <?php $libguides_importer = new LibGuidesImport(); ?> <div class="pluslet"> <div class="titlebar"> <div class="titlebar_text">Select a Guide to Import</div> </div> <div class="pluslet_body"> <?php $libguides_importer->output_guides('libguides.xml'); ?> <button class="import_guide">Import Guide</button> </div>