Skip to content

Commit

Permalink
Prepare deeplinks for Tsugi
Browse files Browse the repository at this point in the history
 - Move get_meta_data from oai to template_library
  • Loading branch information
torinfo committed Nov 26, 2023
1 parent e672d47 commit 5abc664
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 279 deletions.
4 changes: 1 addition & 3 deletions oai-pmh/oai.php
Expand Up @@ -25,9 +25,7 @@
die("oai-pmh is not available");
}
require_once('oai_config.php');
require_once('xerteobjects.php');

//require $xerte_toolkits_site->php_library_path . "template_library.php";
require_once($xerte_toolkits_site->php_library_path . "template_library.php");

/**
* Identifier settings. It needs to have proper values to reflect the settings of the data provider.
Expand Down
274 changes: 0 additions & 274 deletions oai-pmh/xerteobjects.php

This file was deleted.

4 changes: 2 additions & 2 deletions oai-pmh/Html2Text.php → website_code/php/Html2Text.php
Expand Up @@ -530,7 +530,7 @@ protected function convertBlockquotes(&$text)
// Re-set text width
$this->options['width'] = $pWidth;
// Replace content
$text = mb_substr($text, 0, $start - $diff)
$text = Html2Text . phpmb_substr($text, 0, $start - $diff)
. $body
. mb_substr($text, $end + mb_strlen($m[0]) - $diff);

Expand Down Expand Up @@ -650,7 +650,7 @@ protected function tostrike($str)
$rtn = '';
for ($i = 0; $i < mb_strlen($str); $i++) {
$chr = mb_substr($str, $i, 1);
$combiningChr = chr(0xC0 | 0x336 >> 6). chr(0x80 | 0x336 & 0x3F);
$combiningChr = Html2Text . phpchr(0xC0 | 0x336 >> 6) . chr(0x80 | 0x336 & 0x3F);
$rtn .= $chr . $combiningChr;
}
return $rtn;
Expand Down

0 comments on commit 5abc664

Please sign in to comment.