# HG changeset patch # User ymh # Date 1510931103 -3600 # Node ID 41e4eb4d8b827a838427654b63d8e5c25d7cca89 # Parent 210420362d649ddd06a28bf454dad348bf8e82f9 Correct Handle creation and correct permalink diff -r 210420362d64 -r 41e4eb4d8b82 cms/app-client/app/templates/components/notice-component.hbs --- a/cms/app-client/app/templates/components/notice-component.hbs Fri Nov 17 11:41:58 2017 +0100 +++ b/cms/app-client/app/templates/components/notice-component.hbs Fri Nov 17 16:05:03 2017 +0100 @@ -3,7 +3,7 @@

{{ item.alternativeTitle }}

{{/if}} diff -r 210420362d64 -r 41e4eb4d8b82 cms/app-client/app/templates/components/playlist-component.hbs --- a/cms/app-client/app/templates/components/playlist-component.hbs Fri Nov 17 11:41:58 2017 +0100 +++ b/cms/app-client/app/templates/components/playlist-component.hbs Fri Nov 17 16:05:03 2017 +0100 @@ -40,9 +40,9 @@ as |popover| }}

Partager un lien vers cette notice

- {{input id=(concat "popup-playlist-share-button-text-" index) value=(abs-url-for "document" document.id) readonly='readonly' class='playlist-share-button-link'}} + {{input id=(concat "popup-playlist-share-button-text-" index) value=(concat "https://hdl.handle.net/" item.id) readonly='readonly' class='playlist-share-button-link'}}
-
+
diff -r 210420362d64 -r 41e4eb4d8b82 server/src/app/Console/Commands/ManageHandles.php --- a/server/src/app/Console/Commands/ManageHandles.php Fri Nov 17 11:41:58 2017 +0100 +++ b/server/src/app/Console/Commands/ManageHandles.php Fri Nov 17 16:05:03 2017 +0100 @@ -5,7 +5,7 @@ use Illuminate\Console\Command; use GuzzleHttp\Client; -use CorpusParole\Libraries\Handle\handleClient; +use CorpusParole\Libraries\Handle\HandleClient; use CorpusParole\Libraries\CocoonUtils; use CorpusParole\Repositories\DocumentRepository; @@ -47,7 +47,8 @@ } private function registerHandle($doc) { - $this->handleClient->createHandleUrlRecord($doc->getId(), config('app.url')."/docs/".$doc->getId(), $doc->getTitle()); + $baseUrl = str_replace('corpus-back', 'corpus-app', config('app.url')); + $this->handleClient->createHandleUrlRecord($doc->getId(), "$baseUrl#/doc/".urlencode($doc->getId()), $doc->getTitle()); } /**