Skip to content
Snippets Groups Projects
Commit e6a5cc3d authored by David Maus's avatar David Maus
Browse files

Initialer Commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 240 additions and 0 deletions
/tmp
/resources/auxdata
\ No newline at end of file
Makefile 0 → 100644
.PHONY: server
server:
php -S 127.0.0.1:9999 -t public public/index.php
.PHONY: mets
mets:
calabash.cmd -o result=resources/daten/repertorium/mets.xml resources/xproc/repertorium/mets.xpl
.PHONY: solr
solr:
calabash.cmd resources/xproc/repertorium/solr.xpl
calabash.cmd -i resources/mets.xml resources/xproc/fulltext/fulltext.xpl
.PHONY: normdaten
normdaten:
calabash.cmd -i resources/daten/edition/register/orte.xml resources/xproc/normdaten.xpl
calabash.cmd -i resources/daten/edition/register/personen.xml resources/xproc/normdaten.xpl
calabash.cmd -i resources/daten/repertorium/register/orte.xml resources/xproc/normdaten.xpl
calabash.cmd -i resources/daten/repertorium/register/personen.xml resources/xproc/normdaten.xpl
.PHONY: linkmap
linkmap:
calabash.cmd -i resources/daten/edition/diarium.xml -o resources/daten/edition/diarium/linkmap.xml resources/xproc/edition/linkmap.xpl
.PHONY: deploy
deploy:
robocopy .\\ \\\\devserver\hosting\development\2015\selbstzeugnisse.hab.de /MIR /XD .git /XD tmp
.PHONY: sitemap
sitemap:
calabash.cmd -i resources/mets.xml -o public/sitemap.xml resources/xproc/sitemap.xpl
.PHONY: publish
publish: mets linkmap sitemap solr deploy
@robocopy Z:\ \\DEVSERVER\Hosting\development\2015\selbstzeugnisse.hab.de /MIR /XD Z:\.git Z:\tmp
{
"autoload": {
"psr-0": {
"HAB\\": "src/"
}
},
"require": {
"silex/silex": "^2.0",
"hab/solr": "dev-master",
"hab/paginator": "dev-master",
"twig/twig": "~1.0",
"symfony/twig-bridge": "^3.2",
"willdurand/negotiation": "^2.3"
},
"repositories": [
{
"type": "git",
"url": "git@github.com:dmj/php-solr.git"
},
{
"type": "git",
"url": "git@github.com:dmj/php-paginator.git"
}
]
}
This diff is collapsed.
<?php
$app['controller.staticpage'] = $app->factory(
function () use ($app) {
$configuration = $app['mets'];
return new HAB\Selbstzeugnisse\StaticPageController($configuration);
}
);
$app['controller.dynamicpage'] = $app->factory(
function () use ($app) {
$configuration = $app['mets'];
return new HAB\Selbstzeugnisse\DynamicPageController($configuration);
}
);
$app['controller.search'] = $app->factory(
function () use ($app) {
$twig = $app['twig'];
$config = $app['mets'];
$invoker = $app['solr.ft.invoker'];
$controller = new HAB\Selbstzeugnisse\FulltextSearchController($config, $invoker, $twig);
return $controller;
}
);
$app['controller.repertorium.results'] = $app->factory(
function () use ($app) {
$twig = $app['twig'];
$config = $app['mets'];
$invoker = $app['solr.invoker'];
$controller = new HAB\Selbstzeugnisse\SolrResultsController($config, $invoker, $twig);
$facet = new HAB\Solr\Facet\DefaultFacetAdapter(new HAB\Solr\Facet\Impl\FieldFacet('genre', array('facet.mincount' => '1', 'facet.sort' => 'index')));
$facet->setName('genre');
$facet->setLabel('Textsorte');
$controller->getFacets()->addFacet($facet);
$facet = new HAB\Solr\Facet\DefaultFacetAdapter(new HAB\Solr\Facet\Impl\FieldFacet('language', array('facet.mincount' => '1', 'facet.limit' => 10)));
$facet->setName('lang');
$facet->setLabel('Sprache');
$controller->getFacets()->addFacet($facet);
$filter = new HAB\Selbstzeugnisse\ComponentStateFilter();
$controller->getFacets()->setComponentStateFilter($filter);
return $controller;
}
);
$app['controller.repertorium.list'] = $app->factory(
function () use ($app) {
$twig = $app['twig'];
$config = $app['mets'];
$invoker = $app['solr.invoker'];
$controller = new HAB\Selbstzeugnisse\SolrListController($config, $invoker, $twig);
return $controller;
}
);
\ No newline at end of file
<?php
$app->get('/', 'controller.staticpage:handle')
->bind('home');
$app->get('/edition/', 'controller.staticpage:handle')
->bind('edition');
$app->get('/edition/beschreibung', 'controller.staticpage:handle')
->bind('edition.beschreibung');
$app->get('/edition/richtlinien', 'controller.staticpage:handle')
->bind('edition.richtlinien');
$app->get('/edition/diarium/register.xml', 'controller.staticpage:handle')
->bind('edition.diarium.register');
$app->get('/edition/diarium/{metsId}', 'controller.dynamicpage:handle')
->bind('edition.diarium.jahr')
->convert('metsId', function ($metsId) { return "edition.diarium.{$metsId}"; });
$app->get('/edition/diarium/', 'controller.staticpage:handle')
->bind('edition.diarium');
$app->get('/edition/personen', 'controller.staticpage:handle')
->bind('edition.personen');
$app->get('/edition/orte', 'controller.staticpage:handle')
->bind('edition.orte');
$app->get('/repertorium/', 'controller.staticpage:handle')
->bind('repertorium');
$app->get('/repertorium/suche/', 'controller.repertorium.results:handle')
->bind('repertorium.suche');
$app->get('/repertorium/eintrag/{metsId}', 'controller.dynamicpage:handle')
->bind('repertorium.eintrag')
->convert('metsId', function ($metsId) { return "repertorium.eintrag.{$metsId}"; });
$app->get('/repertorium/liste', 'controller.repertorium.list:handle')
->bind('repertorium.liste');
$app->get('/repertorium/orte', 'controller.staticpage:handle')
->bind('repertorium.orte');
$app->get('/bibliographie', 'controller.staticpage:handle')
->bind('bibliographie');
$app->get('/projekt', 'controller.staticpage:handle')
->bind('projekt');
$app->get('/extern', 'controller.staticpage:handle')
->bind('extern');
$app->get('/impressum', 'controller.staticpage:handle')
->bind('impressum');
$app->get('/dienste/repertorium/orte', 'controller.staticpage:handle')
->bind('dienste.repertorium.orte');
$app->get('/suche', 'controller.search:handle')
->bind('suche');
<?php
$app->register(new Silex\Provider\TwigServiceProvider());
$app->register(new Silex\Provider\ServiceControllerServiceProvider());
$app['solr.url'] = 'http://194.95.134.40:8080/solr/selbst';
$app['solr.client'] = $app->factory(
function () use ($app) {
return new GuzzleHttp\Client();
}
);
$app['solr.invoker'] = $app->factory(
function () use ($app) {
$url = $app['solr.url'];
$client = $app['solr.client'];
return new HAB\Solr\Command\Invoker($url, $client);
}
);
$app['solr.ft.url'] = 'http://194.95.134.40:8080/solr/selbst-ft';
$app['solr.ft.client'] = $app->factory(
function () use ($app) {
return new GuzzleHttp\Client();
}
);
$app['solr.ft.invoker'] = $app->factory(
function () use ($app) {
$url = $app['solr.ft.url'];
$client = $app['solr.ft.client'];
return new HAB\Solr\Command\Invoker($url, $client);
}
);
$app['mets'] = $app->factory(
function () use ($app) {
return new HAB\Selbstzeugnisse\Configuration(__DIR__ . '/../resources/mets.xml');
}
);
$app['twig.path'] = array(__DIR__ . '/../resources');
This diff is collapsed.
This diff is collapsed.
File added
File added
Source diff could not be displayed: it is too large. Options to address this: view the blob.
File added
File added
File added
/*! jQuery UI - v1.12.1 - 2016-09-29
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
This diff is collapsed.
/*!
Zoom 1.7.18
license: MIT
http://www.jacklmoore.com/zoom
*/
(function(o){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};o.zoom=function(t,n,e,i){var u,c,a,r,m,l,s,f=o(t),h=f.css("position"),d=o(n);return t.style.position=/(absolute|fixed)/.test(h)?h:"relative",t.style.overflow="hidden",e.style.width=e.style.height="",o(e).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:e.width*i,height:e.height*i,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(t),{init:function(){c=f.outerWidth(),u=f.outerHeight(),n===t?(r=c,a=u):(r=d.outerWidth(),a=d.outerHeight()),m=(e.width-c)/r,l=(e.height-u)/a,s=d.offset()},move:function(o){var t=o.pageX-s.left,n=o.pageY-s.top;n=Math.max(Math.min(n,a),0),t=Math.max(Math.min(t,r),0),e.style.left=t*-m+"px",e.style.top=n*-l+"px"}}},o.fn.zoom=function(n){return this.each(function(){var e=o.extend({},t,n||{}),i=e.target&&o(e.target)[0]||this,u=this,c=o(u),a=document.createElement("img"),r=o(a),m="mousemove.zoom",l=!1,s=!1;if(!e.url){var f=u.querySelector("img");if(f&&(e.url=f.getAttribute("data-src")||f.currentSrc||f.src),!e.url)return}c.one("zoom.destroy",function(o,t){c.off(".zoom"),i.style.position=o,i.style.overflow=t,a.onload=null,r.remove()}.bind(this,i.style.position,i.style.overflow)),a.onload=function(){function t(t){f.init(),f.move(t),r.stop().fadeTo(o.support.opacity?e.duration:0,1,o.isFunction(e.onZoomIn)?e.onZoomIn.call(a):!1)}function n(){r.stop().fadeTo(e.duration,0,o.isFunction(e.onZoomOut)?e.onZoomOut.call(a):!1)}var f=o.zoom(i,u,a,e.magnify);"grab"===e.on?c.on("mousedown.zoom",function(e){1===e.which&&(o(document).one("mouseup.zoom",function(){n(),o(document).off(m,f.move)}),t(e),o(document).on(m,f.move),e.preventDefault())}):"click"===e.on?c.on("click.zoom",function(e){return l?void 0:(l=!0,t(e),o(document).on(m,f.move),o(document).one("click.zoom",function(){n(),l=!1,o(document).off(m,f.move)}),!1)}):"toggle"===e.on?c.on("click.zoom",function(o){l?n():t(o),l=!l}):"mouseover"===e.on&&(f.init(),c.on("mouseenter.zoom",t).on("mouseleave.zoom",n).on(m,f.move)),e.touch&&c.on("touchstart.zoom",function(o){o.preventDefault(),s?(s=!1,n()):(s=!0,t(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0]))}).on("touchmove.zoom",function(o){o.preventDefault(),f.move(o.originalEvent.touches[0]||o.originalEvent.changedTouches[0])}).on("touchend.zoom",function(o){o.preventDefault(),s&&(s=!1,n())}),o.isFunction(e.callback)&&e.callback.call(a)},a.src=e.url})},o.fn.zoom.defaults=t})(window.jQuery);
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment