first commit
This commit is contained in:
11
plugins/annotate/annotate.yaml
Normal file
11
plugins/annotate/annotate.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
name : annotate
|
||||
title : Annotate
|
||||
author : Tom Gleason
|
||||
version : 1.01
|
||||
desc : Enables creation of jquery image annotations.
|
||||
icon : fa fa-comment fa-regular
|
||||
icon-colour: black
|
||||
config_url: /plugins/annotate/pages/setup.php
|
||||
default_priority: 999
|
||||
category: Collaboration
|
||||
info_url: https://www.resourcespace.com/knowledge-base/plugins/annotate
|
15
plugins/annotate/config/config.php
Normal file
15
plugins/annotate/config/config.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//resource types to exclude
|
||||
$annotate_rt_exclude=array(3,4);
|
||||
//extensions to exclude
|
||||
$annotate_ext_exclude=array();
|
||||
$annotate_debug=false;
|
||||
//public visibility of annotations
|
||||
$annotate_public_view=true;
|
||||
//display author of annotation
|
||||
$annotate_show_author=false;
|
||||
$annotate_font="helvetica";
|
||||
$annotate_pdf_output=false;
|
||||
$annotate_pdf_output_only_annotated=false;
|
||||
$annotate_admin_edit_access=array();
|
||||
$annotate_resource_type_field = 0;
|
5
plugins/annotate/css/Col-black.css
Normal file
5
plugins/annotate/css/Col-black.css
Normal file
@@ -0,0 +1,5 @@
|
||||
.IconNotes {background: url(../../../plugins/annotate/lib/jquery/images/asterisk_yellow.png) no-repeat 140px 5px;}
|
||||
#image-annotate-edit-form {
|
||||
background: #999 none repeat scroll 0 0;
|
||||
border-top: 1px solid #FFFFFF;border-right: 1px solid #AAA;border-bottom: 1px solid #AAA;border-left: 1px solid #AAA;
|
||||
}
|
6
plugins/annotate/css/Col-greyblu.css
Normal file
6
plugins/annotate/css/Col-greyblu.css
Normal file
@@ -0,0 +1,6 @@
|
||||
.IconNotes {background: url(../../../plugins/annotate/lib/jquery/images/asterisk_yellow.png) no-repeat 140px 5px;}
|
||||
#image-annotate-edit-form {
|
||||
background: #B5C3D4 none repeat scroll 0 0;
|
||||
border-top: 1px solid #FFFFFF;border-right: 1px solid #94A7C0;border-bottom: 1px solid #94A7C0;border-left: 1px solid #94A7C0;
|
||||
}
|
||||
|
5
plugins/annotate/css/Col-whitegry.css
Normal file
5
plugins/annotate/css/Col-whitegry.css
Normal file
@@ -0,0 +1,5 @@
|
||||
.IconNotes {background-image: url(../../../plugins/annotate/lib/jquery/images/asterisk_yellow.png) no-repeat;}
|
||||
#image-annotate-edit-form {
|
||||
background: #999 none repeat scroll 0 0;
|
||||
border-top: 1px solid #FFFFFF;border-right: 1px solid #AAA;border-bottom: 1px solid #AAA;border-left: 1px solid #AAA;
|
||||
}
|
42
plugins/annotate/css/style.css
Normal file
42
plugins/annotate/css/style.css
Normal file
@@ -0,0 +1,42 @@
|
||||
#image-annotate-edit-form {
|
||||
border: 1px solid #000000;
|
||||
background: #ffffee none repeat scroll 0 0;
|
||||
}
|
||||
|
||||
.image-actions {
|
||||
background: #000000c4;
|
||||
padding: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
-moz-border-radius-bottomright: 5px;
|
||||
-webkit-border-bottom-right-radius: 5px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.image-actions a {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.annotate-view-wrapper {
|
||||
display:table;
|
||||
clear:none;
|
||||
margin: 0px auto;
|
||||
float: left;
|
||||
min-width: 720px;
|
||||
}
|
||||
|
||||
.annotate-view-preview-links {
|
||||
float: right;
|
||||
padding-top: 5px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.image-annotate-canvas {
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
|
||||
.RecordPanelLarge .annotate-view-wrapper {
|
||||
float: none;
|
||||
}
|
12
plugins/annotate/dbstruct/table_annotate_notes.txt
Normal file
12
plugins/annotate/dbstruct/table_annotate_notes.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
ref,int(11),YES,,,
|
||||
top_pos,int(11),YES,,,
|
||||
left_pos,int(11),YES,,,
|
||||
width,int(11),YES,,,
|
||||
height,int(11),YES,,,
|
||||
preview_width,int(11),YES,,,
|
||||
preview_height,int(11),YES,,,
|
||||
note,text,YES,,,
|
||||
note_id,int(11),NO,PRI,,auto_increment
|
||||
user,int(11),YES,,,
|
||||
page,int(5),YES,,,
|
||||
node,int(11),NO,,0,
|
1
plugins/annotate/dbstruct/table_resource.txt
Normal file
1
plugins/annotate/dbstruct/table_resource.txt
Normal file
@@ -0,0 +1 @@
|
||||
annotation_count,int(11),YES,,,
|
1
plugins/annotate/dbstruct/table_resource_keyword.txt
Normal file
1
plugins/annotate/dbstruct/table_resource_keyword.txt
Normal file
@@ -0,0 +1 @@
|
||||
annotation_ref,int(11),NO,,,
|
126
plugins/annotate/hooks/all.php
Normal file
126
plugins/annotate/hooks/all.php
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
function HookAnnotateAllInitialise()
|
||||
{
|
||||
global $annotate_resource_type_field;
|
||||
config_register_core_fieldvars("Annotate plugin",['annotate_resource_type_field']);
|
||||
}
|
||||
|
||||
function HookAnnotateAllModifyselect()
|
||||
{
|
||||
return " ,r.annotation_count ";
|
||||
}
|
||||
|
||||
function HookAnnotateAllRemoveannotations()
|
||||
{
|
||||
global $ref;
|
||||
|
||||
ps_query("DELETE FROM annotate_notes WHERE ref = ?",["i",$ref]);
|
||||
ps_query("UPDATE resource SET annotation_count=0 WHERE ref = ?",["i",$ref]);
|
||||
}
|
||||
|
||||
function HookAnnotateAllRender_actions_add_collection_option($top_actions, array $options, $collection_data, array $urlparams){
|
||||
global $lang,$pagename,$annotate_pdf_output,$annotate_pdf_output_only_annotated,$baseurl,$collection,$count_result;
|
||||
|
||||
// Make sure this check takes place before $GLOBALS["hook_return_value"] can be unset by subsequent calls to hook()
|
||||
if(isset($GLOBALS["hook_return_value"]) && is_array($GLOBALS["hook_return_value"]))
|
||||
{
|
||||
// @see hook() for an explanation about the hook_return_value global
|
||||
$options = $GLOBALS["hook_return_value"];
|
||||
}
|
||||
|
||||
if ($annotate_pdf_output || $count_result!=0){
|
||||
$annotate_option = array(
|
||||
"value" => "annotate",
|
||||
"label" => $lang["pdfwithnotes"],
|
||||
"data_attr" => array(
|
||||
"url" => generateURL(
|
||||
"{$baseurl}/plugins/annotate/pages/annotate_pdf_config.php",
|
||||
$urlparams,
|
||||
array(
|
||||
"col" => $collection,
|
||||
)),
|
||||
),
|
||||
);
|
||||
$options[] = $annotate_option;
|
||||
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
function HookAnnotateAllAdditionalheaderjs(){
|
||||
global $baseurl,$k,$baseurl_short,$css_reload_key;
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" media="screen,projection,print" href="<?php echo $baseurl_short?>plugins/annotate/lib/jquery/css/annotation.css?css_reload_key=<?php echo $css_reload_key?>"/>
|
||||
|
||||
<script type="text/javascript" src="<?php echo $baseurl_short?>plugins/annotate/lib/jquery/js/jquery.annotate.js?css_reload_key=<?php echo $css_reload_key?>"></script>
|
||||
<script language="javascript">
|
||||
function annotate(ref, k, imgElement, annotate_toggle, page, modal){
|
||||
|
||||
//Determine displayed (potentially scaled) image dimensions
|
||||
w = imgElement.offsetWidth;
|
||||
h = imgElement.offsetHeight;
|
||||
|
||||
// Prevent duplication of image if loading is interrupted:
|
||||
var canvasExists = document.getElementsByClassName("image-annotate-canvas");
|
||||
if (canvasExists.length != 0)
|
||||
{
|
||||
return
|
||||
}
|
||||
|
||||
// Set function's optional arguments:
|
||||
page = typeof page !== 'undefined' ? page : 1;
|
||||
modal = typeof modal !== 'undefined' ? modal : false;
|
||||
|
||||
// Set defaults:
|
||||
var url_params = '';
|
||||
|
||||
if(page != 1)
|
||||
{
|
||||
url_params = '&page=' + page;
|
||||
}
|
||||
|
||||
var target = jQuery("#toAnnotate");
|
||||
if(modal)
|
||||
{
|
||||
target = jQuery("#modal #toAnnotate");
|
||||
}
|
||||
|
||||
target.annotateImage({
|
||||
getUrl: "<?php echo $baseurl_short?>plugins/annotate/pages/get.php?ref="+ref+"&k="+k+"&pw="+w+"&ph="+h + url_params,
|
||||
saveUrl: "<?php echo $baseurl_short?>plugins/annotate/pages/save.php?ref="+ref+"&k="+k+"&pw="+w+"&ph="+h + url_params,
|
||||
deleteUrl: "<?php echo $baseurl_short?>plugins/annotate/pages/delete.php?ref="+ref+"&k="+k + url_params,
|
||||
useAjax: true,
|
||||
<?php
|
||||
if ($k=="")
|
||||
{?>
|
||||
editable: true,
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{ ?>
|
||||
editable: false,
|
||||
<?php
|
||||
} ?>
|
||||
toggle: annotate_toggle,
|
||||
modal: modal,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php }
|
||||
|
||||
function HookAnnotateAllExport_add_tables()
|
||||
{
|
||||
return array("annotate_notes"=>array());
|
||||
}
|
||||
|
||||
function HookAnnotateAllEdithidefield($field)
|
||||
{
|
||||
global $annotate_resource_type_field;
|
||||
if(isset($field["ref"]) && $field["ref"] == $annotate_resource_type_field)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
123
plugins/annotate/hooks/preview.php
Normal file
123
plugins/annotate/hooks/preview.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
function HookAnnotatePreviewReplacepreviewbacktoview(){
|
||||
global $baseurl,$lang,$ref,$search,$offset,$order_by,$sort,$archive,$k;
|
||||
|
||||
$urlparams = array(
|
||||
"annotate" => (getval("annotate","") == "true" ? "true" : ""),
|
||||
"ref" => $ref,
|
||||
"search" => $search,
|
||||
"offset" => $offset,
|
||||
"order_by" => $order_by,
|
||||
"sort" => $sort,
|
||||
"archive" => $archive,
|
||||
"k" => $k,
|
||||
);
|
||||
?>
|
||||
<p style="margin:7px 0 7px 0;padding:0;"><a class="enterLink" href="<?php echo generateURL($baseurl . "/pages/view.php", $urlparams); ?>"><?php echo LINK_CARET_BACK ?><?php echo escape($lang["backtoresourceview"]); ?></a>
|
||||
<?php return true;
|
||||
}
|
||||
|
||||
function HookAnnotatePreviewPreviewimage2 (){
|
||||
global $ajax,$ext,$baseurl,$ref,$k,$search,$offset,$order_by,$sort,$archive,$lang,
|
||||
$download_multisize,$baseurl_short,$url,$annotate_ext_exclude,
|
||||
$annotate_rt_exclude,$annotate_public_view,$annotate_pdf_output,$nextpage,
|
||||
$previouspage, $alternative, $view_title_field;
|
||||
|
||||
$resource=get_resource_data($ref);
|
||||
$size = resource_download_allowed($resource['ref'], 'scr', $resource['resource_type']) ? ['scr'] : ['pre'];
|
||||
$preview_path = get_resource_preview($resource, $size);
|
||||
if($preview_path !== false) {
|
||||
$preview_path = $preview_path['path'];
|
||||
}
|
||||
$path_orig = resource_download_allowed($resource['ref'], '', $resource['resource_type']) ? get_resource_path($resource['ref'], true, '') : $preview_path;
|
||||
|
||||
if($preview_path === false && ($path_orig === false || trim($path_orig) == '')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (in_array($resource['file_extension'],$annotate_ext_exclude)){return false;}
|
||||
if (in_array($resource['resource_type'],$annotate_rt_exclude)){return false;}
|
||||
|
||||
if ($k != "" && !$annotate_public_view) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file_exists($preview_path) && !file_exists($path_orig)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
button_ok = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["ok"])) ?>";
|
||||
button_cancel = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["cancel"])) ?>";
|
||||
button_delete = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-delete"])) ?>";
|
||||
button_add = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-add_note"])) ?>";
|
||||
button_toggle = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-toggle-on"])) ?>";
|
||||
button_toggle_off = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-toggle-off"])) ?>";
|
||||
error_saving = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["error-saving"])) ?>";
|
||||
error_deleting = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["error-deleting"])) ?>";
|
||||
</script>
|
||||
<script>
|
||||
jQuery.noConflict();
|
||||
</script>
|
||||
|
||||
<div id="wrapper" style="display:block;clear:none;float:left;margin: 0px;">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<?php
|
||||
|
||||
$urlparams = array(
|
||||
"ref" => $ref,
|
||||
"alternative" => $alternative,
|
||||
"ext" => $ext,
|
||||
"search" => $search,
|
||||
"offset" => $offset,
|
||||
"order_by" => $order_by,
|
||||
"sort" => $sort,
|
||||
"archive" => $archive,
|
||||
"k" => $k
|
||||
);
|
||||
|
||||
if($resource['file_extension'] != "jpg" && $previouspage != -1 && resource_download_allowed($ref, "scr", $resource["resource_type"])) { ?>
|
||||
<td valign="middle">
|
||||
<a onClick="return CentralSpaceLoad(this);" href="<?php echo generateURL($baseurl_short . "pages/preview.php", $urlparams,array("page" => $previouspage)); ?>" class="PDFnav pagePrev"><</a>
|
||||
</td>
|
||||
<?php
|
||||
} elseif($nextpage !=-1 && resource_download_allowed($ref, "scr", $resource["resource_type"])) { ?>
|
||||
<td valign="middle">
|
||||
<a href="#" class="PDFnav pagePrev"> </a>
|
||||
</td>
|
||||
<?php
|
||||
} ?>
|
||||
<div>
|
||||
<td>
|
||||
<img alt="<?php echo escape(i18n_get_translated($resource['field'.$view_title_field] ?? ""));?>"
|
||||
alt="" id="toAnnotate" onload="annotate(<?php echo (int)$ref?>,'<?php echo escape($k)?>',this ,<?php echo escape(getval("annotate_toggle",true))?>,<?php echo (int) getval('page', 1); ?>, false);" src="<?php echo escape($url)?>" id="previewimage" class="Picture" GALLERYIMG="no" style="display:block;" />
|
||||
</td>
|
||||
<?php
|
||||
if($nextpage != -1 && resource_download_allowed($ref, "scr", $resource["resource_type"])) { ?>
|
||||
<td valign="middle">
|
||||
<a onClick="return CentralSpaceLoad(this);" href="<?php echo generateURL($baseurl_short . "pages/preview.php", $urlparams, array("page" => $nextpage)); ?>" class="PDFnav pageNext">></a>
|
||||
</td>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<div style="padding-top:5px;">
|
||||
|
||||
<?php if ($annotate_pdf_output){?>
|
||||
<a style="display:inline;float:right;margin-right:10px;" href="<?php echo generateURL($baseurl. '/plugins/annotate/pages/annotate_pdf_config.php?', $urlparams, ['ext' => $resource["preview_extension"]])?>" >> <?php echo escape($lang["pdfwithnotes"])?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</tr></table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
54
plugins/annotate/hooks/search.php
Normal file
54
plugins/annotate/hooks/search.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
function HookAnnotateSearchIcons($collections = false)
|
||||
{
|
||||
global $baseurl, $k, $search, $archive, $sort, $offset, $order_by, $result, $n, $lang, $k, $annotate_public_view;
|
||||
|
||||
if ($k != '' && !$annotate_public_view) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!is_array($result))
|
||||
{
|
||||
?>
|
||||
<div class="clearerleft"></div>
|
||||
<div class="ResourcePanelInfo">
|
||||
<span class="IconUserRatingSpace"></span>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!$collections && isset($result[$n]) && isset($result[$n]['annotation_count']) && null != $result[$n]['annotation_count'] && 0 != $result[$n]['annotation_count'] && 'pdf' != $result[$n]['file_extension'])
|
||||
{
|
||||
?>
|
||||
<div class="clearerleft"></div>
|
||||
<div class="ResourcePanelInfo">
|
||||
<span class="IconUserRatingSpace" style="width:0px;"></span>
|
||||
<img alt="" src="<?php echo $baseurl?>/plugins/annotate/lib/jquery/images/asterisk_yellow.png" height="10"/>
|
||||
<a href="<?php echo generateURL($baseurl . '/pages/view.php', ['annotate' => true, 'ref' => $result[$n]['ref'], 'k' => $k, 'search' => $search, 'offset' => $offset, 'order_by' => $order_by, 'sort' => $sort, 'archive' => $archive])?>" onClick="return CentralSpaceLoad(this,true);"><?php echo escape($result[$n]['annotation_count']==1 ? $lang["note-1"] : str_replace("%number", $result[$n]['annotation_count'], $lang["note-2"])); ?></a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<div class="clearerleft"></div>
|
||||
<div class="ResourcePanelInfo">
|
||||
<span class="IconUserRatingSpace"></span>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
function HookAnnotateSearchThumbs_resourceshell_height()
|
||||
{
|
||||
global $baseurl, $k, $search, $archive, $sort, $offset, $order_by, $result, $n, $lang, $k, $annotate_public_view, $thumbs_displayed_fields_height, $field_height;
|
||||
|
||||
if(!('' != $k && !$annotate_public_view))
|
||||
{
|
||||
$thumbs_displayed_fields_height = $thumbs_displayed_fields_height + $field_height;
|
||||
}
|
||||
|
||||
}
|
132
plugins/annotate/hooks/view.php
Normal file
132
plugins/annotate/hooks/view.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
function HookAnnotateViewRenderinnerresourcepreview()
|
||||
{
|
||||
global $baseurl_short, $ajax, $ref, $ffmpeg_preview_extension, $resource, $k,
|
||||
$search, $offset, $order_by, $sort, $archive, $lang, $download_multisize,
|
||||
$baseurl, $annotate_ext_exclude, $annotate_rt_exclude, $annotate_public_view,
|
||||
$annotate_pdf_output, $ffmpeg_audio_extensions, $view_title_field, $retina_mode, $resource_view_use_pre, $access;
|
||||
|
||||
if(in_array($resource['file_extension'], $annotate_ext_exclude))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(in_array($resource['resource_type'], $annotate_rt_exclude))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($k != '' && !$annotate_public_view) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$video_preview_file = get_resource_path($ref, true, 'pre', false, $ffmpeg_preview_extension);
|
||||
|
||||
if(file_exists($video_preview_file))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(in_array($resource['file_extension'], $ffmpeg_audio_extensions) || $resource['file_extension'] == "mp3")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if((int) $resource['has_image'] !== RESOURCE_PREVIEWS_NONE)
|
||||
{
|
||||
?>
|
||||
<script>
|
||||
button_ok = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["ok"])) ?>";
|
||||
button_cancel = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["cancel"])) ?>";
|
||||
button_delete = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-delete"])) ?>";
|
||||
button_add = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-add_note"])) ?>";
|
||||
button_toggle = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-toggle-on"])) ?>";
|
||||
button_toggle_off = "> <?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["action-toggle-off"])) ?>";
|
||||
error_saving = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["error-saving"])) ?>";
|
||||
error_deleting = "<?php echo preg_replace("/\r?\n/", "\\n", addslashes($lang["error-deleting"])) ?>";
|
||||
|
||||
jQuery.noConflict();
|
||||
</script>
|
||||
<?php
|
||||
$use_watermark = check_use_watermark();
|
||||
$use_size = (($retina_mode || !$resource_view_use_pre) && $access === 0) ? 'scr' : 'pre';
|
||||
$imagepath = get_resource_path($ref, true, $use_size, false, $resource['preview_extension'], -1, 1, $use_watermark);
|
||||
|
||||
if(!file_exists($imagepath))
|
||||
{
|
||||
$use_size = 'thm';
|
||||
$imagepath=get_resource_path($ref,true, $use_size,false,$resource["preview_extension"],-1,1,$use_watermark);
|
||||
$imageurl=get_resource_path($ref,false, $use_size,false,$resource["preview_extension"],-1,1,$use_watermark);
|
||||
}
|
||||
else
|
||||
{
|
||||
$imageurl=get_resource_path($ref,false, $use_size,false,$resource["preview_extension"],-1,1,$use_watermark);
|
||||
}
|
||||
|
||||
if(resource_has_access_denied_by_RT_size($resource['resource_type'], $use_size))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!file_exists($imagepath))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(file_exists($imagepath))
|
||||
{
|
||||
$modal = (getval("modal", "") == "true" ? "true" : "false");
|
||||
?>
|
||||
<div id="wrapper" class="annotate-view-wrapper">
|
||||
<div>
|
||||
<img alt="<?php echo escape(i18n_get_translated($resource['field'.$view_title_field] ?? ""));?>"
|
||||
id="toAnnotate" onload="annotate(<?php echo (int) $ref?>,'<?php echo escape($k)?>', this, <?php echo escape(getval("annotate_toggle",true))?>, 1, <?php echo escape($modal); ?>);" src="<?php echo escape($imageurl . "&iaccept=on")?>" id="previewimage" class="Picture" GALLERYIMG="no" style="display:block;" />
|
||||
</div>
|
||||
|
||||
<div class="annotate-view-preview-links" >
|
||||
<?php
|
||||
$urlparams = array(
|
||||
"annotate" => (getval("annotate","") == "true" ? "true" : ""),
|
||||
"ref" => $ref,
|
||||
"ext" => $resource["preview_extension"],
|
||||
"search" => $search,
|
||||
"offset" => $offset,
|
||||
"order_by" => $order_by,
|
||||
"sort" => $sort,
|
||||
"archive" => $archive,
|
||||
"k" => $k
|
||||
); ?>
|
||||
|
||||
<a class="enterLink" href="<?php echo generateURL($baseurl_short . "pages/preview.php", $urlparams); ?>" title="<?php echo escape($lang["fullscreenpreview"])?>"><?php echo LINK_CARET . escape($lang["fullscreenpreview"])?></a>
|
||||
<?php
|
||||
|
||||
if($annotate_pdf_output)
|
||||
{
|
||||
?>
|
||||
<a style="display:inline;float:right;" class="nowrap" href="<?php echo generateURL($baseurl_short . 'plugins/annotate/pages/annotate_pdf_config.php', $urlparams)?>" onClick="return CentralSpaceLoad(this);"><?php echo LINK_CARET . $lang["pdfwithnotes"]; ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<div id="previewimagewrapper">
|
||||
<?php echo get_nopreview_html((string) $resource["file_extension"], $resource["resource_type"]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function HookAnnotateViewpreviewlinkbar()
|
||||
{
|
||||
// Remove View links from drop down on view page.
|
||||
// Annotate plugin will add "Full screen preview" link instead.
|
||||
return true;
|
||||
}
|
299
plugins/annotate/include/annotate_functions.php
Normal file
299
plugins/annotate/include/annotate_functions.php
Normal file
@@ -0,0 +1,299 @@
|
||||
<?php
|
||||
|
||||
use Montala\ResourceSpace\CommandPlaceholderArg;
|
||||
|
||||
include_once __DIR__ . '/../../../lib/html2pdf/vendor/tecnickcom/tcpdf/tcpdf.php';
|
||||
|
||||
class MYPDF extends TCPDF {
|
||||
|
||||
public function MultiRow($left, $right) {
|
||||
|
||||
$page_start = $this->getPage();
|
||||
$y_start = $this->GetY();
|
||||
|
||||
// write the left cell
|
||||
$this->MultiCell(.5, 0, $left, 1, 'C', 1, 2, '', '', true, 0);
|
||||
|
||||
$page_end_1 = $this->getPage();
|
||||
$y_end_1 = $this->GetY();
|
||||
|
||||
$this->setPage($page_start);
|
||||
|
||||
// write the right cell
|
||||
$right=str_replace("<br />","\n",$right);
|
||||
$this->MultiCell(0, 0, $right, 1, 'L', 0, 1, $this->GetX() ,$y_start, true, 0);
|
||||
|
||||
$page_end_2 = $this->getPage();
|
||||
$y_end_2 = $this->GetY();
|
||||
|
||||
// set the new row position by case
|
||||
if (max($page_end_1,$page_end_2) == $page_start) {
|
||||
$ynew = max($y_end_1, $y_end_2);
|
||||
} elseif ($page_end_1 == $page_end_2) {
|
||||
$ynew = max($y_end_1, $y_end_2);
|
||||
} elseif ($page_end_1 > $page_end_2) {
|
||||
$ynew = $y_end_1;
|
||||
} else {
|
||||
$ynew = $y_end_2;
|
||||
}
|
||||
|
||||
$this->setPage(max($page_end_1,$page_end_2));
|
||||
$this->SetXY($this->GetX(),$ynew);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function clear_annotate_temp($ref,$annotateid)
|
||||
{
|
||||
$jpg_path=get_annotate_file_path($ref,true,"jpg");
|
||||
$pdf_path=get_annotate_file_path($ref,true,"pdf");
|
||||
|
||||
if (file_exists($jpg_path)){unlink($jpg_path);}
|
||||
if (file_exists($pdf_path)){unlink($pdf_path);}
|
||||
}
|
||||
|
||||
function get_annotate_file_path($ref,$getfilepath,$extension)
|
||||
{
|
||||
global $username, $scramble_key, $baseurl, $annotateid;
|
||||
$annotateid=getval("annotateid",$annotateid); //or if sent through a request
|
||||
if($getfilepath)
|
||||
{
|
||||
$path = get_temp_dir(false,'') . "/annotate_" . $ref . "_" . md5($username . $annotateid . $scramble_key) . "." . $extension;
|
||||
}
|
||||
else
|
||||
{
|
||||
$path = generateURL($baseurl . "/pages/download.php",
|
||||
[
|
||||
"tempfile" => "annotate_" . (int)$ref . "_" . $annotateid . "." . $extension,
|
||||
"noattach" => "true"
|
||||
]);
|
||||
}
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
||||
function create_annotated_pdf($ref,$is_collection=false,$size="letter",$cleanup=false,$preview=false){
|
||||
# function to create annotated pdf of resources or collections.
|
||||
# This leaves the pdfs and jpg previews in filestore/annotate so that they can be grabbed later.
|
||||
# $cleanup will result in a slightly different path that is not cleaned up afterwards.
|
||||
|
||||
global $contact_sheet_preview_size,$annotate_pdf_output_only_annotated,$lang,$userfullname,$view_title_field,$baseurl,$imagemagick_path,$imagemagick_colorspace,$previewpage,$annotate_font,$access;
|
||||
$date= date("m-d-Y h:i a");
|
||||
|
||||
include_once __DIR__ . '/../../../include/image_processing.php';
|
||||
|
||||
$pdfstoragepath=get_annotate_file_path($ref,true,"pdf");
|
||||
$jpgstoragepath=get_annotate_file_path($ref,true,"jpg");
|
||||
$pdfhttppath=get_annotate_file_path($ref,false,"pdf");
|
||||
|
||||
if ($is_collection){
|
||||
$collectiondata=get_collection($ref);
|
||||
$resources=do_search("!collection$ref");
|
||||
}
|
||||
else {
|
||||
$resourcedata=get_resource_data($ref);
|
||||
$resources= do_search("!list$ref");
|
||||
}
|
||||
|
||||
// prune unnannotated resources if necessary
|
||||
if ($annotate_pdf_output_only_annotated){
|
||||
$resources_modified=array();
|
||||
$x=0;
|
||||
for ($n=0;$n<count($resources);$n++){
|
||||
unset($notes);
|
||||
if ($annotate_pdf_output_only_annotated && $resources[$n]['annotation_count']!=0){
|
||||
$resources_modified[$x]=$resources[$n];
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
$resources=$resources_modified;
|
||||
}
|
||||
$size = mb_strtolower($size);
|
||||
if (count($resources)==0){echo "nothing"; exit();}
|
||||
if ($size == "a4") {$width=210/25.4;$height=297/25.4;} // convert to inches
|
||||
if ($size == "a3") {$width=297/25.4;$height=420/25.4;}
|
||||
if ($size == "letter") {$width=8.5;$height=11;}
|
||||
if ($size == "legal") {$width=8.5;$height=14;}
|
||||
if ($size == "tabloid") {$width=11;$height=17;}
|
||||
#configuring the sheet:
|
||||
$pagesize[0]=$width;
|
||||
$pagesize[1]=$height;
|
||||
|
||||
$pdf = new MYPDF("portrait", "in", $size, true, 'UTF-8', false);
|
||||
$pdf->SetFont($annotate_font, '', 8);
|
||||
// set document information
|
||||
$pdf->SetCreator(PDF_CREATOR);
|
||||
$pdf->SetAuthor($userfullname);
|
||||
if ($is_collection)
|
||||
{
|
||||
$pdf->SetTitle(i18n_get_collection_name($collectiondata).' '.$date);
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf->SetTitle(i18n_get_translated($resourcedata['field'.$view_title_field]).' '.$date);
|
||||
}
|
||||
$pdf->SetSubject($lang['annotations']);
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
$pdf->setMargins(.5,.5,.5);
|
||||
$page=1;
|
||||
$totalpages=1;
|
||||
$m=1;
|
||||
do // Do the following for each pdf page
|
||||
{
|
||||
// Add a page for each resource
|
||||
for ($n=0;$n<count($resources);$n++)
|
||||
{
|
||||
$pdf->AddPage();
|
||||
$currentpdfpage=$pdf->getPage();
|
||||
$resourcedata= $resources[$n];
|
||||
$ref=$resources[$n]['ref'];
|
||||
$access=get_resource_access($resources[$n]['ref']); // feed get_resource_access the resource array rather than the ref, since access is included.
|
||||
$use_watermark=check_use_watermark();
|
||||
|
||||
$imgpath = get_resource_path($ref,true,"hpr",false,"jpg",-1,$page,$use_watermark);
|
||||
if (!file_exists($imgpath)){$imgpath=get_resource_path($ref,true,"lpr",false,"jpg",-1,$page,$use_watermark);}
|
||||
if (!file_exists($imgpath)){$imgpath=get_resource_path($ref,true,"scr",false,"jpg",-1,$page,$use_watermark);}
|
||||
if (!file_exists($imgpath)){$imgpath=get_resource_path($ref,true,"",false,"jpg",-1,$page,$use_watermark);}
|
||||
if (!file_exists($imgpath)){$imgpath=get_resource_path($ref,true,"pre",false,"jpg",-1,$page,$use_watermark);}
|
||||
if (!file_exists($imgpath)) {
|
||||
continue;
|
||||
}
|
||||
$imagesize=getimagesize($imgpath);
|
||||
|
||||
$whratio=$imagesize[0]/$imagesize[1];
|
||||
|
||||
if ($whratio < 1) {
|
||||
$imageheight = $height - 4; // vertical images can take up half the page
|
||||
$whratio = $imagesize[0] / $imagesize[1];
|
||||
$imagewidth = $imageheight * $whratio;
|
||||
}
|
||||
|
||||
if ($whratio >=1 || $imagewidth > $width+1) {
|
||||
$imagewidth = $width - 1; // horizontal images are scaled to width - 1 in
|
||||
$hwratio = $imagesize[1] / $imagesize[0];
|
||||
$imageheight = $imagewidth * $hwratio;
|
||||
}
|
||||
|
||||
$pdf->Text(.5,.5,i18n_get_translated($resourcedata['field'.$view_title_field]).' '.$date);
|
||||
$pdf->Image($imgpath,((($width-1)/2)-($imagewidth-1)/2),1,$imagewidth,$imageheight,"jpg",$baseurl. '/?r=' . $ref);
|
||||
|
||||
// set color for background
|
||||
$pdf->SetFillColor(255, 255, 200);
|
||||
|
||||
$style= array('width' => 0.01, 'cap' => 'butt', 'join' => 'round' ,'dash' => '0', 'color' => array(100,100,100));
|
||||
$style1 = array('width' => 0.04, 'cap' => 'butt', 'join' => 'round', 'dash' => '0', 'color' => array(255, 255, 0));
|
||||
$ypos=$imageheight+1.5;$pdf->SetY($ypos);
|
||||
unset($notes);
|
||||
if ($resources[$n]['annotation_count']!=0)
|
||||
{
|
||||
$notes=ps_query("SELECT a.ref,top_pos,left_pos,width,height,preview_width,preview_height,note,note_id,user,page, name `value`
|
||||
FROM annotate_notes a JOIN node n ON a.node = n.ref WHERE a.ref=? AND page=?",array("i",$ref,"i",$page));
|
||||
$notepages=1; // Normally notes will all fit on one page, but may not
|
||||
foreach ($notes as $note)
|
||||
{
|
||||
// If the notes took us to a new page, return to the image page before marking annotation
|
||||
if($notepages>1){$pdf->setPage($currentpdfpage);}
|
||||
|
||||
$ratio=$imagewidth/$note['preview_width'];
|
||||
$note_y=$note['top_pos']*$ratio;
|
||||
$note_x=$note['left_pos']*$ratio;
|
||||
$note_width=$note['width']*$ratio;
|
||||
$note_height=$note['height']*$ratio;
|
||||
$pdf->SetLineStyle($style1);
|
||||
$pdf->Rect(((($width-1)/2)-($imagewidth-1)/2)+$note_x,$note_y+1,$note_width,$note_height);
|
||||
$pdf->Rect(((($width-1)/2)-($imagewidth-1)/2)+$note_x,$note_y+1,.1,.1,'DF',$style1,array(255,255,0));
|
||||
$ypos=$pdf->GetY();
|
||||
$pdf->Text(((($width-1)/2)-($imagewidth-1)/2)+$note_x-.01,$note_y+.99,$m,false,false,true,0,0,'L');
|
||||
|
||||
$pdf->SetY($ypos);
|
||||
$note_user=get_user($note['user']);
|
||||
$pdf->SetLineStyle($style);
|
||||
$noteparts=explode(":",$note['value'],2);
|
||||
// If the notes went over the page, we went back to image for annotation, so we need to return to the page with the last row of the table before adding next row
|
||||
if($notepages>1){$pdf->setPage($currentpdfpage+($notepages-1));}
|
||||
|
||||
$pdf->MultiRow($m,trim($noteparts[1])." - ".$note_user['fullname']);
|
||||
// Check if this new table row has moved us to a new page, in which case we need to record this and go back to image page before the next annotation
|
||||
if(isset($notepos)){$lastnotepos=$notepos;}
|
||||
$notepos=$pdf->GetY();
|
||||
if(isset($lastnotepos) && $notepos<$lastnotepos){unset($lastnotepos);$notepages++;}
|
||||
$ypos=$ypos+.5;$m++;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check if there is another page?
|
||||
if (file_exists(get_resource_path($ref,true,"scr",false,"jpg",-1,$page+1,$use_watermark,""))) {unset($notepos);unset($lastnotepos);$totalpages++;}
|
||||
|
||||
$page++;
|
||||
}
|
||||
while
|
||||
($page<=$totalpages);
|
||||
|
||||
// reset pointer to the last page
|
||||
$pdf->lastPage();
|
||||
|
||||
#Make AJAX preview?:
|
||||
if ($preview && isset($imagemagick_path))
|
||||
{
|
||||
if (file_exists($jpgstoragepath)){unlink($jpgstoragepath);}
|
||||
if (file_exists($pdfstoragepath)){unlink($pdfstoragepath);}
|
||||
echo $pdf->GetPage(); // for paging
|
||||
$pdf->Output($pdfstoragepath,'F');
|
||||
# Set up
|
||||
putenv("MAGICK_HOME=" . $imagemagick_path);
|
||||
$ghostscript_fullpath = get_utility_path("ghostscript");
|
||||
run_command(
|
||||
"{$ghostscript_fullpath} -sDEVICE=jpeg -dFirstPage=previewpage -o -r100 -dLastPage=previewpage"
|
||||
. " -sOutputFile=jpgstoragepath pdfstoragepath",
|
||||
false,
|
||||
[
|
||||
'previewpage' => (int) $previewpage,
|
||||
'jpgstoragepath' => new CommandPlaceholderArg($jpgstoragepath, 'is_safe_basename'),
|
||||
'pdfstoragepath' => new CommandPlaceholderArg($pdfstoragepath, 'is_safe_basename'),
|
||||
]
|
||||
);
|
||||
|
||||
$convert_fullpath = get_utility_path("im-convert");
|
||||
if (!$convert_fullpath) {
|
||||
exit("Could not find ImageMagick 'convert' utility at location '$command'");
|
||||
}
|
||||
|
||||
run_command(
|
||||
"{$convert_fullpath} -resize contact_sheet_preview_size -quality 90 -colorspace imagemagick_colorspace"
|
||||
. " jpgstoragepath jpgstoragepath",
|
||||
false,
|
||||
[
|
||||
'contact_sheet_preview_size' => new CommandPlaceholderArg(
|
||||
$contact_sheet_preview_size,
|
||||
'is_valid_contact_sheet_preview_size'
|
||||
),
|
||||
'imagemagick_colorspace' => $imagemagick_colorspace,
|
||||
'jpgstoragepath' => new CommandPlaceholderArg($jpgstoragepath, 'is_safe_basename'),
|
||||
|
||||
]
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!$is_collection){
|
||||
$filename=$lang['annotations']."-".i18n_get_translated($resourcedata["field".$view_title_field]);
|
||||
}
|
||||
else {
|
||||
$filename=$lang['annotations']."-".i18n_get_collection_name($collectiondata);
|
||||
}
|
||||
|
||||
if ($cleanup){
|
||||
// cleanup
|
||||
if (file_exists($pdfstoragepath)){unlink($pdfstoragepath);}
|
||||
if (file_exists($jpgstoragepath)){unlink($jpgstoragepath);}
|
||||
$pdf->Output($filename.".pdf",'D');
|
||||
}
|
||||
else {
|
||||
// in this case it's not cleaned up automatically, but rather left in place for later use of the path.
|
||||
|
||||
$pdf->Output($pdfstoragepath,'F');
|
||||
echo $pdfhttppath;
|
||||
}
|
||||
}
|
29
plugins/annotate/languages/ar.php
Normal file
29
plugins/annotate/languages/ar.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='تعليقات';
|
||||
$lang["pdfwithnotes"]='تعليقات PDF';
|
||||
$lang["annotatepdfconfig"]='تعليقات PDF';
|
||||
$lang["annotatepdfintrotext"]='حدد حجم الصفحة لملف PDF الخاص بالتعليقات الخاصة بك.';
|
||||
$lang["error-saving"]='حدث خطأ أثناء حفظ تلك التعليقات.';
|
||||
$lang["error-deleting"]='حدث خطأ أثناء حذف تلك الملاحظة.';
|
||||
$lang["action-add_note"]='إضافة تعليقات';
|
||||
$lang["action-toggle-on"]='عرض الكل';
|
||||
$lang["action-toggle-off"]='إخفاء الكل';
|
||||
$lang["note-1"]='تعليق واحد';
|
||||
$lang["note-2"]='عدد التعليقات %number';
|
||||
$lang["annotate_configuration"]='تكوين التعليقات';
|
||||
$lang["extensions_to_exclude"]='الامتدادات المستبعدة <br/> (مفصولة بفواصل):';
|
||||
$lang["resource_types_to_exclude"]='أنواع الموارد المستبعدة (حدد للاستبعاد):';
|
||||
$lang["annotatedebug"]='تصحيح الأخطاء:';
|
||||
$lang["toggle"]='تبديل';
|
||||
$lang["annotate_public_view"]='هل تكون التعليقات مرئية علنًا عند مشاركة المجموعات؟';
|
||||
$lang["annotate_show_author"]='عرض مؤلف التعليق عند عرض المعاينات؟';
|
||||
$lang["annotate_metadatafield_error"]='مطلوب حقل بيانات وصفية لتخزين التعليقات';
|
||||
$lang["annotate_font"]='الخط الوظيفي:';
|
||||
$lang["annotate_pdf_output"]='خيار إخراج PDF (تجريبي)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='فقط ضمّن المصادر المشار إليها في الناتج النهائي لملف PDF';
|
||||
$lang["annotate_admin_edit_access"]='القدرة على تحرير تعليقات المستخدمين الآخرين';
|
||||
$lang["annotate_ref_not_supplied"]='المرجع غير مزود';
|
||||
$lang["plugin-annotate-title"]='التعليق';
|
||||
$lang["plugin-annotate-desc"]='يتيح إنشاء تعليقات توضيحية على الصور باستخدام jQuery';
|
27
plugins/annotate/languages/bn.php
Normal file
27
plugins/annotate/languages/bn.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='টীকা';
|
||||
$lang["pdfwithnotes"]='অ্যানোটেশন পিডিএফ';
|
||||
$lang["annotatepdfconfig"]='অ্যানোটেশন পিডিএফ';
|
||||
$lang["annotatepdfintrotext"]='আপনার অ্যানোটেশন পিডিএফ-এর জন্য পৃষ্ঠার আকার নির্বাচন করুন।';
|
||||
$lang["error-saving"]='ওই টীকা সংরক্ষণ করতে একটি ত্রুটি ঘটেছে।';
|
||||
$lang["error-deleting"]='ওই টীকা মুছে ফেলার সময় একটি ত্রুটি ঘটেছে।';
|
||||
$lang["action-add_note"]='অ্যানোটেশন যোগ করুন';
|
||||
$lang["action-toggle-on"]='সব দেখান';
|
||||
$lang["action-toggle-off"]='সব লুকান';
|
||||
$lang["note-1"]='১টি টীকা';
|
||||
$lang["note-2"]='%number অ্যানোটেশনসমূহ';
|
||||
$lang["annotate_configuration"]='কনফিগারেশন টীকা করুন';
|
||||
$lang["extensions_to_exclude"]='বর্জন করার জন্য এক্সটেনশনগুলি<br />(কমা দ্বারা পৃথক):';
|
||||
$lang["resource_types_to_exclude"]='বর্জন করার জন্য রিসোর্স প্রকার (বর্জন করতে টিক দিন):';
|
||||
$lang["annotatedebug"]='ডিবাগ:';
|
||||
$lang["toggle"]='টগল';
|
||||
$lang["annotate_public_view"]='টীকা কি সর্বসাধারণের জন্য দৃশ্যমান, যেমন সংগ্রহ শেয়ার করার সময়?';
|
||||
$lang["annotate_show_author"]='প্রিভিউ দেখার সময় মন্তব্যকারীর নাম প্রদর্শন করবেন?';
|
||||
$lang["annotate_metadatafield_error"]='অ্যানোটেশন সংরক্ষণের জন্য একটি মেটাডেটা ক্ষেত্র প্রয়োজন';
|
||||
$lang["annotate_font"]='ফন্ট:';
|
||||
$lang["annotate_pdf_output"]='পিডিএফ আউটপুট বিকল্প (পরীক্ষামূলক)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='শুধুমাত্র মন্তব্যযুক্ত রিসোর্সগুলি পিডিএফ আউটপুটে অন্তর্ভুক্ত করুন';
|
||||
$lang["annotate_admin_edit_access"]='অন্যান্য ব্যবহারকারীদের টীকা সম্পাদনা করার ক্ষমতা';
|
||||
$lang["annotate_ref_not_supplied"]='রেফারেন্স সরবরাহ করা হয়নি';
|
29
plugins/annotate/languages/ca.php
Normal file
29
plugins/annotate/languages/ca.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotacions';
|
||||
$lang["pdfwithnotes"]='Anotacions PDF';
|
||||
$lang["annotatepdfconfig"]='Anotacions PDF';
|
||||
$lang["annotatepdfintrotext"]='Seleccioneu la mida de pàgina per al vostre PDF d\'annotacions.';
|
||||
$lang["error-saving"]='S\'ha produït un error en desar aquesta anotació.';
|
||||
$lang["error-deleting"]='S\'ha produït un error en eliminar aquesta anotació.';
|
||||
$lang["action-add_note"]='Afegir anotació';
|
||||
$lang["action-toggle-on"]='Mostra-ho tot';
|
||||
$lang["action-toggle-off"]='Amaga-ho tot';
|
||||
$lang["note-1"]='1 anotació';
|
||||
$lang["note-2"]='%number anotacions';
|
||||
$lang["annotate_configuration"]='Configuració d\'annotació';
|
||||
$lang["extensions_to_exclude"]='Extensions a excloure<br />(separats per comes):';
|
||||
$lang["resource_types_to_exclude"]='Tipus de recursos a excloure (marca per excloure):';
|
||||
$lang["annotatedebug"]='Depuració:';
|
||||
$lang["toggle"]='Alternar';
|
||||
$lang["annotate_public_view"]='Són les anotacions visibles públicament, per exemple, quan es comparteixen col·leccions?';
|
||||
$lang["annotate_show_author"]='Mostrar l\'autor de l\'anotació en la visualització prèvia?';
|
||||
$lang["annotate_metadatafield_error"]='Es requereix un camp de metadades per emmagatzemar les anotacions';
|
||||
$lang["annotate_font"]='Tipus de lletra:';
|
||||
$lang["annotate_pdf_output"]='Opció de sortida PDF (experimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Només inclogui recursos anotats en la sortida PDF';
|
||||
$lang["annotate_admin_edit_access"]='Capacitat per editar les anotacions d\'altres usuaris';
|
||||
$lang["annotate_ref_not_supplied"]='Referència no proporcionada';
|
||||
$lang["plugin-annotate-title"]='Anotar';
|
||||
$lang["plugin-annotate-desc"]='Permet la creació d\'anotacions d\'imatges amb jquery';
|
29
plugins/annotate/languages/cs.php
Normal file
29
plugins/annotate/languages/cs.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotace';
|
||||
$lang["pdfwithnotes"]='Anotace PDF';
|
||||
$lang["annotatepdfconfig"]='PDF s anotacemi';
|
||||
$lang["annotatepdfintrotext"]='Vyberte velikost stránky pro váš PDF s anotacemi.';
|
||||
$lang["error-saving"]='Došlo k chybě při ukládání této anotace.';
|
||||
$lang["error-deleting"]='Došlo k chybě při mazání této anotace.';
|
||||
$lang["action-add_note"]='Přidat anotaci';
|
||||
$lang["action-toggle-on"]='Zobrazit vše';
|
||||
$lang["action-toggle-off"]='Skrýt vše';
|
||||
$lang["note-1"]='1 anotace';
|
||||
$lang["note-2"]='%number anotací';
|
||||
$lang["annotate_configuration"]='Konfigurace anotací';
|
||||
$lang["extensions_to_exclude"]='Rozšíření k vyloučení<br />(oddělená čárkami):';
|
||||
$lang["resource_types_to_exclude"]='Typy zdrojů k vyloučení (zaškrtněte pro vyloučení):';
|
||||
$lang["annotatedebug"]='Ladění:';
|
||||
$lang["toggle"]='Přepnout';
|
||||
$lang["annotate_public_view"]='Jsou anotace veřejně viditelné, např. při sdílení kolekcí?';
|
||||
$lang["annotate_show_author"]='Zobrazit autora anotace při prohlížení náhledů?';
|
||||
$lang["annotate_metadatafield_error"]='Je vyžadováno pole metadat pro uložení anotací';
|
||||
$lang["annotate_font"]='Písmo:';
|
||||
$lang["annotate_pdf_output"]='Možnost výstupu PDF (experimentální)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Zahrnout do výstupu PDF pouze anotované zdroje';
|
||||
$lang["annotate_admin_edit_access"]='Schopnost upravovat anotace ostatních uživatelů';
|
||||
$lang["annotate_ref_not_supplied"]='Reference není uveden';
|
||||
$lang["plugin-annotate-title"]='Anotovat';
|
||||
$lang["plugin-annotate-desc"]='Umožňuje vytváření anotací obrázků pomocí jquery';
|
27
plugins/annotate/languages/cy.php
Normal file
27
plugins/annotate/languages/cy.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Nodiadau';
|
||||
$lang["pdfwithnotes"]='Nodiadau PDF';
|
||||
$lang["annotatepdfconfig"]='Nodiadau PDF';
|
||||
$lang["annotatepdfintrotext"]='Dewiswch faint y dudalen ar gyfer eich PDF Nodiadau.';
|
||||
$lang["error-saving"]='Cafodd gwall wrth gadw\'r nodyn hwnnw.';
|
||||
$lang["error-deleting"]='Cafodd gwall ei wneud wrth ddileu\'r nodyn hwnnw.';
|
||||
$lang["action-add_note"]='Ychwanegu Nodyn';
|
||||
$lang["action-toggle-on"]='Dangos Pob';
|
||||
$lang["action-toggle-off"]='Cuddio Pob Unrhyw Beth';
|
||||
$lang["note-1"]='1 nodyn';
|
||||
$lang["note-2"]='%number nodiadau';
|
||||
$lang["annotate_configuration"]='Cynllunio Nodyn';
|
||||
$lang["extensions_to_exclude"]='Estyniadau i eithrio<br />(separwyd gan gomau):';
|
||||
$lang["resource_types_to_exclude"]='Mathau Adnoddau i\'w hepgor (ticiwch i\'w hepgor):';
|
||||
$lang["annotatedebug"]='Dadfygio';
|
||||
$lang["toggle"]='Toglo';
|
||||
$lang["annotate_public_view"]='A ydy nodiadau yn weladwy i\'r cyhoedd e.e. wrth rannu casgliadau?';
|
||||
$lang["annotate_show_author"]='Dangos awdur yr annotation pan fyddwch yn gweld rhagolwg?';
|
||||
$lang["annotate_metadatafield_error"]='Mae maes metadata yn ofynnol i storio\'r nodiadau';
|
||||
$lang["annotate_font"]='Ffont:';
|
||||
$lang["annotate_pdf_output"]='Opsiwn Allbwn PDF (arbrofol)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Dim ond cynnwys Adnoddau wedi\'u Hysbysu yn y Ffynhonnell PDF';
|
||||
$lang["annotate_admin_edit_access"]='Galluoedd i olygu nodiadau defnyddwyr eraill';
|
||||
$lang["annotate_ref_not_supplied"]='Cyfeirnod heb ei ddarparu';
|
29
plugins/annotate/languages/da.php
Normal file
29
plugins/annotate/languages/da.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Noter';
|
||||
$lang["pdfwithnotes"]='PDF-annoteringer';
|
||||
$lang["annotatepdfconfig"]='PDF-annoteringer';
|
||||
$lang["annotatepdfintrotext"]='Vælg sidestørrelsen til din Annotations PDF.';
|
||||
$lang["error-saving"]='Der opstod en fejl ved gemning af den annotation.';
|
||||
$lang["error-deleting"]='Der opstod en fejl ved sletning af den påtegning.';
|
||||
$lang["action-add_note"]='Tilføj annotering';
|
||||
$lang["action-toggle-on"]='Vis alle';
|
||||
$lang["action-toggle-off"]='Skjul alle';
|
||||
$lang["note-1"]='1 annotation';
|
||||
$lang["note-2"]='%number notater';
|
||||
$lang["annotate_configuration"]='Annotér konfiguration';
|
||||
$lang["extensions_to_exclude"]='Udelukkede udvidelser<br />(kommasepareret):';
|
||||
$lang["resource_types_to_exclude"]='Ressourcetyper der skal ekskluderes (marker for at ekskludere):';
|
||||
$lang["annotatedebug"]='Fejlfinding:';
|
||||
$lang["toggle"]='Skift til/fra (alternativt: Aktiver/deaktiver)';
|
||||
$lang["annotate_public_view"]='Er notater offentligt synlige f.eks. når man deler samlinger?';
|
||||
$lang["annotate_show_author"]='Vis forfatter af annotation når der vises forhåndsvisninger?';
|
||||
$lang["annotate_metadatafield_error"]='En metadatafelt er påkrævet for at gemme annotationerne';
|
||||
$lang["annotate_font"]='Skrifttype:';
|
||||
$lang["annotate_pdf_output"]='PDF-outputindstilling (eksperimentel)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Kun inkluder kommenterede ressourcer i PDF-output';
|
||||
$lang["annotate_admin_edit_access"]='Evne til at redigere andre brugeres noter';
|
||||
$lang["annotate_ref_not_supplied"]='Henvisning ikke angivet';
|
||||
$lang["plugin-annotate-title"]='Annoter';
|
||||
$lang["plugin-annotate-desc"]='Muliggør oprettelse af jquery-billedannoteringer';
|
37
plugins/annotate/languages/de.php
Normal file
37
plugins/annotate/languages/de.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
# German
|
||||
# Language File for the Annotate Plugin
|
||||
# -------
|
||||
#
|
||||
#
|
||||
$lang['annotations']="Anmerkungen";
|
||||
$lang['pdfwithnotes']="PDF mit Anmerkungen";
|
||||
$lang["annotatepdfconfig"]="PDF mit Anmerkungen";
|
||||
$lang["annotatepdfintrotext"]="Wählen Sie die Seitengröße für das PDF mit Anmerkungen.";
|
||||
|
||||
$lang["error-saving"]="Fehler beim Speichern dieser Anmerkung.";
|
||||
$lang["error-deleting"]="Fehler beim Löschen dieser Anmerkung.";
|
||||
|
||||
$lang["action-add_note"]="Anmerkung hinzufügen";
|
||||
$lang["action-toggle-on"]="Alle zeigen";
|
||||
$lang["action-toggle-off"]="Alle verstecken";
|
||||
$lang["note-1"]="1 Anmerkung";
|
||||
$lang["note-2"]="%number Anmerkungen"; # %number will be replaced, e.g. 3 notes
|
||||
|
||||
$lang["toggle"]="Umschalten";
|
||||
$lang["annotate_public_view"] = "Sind Anmerkungen öffentlich sichtbar wenn z.B. Kollektionen mit Anderen geteilt werden?";
|
||||
$lang["annotate_show_author"] = "Display annotation author when viewing previews?";
|
||||
|
||||
$lang["annotate_font"]="Schriftart:";
|
||||
|
||||
$lang["annotate_metadatafield_error"]='Ein Metadatenfeld ist erforderlich, um die Anmerkungen zu speichern';
|
||||
$lang["annotate_admin_edit_access"]='Fähigkeit, die Anmerkungen anderer Benutzer zu bearbeiten';
|
||||
$lang["annotate_ref_not_supplied"]='Referenz nicht angegeben';
|
||||
$lang["annotate_configuration"]='Konfiguration annotieren';
|
||||
$lang["extensions_to_exclude"]='Ausgeschlossene Erweiterungen<br />(durch Komma getrennt):';
|
||||
$lang["resource_types_to_exclude"]='Auszuschließende Ressourcentypen (anklicken, um auszuschließen):';
|
||||
$lang["annotatedebug"]='Fehlerbehebung:';
|
||||
$lang["annotate_pdf_output"]='PDF-Ausgabeoption (experimentell)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Nur annotierte Ressourcen in PDF-Ausgabe einschließen';
|
||||
$lang["plugin-annotate-title"]='Kommentieren';
|
||||
$lang["plugin-annotate-desc"]='Ermöglicht die Erstellung von jQuery-Bildanmerkungen';
|
29
plugins/annotate/languages/el.php
Normal file
29
plugins/annotate/languages/el.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Σχολιασμοί';
|
||||
$lang["pdfwithnotes"]='Σχολιασμός PDF';
|
||||
$lang["annotatepdfconfig"]='Σχολιασμός PDF';
|
||||
$lang["annotatepdfintrotext"]='Επιλέξτε το μέγεθος σελίδας για το PDF σημειώσεων σας.';
|
||||
$lang["error-saving"]='Παρουσιάστηκε σφάλμα κατά την αποθήκευση του σχολίου.';
|
||||
$lang["error-deleting"]='Παρουσιάστηκε σφάλμα κατά τη διαγραφή αυτής της σημείωσης.';
|
||||
$lang["action-add_note"]='Προσθήκη Σχολίου';
|
||||
$lang["action-toggle-on"]='Εμφάνιση Όλων';
|
||||
$lang["action-toggle-off"]='Απόκρυψη όλων';
|
||||
$lang["note-1"]='1 Παρατήρηση';
|
||||
$lang["note-2"]='%number σχολιασμοί';
|
||||
$lang["annotate_configuration"]='Διαμόρφωση Σχολιασμού';
|
||||
$lang["extensions_to_exclude"]='Επεκτάσεις για αποκλεισμό<br />(χωρισμένες με κόμμα):';
|
||||
$lang["resource_types_to_exclude"]='Τύποι πόρων για εξαίρεση (τσεκάρετε για εξαίρεση):';
|
||||
$lang["annotatedebug"]='Αποσφαλμάτωση:';
|
||||
$lang["toggle"]='Εναλλαγή (Enallagi)';
|
||||
$lang["annotate_public_view"]='Είναι οι σημειώσεις ορατές δημόσια, για παράδειγμα κατά την κοινοποίηση συλλογών;';
|
||||
$lang["annotate_show_author"]='Εμφάνιση συγγραφέα σχολίου κατά την προβολή προεπισκόπησης;';
|
||||
$lang["annotate_metadatafield_error"]='Απαιτείται ένα πεδίο μεταδεδομένων για την αποθήκευση των σχολίων';
|
||||
$lang["annotate_font"]='Γραμματοσειρά:';
|
||||
$lang["annotate_pdf_output"]='Επιλογή εξαγωγής σε PDF (πειραματικό)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Συμπεριλάβετε μόνο τους πόρους με σχολιασμό στην έξοδο PDF';
|
||||
$lang["annotate_admin_edit_access"]='Δυνατότητα επεξεργασίας σχολίων άλλων χρηστών';
|
||||
$lang["annotate_ref_not_supplied"]='Η αναφορά δεν παρέχεται';
|
||||
$lang["plugin-annotate-title"]='Σχολιάστε';
|
||||
$lang["plugin-annotate-desc"]='Επιτρέπει τη δημιουργία σχολίων εικόνας με χρήση jquery';
|
5
plugins/annotate/languages/en-US.php
Normal file
5
plugins/annotate/languages/en-US.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
# US English Language File for the Annotate Plugin
|
||||
#
|
||||
#
|
||||
$lang['resource_types_to_exclude']='Resource Types to exclude (check to exclude):';
|
34
plugins/annotate/languages/en.php
Normal file
34
plugins/annotate/languages/en.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
# English
|
||||
# Language File for the Annotate Plugin
|
||||
# -------
|
||||
#
|
||||
#
|
||||
$lang['annotations']="Annotations";
|
||||
$lang['pdfwithnotes']="Annotations PDF";
|
||||
$lang["annotatepdfconfig"]="Annotations PDF";
|
||||
$lang["annotatepdfintrotext"]="Select the page size for your Annotations PDF.";
|
||||
|
||||
$lang["error-saving"]="An error occurred saving that annotation.";
|
||||
$lang["error-deleting"]="An error occurred deleting that annotation.";
|
||||
|
||||
$lang["action-add_note"]="Add Annotation";
|
||||
$lang["action-toggle-on"]="Show All";
|
||||
$lang["action-toggle-off"]="Hide All";
|
||||
$lang["note-1"]="1 annotation";
|
||||
$lang["note-2"]="%number annotations"; # %number will be replaced, e.g. 3 notes
|
||||
|
||||
$lang["annotate_configuration"]="Annotate Configuration";
|
||||
$lang["extensions_to_exclude"]="Extensions to exclude<br />(comma separated):";
|
||||
$lang["resource_types_to_exclude"]="Resource Types to exclude (tick to exclude):";
|
||||
$lang["annotatedebug"]="Debug:";
|
||||
$lang["toggle"]="Toggle";
|
||||
$lang["annotate_public_view"] = "Are annotations publicly visible e.g. when sharing collections?";
|
||||
$lang["annotate_show_author"] = "Display annotation author when viewing previews?";
|
||||
$lang["annotate_metadatafield_error"] = "A metadata field is required to store the annotations";
|
||||
|
||||
$lang["annotate_font"]="Font:";
|
||||
$lang["annotate_pdf_output"]="PDF Output Option (experimental)";
|
||||
$lang["annotate_pdf_output_only_annotated"]="Only include Annotated Resources in PDF Output";
|
||||
$lang["annotate_admin_edit_access"]="Ability to edit other users annotations";
|
||||
$lang["annotate_ref_not_supplied"]="Reference not supplied";
|
29
plugins/annotate/languages/es-AR.php
Normal file
29
plugins/annotate/languages/es-AR.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotaciones';
|
||||
$lang["pdfwithnotes"]='Anotaciones PDF';
|
||||
$lang["annotatepdfconfig"]='Anotaciones PDF';
|
||||
$lang["annotatepdfintrotext"]='Seleccione el tamaño de página para su PDF de anotaciones.';
|
||||
$lang["error-saving"]='Ocurrió un error al guardar esa anotación.';
|
||||
$lang["error-deleting"]='Ocurrió un error al eliminar esa anotación.';
|
||||
$lang["action-add_note"]='Agregar anotación';
|
||||
$lang["action-toggle-on"]='Mostrar todo';
|
||||
$lang["action-toggle-off"]='Ocultar todo';
|
||||
$lang["note-1"]='1 anotación';
|
||||
$lang["note-2"]='%number de anotaciones';
|
||||
$lang["annotate_configuration"]='Configuración de Anotaciones';
|
||||
$lang["extensions_to_exclude"]='Extensiones a excluir<br />(separadas por comas):';
|
||||
$lang["resource_types_to_exclude"]='Tipos de recursos a excluir (marque para excluir):';
|
||||
$lang["annotatedebug"]='Depuración:';
|
||||
$lang["toggle"]='Alternar';
|
||||
$lang["annotate_public_view"]='¿Las anotaciones son visibles públicamente, por ejemplo, al compartir colecciones?';
|
||||
$lang["annotate_show_author"]='¿Mostrar el autor de la anotación al ver las vistas previas?';
|
||||
$lang["annotate_metadatafield_error"]='Se requiere un campo de metadatos para almacenar las anotaciones';
|
||||
$lang["annotate_font"]='Fuente:';
|
||||
$lang["annotate_pdf_output"]='Opción de salida PDF (experimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Solo incluir Recursos Anotados en la Salida PDF';
|
||||
$lang["annotate_admin_edit_access"]='Posibilidad de editar las anotaciones de otros usuarios';
|
||||
$lang["annotate_ref_not_supplied"]='Referencia no suministrada';
|
||||
$lang["plugin-annotate-title"]='Anotar';
|
||||
$lang["plugin-annotate-desc"]='Habilita la creación de anotaciones de imágenes con jquery';
|
29
plugins/annotate/languages/es.php
Normal file
29
plugins/annotate/languages/es.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotaciones';
|
||||
$lang["pdfwithnotes"]='Anotaciones PDF';
|
||||
$lang["annotatepdfconfig"]='Anotaciones PDF';
|
||||
$lang["annotatepdfintrotext"]='Seleccione el tamaño de página para su PDF de anotaciones.';
|
||||
$lang["error-saving"]='Ocurrió un error al guardar esa anotación.';
|
||||
$lang["error-deleting"]='Ocurrió un error al eliminar esa anotación.';
|
||||
$lang["action-add_note"]='Agregar anotación';
|
||||
$lang["action-toggle-on"]='Mostrar todo';
|
||||
$lang["action-toggle-off"]='Ocultar todo';
|
||||
$lang["note-1"]='1 anotación';
|
||||
$lang["note-2"]='%number de anotaciones';
|
||||
$lang["annotate_configuration"]='Configuración de Anotaciones';
|
||||
$lang["extensions_to_exclude"]='Extensiones a excluir<br />(separadas por comas):';
|
||||
$lang["resource_types_to_exclude"]='Tipos de recursos a excluir (marque para excluir):';
|
||||
$lang["annotatedebug"]='Depurar:';
|
||||
$lang["toggle"]='Alternar';
|
||||
$lang["annotate_public_view"]='¿Son visibles públicamente las anotaciones, por ejemplo, al compartir colecciones?';
|
||||
$lang["annotate_show_author"]='¿Mostrar el autor de la anotación al ver las vistas previas?';
|
||||
$lang["annotate_metadatafield_error"]='Se requiere un campo de metadatos para almacenar las anotaciones';
|
||||
$lang["annotate_font"]='Fuente:';
|
||||
$lang["annotate_pdf_output"]='Opción de salida PDF (experimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Solo incluir recursos anotados en la salida PDF';
|
||||
$lang["annotate_admin_edit_access"]='Capacidad para editar las anotaciones de otros usuarios';
|
||||
$lang["annotate_ref_not_supplied"]='Referencia no suministrada';
|
||||
$lang["plugin-annotate-title"]='Anotar';
|
||||
$lang["plugin-annotate-desc"]='Permite la creación de anotaciones de imágenes con jquery';
|
27
plugins/annotate/languages/fa.php
Normal file
27
plugins/annotate/languages/fa.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='حاشیهنویسیها';
|
||||
$lang["pdfwithnotes"]='حاشیهنویسی PDF';
|
||||
$lang["annotatepdfconfig"]='حاشیهنویسی PDF';
|
||||
$lang["annotatepdfintrotext"]='اندازه صفحه برای PDF حاشیهنویسی خود را انتخاب کنید.';
|
||||
$lang["error-saving"]='خطایی در ذخیرهسازی آن حاشیهنویسی رخ داد.';
|
||||
$lang["error-deleting"]='خطایی در حذف آن حاشیهنویسی رخ داد.';
|
||||
$lang["action-add_note"]='افزودن حاشیهنویسی';
|
||||
$lang["action-toggle-on"]='نمایش همه';
|
||||
$lang["action-toggle-off"]='پنهان کردن همه';
|
||||
$lang["note-1"]='۱ حاشیهنویسی';
|
||||
$lang["note-2"]='%number حاشیهنویسیها';
|
||||
$lang["annotate_configuration"]='پیکربندی حاشیهنویسی';
|
||||
$lang["extensions_to_exclude"]='پسوندهایی که باید حذف شوند<br />(با کاما جدا شده):';
|
||||
$lang["resource_types_to_exclude"]='انواع منابع برای حذف (برای حذف علامت بزنید):';
|
||||
$lang["annotatedebug"]='اشکالزدایی:';
|
||||
$lang["toggle"]='تغییر وضعیت';
|
||||
$lang["annotate_public_view"]='آیا حاشیهنویسیها به صورت عمومی قابل مشاهده هستند، مثلاً هنگام به اشتراکگذاری مجموعهها؟';
|
||||
$lang["annotate_show_author"]='نمایش نویسنده حاشیهنویسی هنگام مشاهده پیشنمایشها؟';
|
||||
$lang["annotate_metadatafield_error"]='یک فیلد متادیتا برای ذخیرهسازی حاشیهنویسیها لازم است';
|
||||
$lang["annotate_font"]='فونت:';
|
||||
$lang["annotate_pdf_output"]='گزینه خروجی PDF (آزمایشی)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='فقط منابع حاشیهنویسی شده را در خروجی PDF بگنجانید';
|
||||
$lang["annotate_admin_edit_access"]='توانایی ویرایش حاشیهنویسیهای کاربران دیگر';
|
||||
$lang["annotate_ref_not_supplied"]='مرجع ارائه نشده است';
|
29
plugins/annotate/languages/fi.php
Normal file
29
plugins/annotate/languages/fi.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Huomautukset';
|
||||
$lang["pdfwithnotes"]='Kommentit PDF-tiedostossa';
|
||||
$lang["annotatepdfconfig"]='Kommentit PDF-tiedostossa';
|
||||
$lang["annotatepdfintrotext"]='Valitse sivukoko Annotations PDF-tiedostollesi.';
|
||||
$lang["error-saving"]='Tapahtui virhe tallennettaessa tätä huomautusta.';
|
||||
$lang["error-deleting"]='Tapahtui virhe poistettaessa tätä huomautusta.';
|
||||
$lang["action-add_note"]='Lisää huomautus';
|
||||
$lang["action-toggle-on"]='Näytä kaikki';
|
||||
$lang["action-toggle-off"]='Piilota kaikki';
|
||||
$lang["note-1"]='1 huomautus';
|
||||
$lang["note-2"]='%number huomautusta';
|
||||
$lang["annotate_configuration"]='Annotointiasetukset';
|
||||
$lang["extensions_to_exclude"]='Poissuljettavat laajennukset<br />(pilkulla eroteltuna):';
|
||||
$lang["resource_types_to_exclude"]='Poissuljettavat resurssityypit (ruksaa poissuljettavat):';
|
||||
$lang["annotatedebug"]='Vianjäljitys:';
|
||||
$lang["toggle"]='Kääntökytkin';
|
||||
$lang["annotate_public_view"]='Ovatko annotaatiot julkisesti näkyvissä, esimerkiksi kun jaat kokoelmia?';
|
||||
$lang["annotate_show_author"]='Näytä huomautuksen tekijä esikatselua katsottaessa?';
|
||||
$lang["annotate_metadatafield_error"]='Metatietokenttä vaaditaan annotaatioiden tallentamiseen';
|
||||
$lang["annotate_font"]='Kirjasinlaji:';
|
||||
$lang["annotate_pdf_output"]='PDF-tulostusvaihtoehto (kokeellinen)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Vain sisällytä kommentoidut resurssit PDF-tulosteeseen';
|
||||
$lang["annotate_admin_edit_access"]='Kyky muokata muiden käyttäjien huomautuksia';
|
||||
$lang["annotate_ref_not_supplied"]='Viittaus puuttuu';
|
||||
$lang["plugin-annotate-title"]='Merkitse';
|
||||
$lang["plugin-annotate-desc"]='Mahdollistaa jquery-kuvamerkintöjen luomisen';
|
29
plugins/annotate/languages/fr.php
Normal file
29
plugins/annotate/languages/fr.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Annotations (Annotations)';
|
||||
$lang["pdfwithnotes"]='Annotations PDF';
|
||||
$lang["annotatepdfconfig"]='Annotations PDF';
|
||||
$lang["annotatepdfintrotext"]='Sélectionnez la taille de page pour votre PDF d\'annotations.';
|
||||
$lang["error-saving"]='Une erreur est survenue lors de l\'enregistrement de cette annotation.';
|
||||
$lang["error-deleting"]='Une erreur s\'est produite lors de la suppression de cette annotation.';
|
||||
$lang["action-add_note"]='Ajouter une annotation';
|
||||
$lang["action-toggle-on"]='Afficher tout';
|
||||
$lang["action-toggle-off"]='Masquer Tout';
|
||||
$lang["note-1"]='1 annotation';
|
||||
$lang["note-2"]='%nombre d\'annotations';
|
||||
$lang["annotate_configuration"]='Configurer les annotations';
|
||||
$lang["extensions_to_exclude"]='Extensions à exclure<br />(séparées par des virgules) :';
|
||||
$lang["resource_types_to_exclude"]='Types de ressources à exclure (cocher pour exclure) :';
|
||||
$lang["annotatedebug"]='Débogage:';
|
||||
$lang["toggle"]='Basculer';
|
||||
$lang["annotate_public_view"]='Les annotations sont-elles visibles publiquement, par exemple lors du partage de collections ?';
|
||||
$lang["annotate_metadatafield_error"]='Un champ de métadonnées est requis pour stocker les annotations';
|
||||
$lang["annotate_font"]='Police :';
|
||||
$lang["annotate_pdf_output"]='Option de sortie PDF (expérimentale)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Ne inclure que les ressources annotées dans la sortie PDF';
|
||||
$lang["annotate_admin_edit_access"]='Capacité de modifier les annotations d\'autres utilisateurs';
|
||||
$lang["annotate_ref_not_supplied"]='Référence non fournie';
|
||||
$lang["annotate_show_author"]='Afficher l\'auteur de l\'annotation lors de la visualisation des aperçus ?';
|
||||
$lang["plugin-annotate-title"]='Annoter';
|
||||
$lang["plugin-annotate-desc"]='Permet la création d\'annotations d\'images avec jQuery';
|
29
plugins/annotate/languages/hi.php
Normal file
29
plugins/annotate/languages/hi.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='टिप्पणियाँ';
|
||||
$lang["pdfwithnotes"]='एनोटेशन पीडीएफ';
|
||||
$lang["annotatepdfconfig"]='एनोटेशन पीडीएफ';
|
||||
$lang["annotatepdfintrotext"]='अपने एनोटेशन पीडीएफ के लिए पृष्ठ आकार चुनें।';
|
||||
$lang["error-saving"]='उस एनोटेशन को सहेजने में एक त्रुटि हुई।';
|
||||
$lang["error-deleting"]='उस एनोटेशन को हटाते समय एक त्रुटि हुई।';
|
||||
$lang["action-add_note"]='एनोटेशन जोड़ें';
|
||||
$lang["action-toggle-on"]='सभी दिखाएं';
|
||||
$lang["action-toggle-off"]='सभी छुपाएं';
|
||||
$lang["note-1"]='1 एनोटेशन';
|
||||
$lang["note-2"]='%number एनोटेशन';
|
||||
$lang["annotate_configuration"]='एनोटेशन कॉन्फ़िगरेशन';
|
||||
$lang["extensions_to_exclude"]='बहिष्कृत करने के लिए एक्सटेंशन<br />(अल्पविराम से अलग करें):';
|
||||
$lang["resource_types_to_exclude"]='बहिष्कृत करने के लिए संसाधन प्रकार (बहिष्कृत करने के लिए टिक करें):';
|
||||
$lang["annotatedebug"]='डीबग:';
|
||||
$lang["toggle"]='टॉगल';
|
||||
$lang["annotate_public_view"]='क्या एनोटेशन सार्वजनिक रूप से दिखाई देते हैं जैसे संग्रह साझा करते समय?';
|
||||
$lang["annotate_show_author"]='पूर्वावलोकन देखते समय एनोटेशन लेखक प्रदर्शित करें?';
|
||||
$lang["annotate_metadatafield_error"]='एनोटेशन संग्रहीत करने के लिए एक मेटाडेटा फ़ील्ड आवश्यक है';
|
||||
$lang["annotate_font"]='फ़ॉन्ट:';
|
||||
$lang["annotate_pdf_output"]='पीडीएफ आउटपुट विकल्प (प्रायोगिक)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='केवल एनोटेटेड संसाधनों को पीडीएफ आउटपुट में शामिल करें';
|
||||
$lang["annotate_admin_edit_access"]='अन्य उपयोगकर्ताओं की टिप्पणियों को संपादित करने की क्षमता';
|
||||
$lang["annotate_ref_not_supplied"]='संदर्भ प्रदान नहीं किया गया';
|
||||
$lang["plugin-annotate-title"]='टिप्पणी करें';
|
||||
$lang["plugin-annotate-desc"]='जेक्वेरी छवि एनोटेशन बनाने की अनुमति देता है';
|
29
plugins/annotate/languages/hr.php
Normal file
29
plugins/annotate/languages/hr.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Annotacije';
|
||||
$lang["pdfwithnotes"]='Annotacije PDF-a';
|
||||
$lang["annotatepdfconfig"]='Annotacije PDF-a';
|
||||
$lang["annotatepdfintrotext"]='Odaberite veličinu stranice za vaš PDF s bilješkama.';
|
||||
$lang["error-saving"]='Došlo je do pogreške prilikom spremanja te bilješke.';
|
||||
$lang["error-deleting"]='Došlo je do pogreške prilikom brisanja te bilješke.';
|
||||
$lang["action-add_note"]='Dodaj napomenu';
|
||||
$lang["action-toggle-on"]='Prikaži sve';
|
||||
$lang["action-toggle-off"]='Sakrij sve';
|
||||
$lang["note-1"]='1 napomena';
|
||||
$lang["note-2"]='%number napomena';
|
||||
$lang["annotate_configuration"]='Annotiraj konfiguraciju';
|
||||
$lang["extensions_to_exclude"]='Proširenja za isključivanje<br />(odvojeno zarezom):';
|
||||
$lang["resource_types_to_exclude"]='Vrste resursa za isključivanje (označite za isključivanje):';
|
||||
$lang["annotatedebug"]='Otklanjanje pogrešaka:';
|
||||
$lang["toggle"]='Prekidač';
|
||||
$lang["annotate_public_view"]='Jesu li napomene javno vidljive, npr. prilikom dijeljenja zbirki?';
|
||||
$lang["annotate_show_author"]='Prikazati autora bilješki prilikom pregledavanja pregleda?';
|
||||
$lang["annotate_metadatafield_error"]='Potrebno je polje metapodataka za pohranu napomena';
|
||||
$lang["annotate_font"]='Fonta:';
|
||||
$lang["annotate_pdf_output"]='PDF opcija izlaza (eksperimentalna)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Uključi samo anotirane resurse u PDF izlazu';
|
||||
$lang["annotate_admin_edit_access"]='Mogućnost uređivanja bilješki drugih korisnika';
|
||||
$lang["annotate_ref_not_supplied"]='Referenca nije dostavljena';
|
||||
$lang["plugin-annotate-title"]='Označi';
|
||||
$lang["plugin-annotate-desc"]='Omogućuje stvaranje jquery bilješki na slikama';
|
27
plugins/annotate/languages/hu.php
Normal file
27
plugins/annotate/languages/hu.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"] = 'Megjegyzések';
|
||||
$lang["pdfwithnotes"] = 'Megjegyzések PDF';
|
||||
$lang["annotatepdfconfig"] = 'Megjegyzések PDF';
|
||||
$lang["annotatepdfintrotext"] = 'Válaszd ki az oldal méretét az Annotations PDF-hez.';
|
||||
$lang["error-saving"] = 'Hiba történt az annotáció mentésekor.';
|
||||
$lang["error-deleting"] = 'Hiba történt az annotáció törlésekor.';
|
||||
$lang["action-add_note"] = 'Annotáció hozzáadása';
|
||||
$lang["action-toggle-on"] = 'Mutasd az összeset';
|
||||
$lang["action-toggle-off"] = 'Összes elrejtése';
|
||||
$lang["note-1"] = '1 megjegyzés';
|
||||
$lang["note-2"] = '%number megjegyzés';
|
||||
$lang["annotate_configuration"] = 'Annotálási beállítások';
|
||||
$lang["extensions_to_exclude"] = 'Kizárandó kiterjesztések<br />(vesszővel elválasztva):';
|
||||
$lang["resource_types_to_exclude"] = 'Erőforrás típusok kizárásához (jelölje be a kizáráshoz):';
|
||||
$lang["annotatedebug"] = 'Hibakeresés';
|
||||
$lang["toggle"] = 'Átkapcsolás';
|
||||
$lang["annotate_public_view"] = 'A megjegyzések nyilvánosan láthatók, például gyűjtemények megosztásakor?';
|
||||
$lang["annotate_show_author"] = 'Megjelenítse az annotáció szerzőjét az előnézetek megtekintésekor?';
|
||||
$lang["annotate_metadatafield_error"] = 'A metaadatmező szükséges az annotációk tárolásához';
|
||||
$lang["annotate_font"] = 'Betűtípus:';
|
||||
$lang["annotate_pdf_output"] = 'PDF Kimeneti Opció (kísérleti)';
|
||||
$lang["annotate_pdf_output_only_annotated"] = 'Csak az annotált erőforrásokat tartalmazza a PDF kimenetben';
|
||||
$lang["annotate_admin_edit_access"] = 'Más felhasználók megjegyzéseinek szerkesztésének képessége';
|
||||
$lang["annotate_ref_not_supplied"] = 'Hivatkozás nem került megadásra';
|
29
plugins/annotate/languages/id.php
Normal file
29
plugins/annotate/languages/id.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotasi';
|
||||
$lang["pdfwithnotes"]='Anotasi PDF';
|
||||
$lang["annotatepdfconfig"]='Anotasi PDF';
|
||||
$lang["annotatepdfintrotext"]='Pilih ukuran halaman untuk PDF Anotasi Anda.';
|
||||
$lang["error-saving"]='Terjadi kesalahan saat menyimpan catatan itu.';
|
||||
$lang["error-deleting"]='Terjadi kesalahan saat menghapus catatan itu.';
|
||||
$lang["action-add_note"]='Tambahkan Anotasi';
|
||||
$lang["action-toggle-on"]='Tampilkan Semua';
|
||||
$lang["action-toggle-off"]='Sembunyikan Semua';
|
||||
$lang["note-1"]='1 anotasi';
|
||||
$lang["note-2"]='%number anotasi';
|
||||
$lang["annotate_configuration"]='Konfigurasi Anotasi';
|
||||
$lang["extensions_to_exclude"]='Ekstensi yang dikecualikan<br/>(dipisahkan dengan koma):';
|
||||
$lang["resource_types_to_exclude"]='Jenis Sumber Daya yang Dikecualikan (centang untuk mengkecualikan):';
|
||||
$lang["annotatedebug"]='Mendeteksi kesalahan:';
|
||||
$lang["toggle"]='Beralih';
|
||||
$lang["annotate_public_view"]='Apakah anotasi terlihat secara publik misalnya saat berbagi koleksi?';
|
||||
$lang["annotate_show_author"]='Menampilkan penulis annotasi saat melihat pratinjau?';
|
||||
$lang["annotate_metadatafield_error"]='Diperlukan sebuah bidang metadata untuk menyimpan anotasi';
|
||||
$lang["annotate_font"]='Huruf:';
|
||||
$lang["annotate_pdf_output"]='Opsi Output PDF (eksperimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Hanya sertakan Sumber Daya yang Dianotasi dalam Output PDF';
|
||||
$lang["annotate_admin_edit_access"]='Kemampuan untuk mengedit catatan pengguna lain';
|
||||
$lang["annotate_ref_not_supplied"]='Referensi tidak disediakan';
|
||||
$lang["plugin-annotate-title"]='Memberi Anotasi';
|
||||
$lang["plugin-annotate-desc"]='Memungkinkan pembuatan anotasi gambar jquery';
|
29
plugins/annotate/languages/it.php
Normal file
29
plugins/annotate/languages/it.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Annotazioni';
|
||||
$lang["pdfwithnotes"]='Annotazioni PDF';
|
||||
$lang["annotatepdfconfig"]='Annotazioni PDF';
|
||||
$lang["annotatepdfintrotext"]='Seleziona la dimensione della pagina per il tuo PDF di annotazioni.';
|
||||
$lang["error-saving"]='Si è verificato un errore durante il salvataggio di quella annotazione.';
|
||||
$lang["error-deleting"]='Si è verificato un errore durante l\'eliminazione di quella annotazione.';
|
||||
$lang["action-add_note"]='Aggiungi annotazione';
|
||||
$lang["action-toggle-on"]='Mostra tutto';
|
||||
$lang["action-toggle-off"]='Nascondi tutto';
|
||||
$lang["note-1"]='1 annotazione';
|
||||
$lang["note-2"]='%number di annotazioni';
|
||||
$lang["annotate_configuration"]='Configurazione delle annotazioni';
|
||||
$lang["extensions_to_exclude"]='Estensioni da escludere<br />(separate da virgola):';
|
||||
$lang["resource_types_to_exclude"]='Tipi di risorse da escludere (seleziona per escludere):';
|
||||
$lang["annotatedebug"]='Debug: Debugging (Risoluzione dei problemi)';
|
||||
$lang["toggle"]='Attiva/Disattiva';
|
||||
$lang["annotate_public_view"]='Le annotazioni sono visibili pubblicamente, ad esempio quando si condividono collezioni?';
|
||||
$lang["annotate_show_author"]='Mostrare l\'autore dell\'annotazione durante la visualizzazione dell\'anteprima?';
|
||||
$lang["annotate_metadatafield_error"]='È necessario un campo di metadati per memorizzare le annotazioni';
|
||||
$lang["annotate_font"]='Carattere:';
|
||||
$lang["annotate_pdf_output"]='Opzione di output PDF (sperimentale)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Includi solo le risorse annotate nell\'output PDF';
|
||||
$lang["annotate_admin_edit_access"]='Possibilità di modificare le annotazioni degli altri utenti';
|
||||
$lang["annotate_ref_not_supplied"]='Riferimento non fornito';
|
||||
$lang["plugin-annotate-title"]='Annota';
|
||||
$lang["plugin-annotate-desc"]='Abilita la creazione di annotazioni di immagini con jquery';
|
29
plugins/annotate/languages/jp.php
Normal file
29
plugins/annotate/languages/jp.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='注釈';
|
||||
$lang["pdfwithnotes"]='PDF注釈';
|
||||
$lang["annotatepdfconfig"]='PDF注釈';
|
||||
$lang["annotatepdfintrotext"]='アノテーションPDFのページサイズを選択してください。';
|
||||
$lang["error-saving"]='その注釈を保存中にエラーが発生しました。';
|
||||
$lang["error-deleting"]='その注釈を削除中にエラーが発生しました。';
|
||||
$lang["action-add_note"]='注釈を追加する';
|
||||
$lang["action-toggle-on"]='すべて表示する';
|
||||
$lang["action-toggle-off"]='非表示にする';
|
||||
$lang["note-1"]='1 注釈 (ちゅうしゃく)';
|
||||
$lang["note-2"]='%number 個の注釈';
|
||||
$lang["annotate_configuration"]='注釈の設定';
|
||||
$lang["extensions_to_exclude"]='除外する拡張子(カンマで区切る):';
|
||||
$lang["resource_types_to_exclude"]='除外するリソースタイプ(チェックしてください):';
|
||||
$lang["annotatedebug"]='デバッグ:';
|
||||
$lang["toggle"]='トグル (Toguru)';
|
||||
$lang["annotate_public_view"]='注釈は、コレクションを共有する場合に公開されますか?';
|
||||
$lang["annotate_show_author"]='プレビューを表示する際に注釈の作成者を表示しますか?';
|
||||
$lang["annotate_metadatafield_error"]='注釈を保存するためには、メタデータフィールドが必要です。';
|
||||
$lang["annotate_font"]='フォント:';
|
||||
$lang["annotate_pdf_output"]='PDF出力オプション(実験的)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='PDF出力に注釈付きリソースのみを含める。';
|
||||
$lang["annotate_admin_edit_access"]='他のユーザーの注釈を編集する機能';
|
||||
$lang["annotate_ref_not_supplied"]='参照が提供されていません。';
|
||||
$lang["plugin-annotate-title"]='注釈を付ける';
|
||||
$lang["plugin-annotate-desc"]='jQuery画像注釈の作成を有効にします';
|
29
plugins/annotate/languages/ko.php
Normal file
29
plugins/annotate/languages/ko.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='주석';
|
||||
$lang["pdfwithnotes"]='주석 PDF';
|
||||
$lang["annotatepdfconfig"]='주석 PDF';
|
||||
$lang["annotatepdfintrotext"]='주석 PDF의 페이지 크기를 선택하세요.';
|
||||
$lang["error-saving"]='해당 주석을 저장하는 중 오류가 발생했습니다.';
|
||||
$lang["error-deleting"]='해당 주석을 삭제하는 중 오류가 발생했습니다.';
|
||||
$lang["action-add_note"]='주석 추가';
|
||||
$lang["action-toggle-on"]='모두 보기';
|
||||
$lang["action-toggle-off"]='모두 숨기기';
|
||||
$lang["note-1"]='1 주석';
|
||||
$lang["note-2"]='%number 주석';
|
||||
$lang["annotate_configuration"]='주석 구성';
|
||||
$lang["extensions_to_exclude"]='제외할 확장자<br />(쉼표로 구분):';
|
||||
$lang["resource_types_to_exclude"]='제외할 리소스 유형 (제외하려면 체크):';
|
||||
$lang["annotatedebug"]='디버그:';
|
||||
$lang["toggle"]='전환';
|
||||
$lang["annotate_public_view"]='주석이 공개적으로 보이나요? 예를 들어 컬렉션을 공유할 때?';
|
||||
$lang["annotate_show_author"]='미리보기에서 주석 작성자 표시?';
|
||||
$lang["annotate_metadatafield_error"]='주석을 저장하려면 메타데이터 필드가 필요합니다';
|
||||
$lang["annotate_font"]='글꼴:';
|
||||
$lang["annotate_pdf_output"]='PDF 출력 옵션 (실험적)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='PDF 출력에 주석이 달린 리소스만 포함';
|
||||
$lang["annotate_admin_edit_access"]='다른 사용자의 주석을 편집할 수 있는 기능';
|
||||
$lang["annotate_ref_not_supplied"]='참조가 제공되지 않음';
|
||||
$lang["plugin-annotate-title"]='주석 달기';
|
||||
$lang["plugin-annotate-desc"]='jQuery 이미지 주석 생성을 활성화합니다';
|
29
plugins/annotate/languages/nl.php
Normal file
29
plugins/annotate/languages/nl.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Aantekeningen';
|
||||
$lang["pdfwithnotes"]='Annotaties PDF';
|
||||
$lang["annotatepdfconfig"]='Annotaties PDF';
|
||||
$lang["annotatepdfintrotext"]='Selecteer de paginagrootte voor jouw annotaties PDF.';
|
||||
$lang["error-saving"]='Er is een fout opgetreden bij het opslaan van die annotatie.';
|
||||
$lang["error-deleting"]='Er is een fout opgetreden bij het verwijderen van die annotatie.';
|
||||
$lang["action-add_note"]='Toevoegen van annotatie';
|
||||
$lang["action-toggle-on"]='Toon alles';
|
||||
$lang["action-toggle-off"]='Verberg alles';
|
||||
$lang["note-1"]='1 annotatie';
|
||||
$lang["note-2"]='%number annotaties';
|
||||
$lang["annotate_configuration"]='Configuratie annoteren';
|
||||
$lang["extensions_to_exclude"]='Uitgesloten extensies<br />(gescheiden door komma\'s):';
|
||||
$lang["resource_types_to_exclude"]='Uit te sluiten bron types (vink aan om uit te sluiten):';
|
||||
$lang["annotatedebug"]='Foutopsporing:';
|
||||
$lang["toggle"]='Wisselen (alternatief: omschakelen)';
|
||||
$lang["annotate_public_view"]='Zijn annotaties openbaar zichtbaar bij het delen van collecties?';
|
||||
$lang["annotate_show_author"]='Weergeven van annotatie-auteur bij het bekijken van voorbeelden?';
|
||||
$lang["annotate_metadatafield_error"]='Een metadata veld is vereist om de annotaties op te slaan';
|
||||
$lang["annotate_font"]='Lettertype:';
|
||||
$lang["annotate_pdf_output"]='PDF Uitvoeroptie (experimenteel)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Alleen geannoteerde bronnen opnemen in PDF-uitvoer';
|
||||
$lang["annotate_admin_edit_access"]='Mogelijkheid om annotaties van andere gebruikers te bewerken';
|
||||
$lang["annotate_ref_not_supplied"]='Referentie niet opgegeven';
|
||||
$lang["plugin-annotate-title"]='Annoteren';
|
||||
$lang["plugin-annotate-desc"]='Maakt het mogelijk om jquery-beeldannotaties te maken';
|
29
plugins/annotate/languages/no.php
Normal file
29
plugins/annotate/languages/no.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Annotasjoner';
|
||||
$lang["pdfwithnotes"]='Annotasjoner PDF';
|
||||
$lang["annotatepdfconfig"]='Annotasjoner PDF';
|
||||
$lang["annotatepdfintrotext"]='Velg sidestørrelse for din Annotations PDF.';
|
||||
$lang["error-saving"]='Det oppstod en feil ved lagring av den kommentaren.';
|
||||
$lang["error-deleting"]='Det oppstod en feil ved sletting av denne kommentaren.';
|
||||
$lang["action-add_note"]='Legg til annotasjon';
|
||||
$lang["action-toggle-on"]='Vis alle';
|
||||
$lang["action-toggle-off"]='Skjul alle';
|
||||
$lang["note-1"]='1 annotasjon';
|
||||
$lang["note-2"]='%number merknader';
|
||||
$lang["annotate_configuration"]='Merk Configuration';
|
||||
$lang["extensions_to_exclude"]='Utvidelser som skal ekskluderes<br />(kommaseparert):';
|
||||
$lang["resource_types_to_exclude"]='Ressurstyper som skal ekskluderes (kryss av for å ekskludere):';
|
||||
$lang["annotatedebug"]='Feilsøking:';
|
||||
$lang["toggle"]='Veksle';
|
||||
$lang["annotate_public_view"]='Er merknader offentlig synlige, f.eks. når man deler samlinger?';
|
||||
$lang["annotate_show_author"]='Vise annotasjonsforfatter når du ser forhåndsvisninger?';
|
||||
$lang["annotate_metadatafield_error"]='En metadatafelt er påkrevd for å lagre annotasjoner';
|
||||
$lang["annotate_font"]='Skrifttype:';
|
||||
$lang["annotate_pdf_output"]='PDF-utdataalternativ (eksperimentelt)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Bare inkluder merkede ressurser i PDF-utdata';
|
||||
$lang["annotate_admin_edit_access"]='Evne til å redigere andre brukeres merknader';
|
||||
$lang["annotate_ref_not_supplied"]='Referanse ikke oppgitt';
|
||||
$lang["plugin-annotate-title"]='Annoter';
|
||||
$lang["plugin-annotate-desc"]='Aktiverer opprettelse av jquery-bildeanmerkninger';
|
27
plugins/annotate/languages/pa.php
Normal file
27
plugins/annotate/languages/pa.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='ਟਿੱਪਣੀਆਂ';
|
||||
$lang["pdfwithnotes"]='ਐਨੋਟੇਸ਼ਨ ਪੀਡੀਐਫ਼';
|
||||
$lang["annotatepdfconfig"]='ਐਨੋਟੇਸ਼ਨ ਪੀਡੀਐਫ਼';
|
||||
$lang["annotatepdfintrotext"]='ਆਪਣੇ ਟਿੱਪਣੀਆਂ PDF ਲਈ ਪੰਨਾ ਆਕਾਰ ਚੁਣੋ।';
|
||||
$lang["error-saving"]='ਉਸ ਟਿੱਪਣੀ ਨੂੰ ਸੁਰੱਖਿਅਤ ਕਰਨ ਦੌਰਾਨ ਇੱਕ ਗਲਤੀ ਹੋਈ।';
|
||||
$lang["error-deleting"]='ਉਸ ਟਿੱਪਣੀ ਨੂੰ ਮਿਟਾਉਣ ਦੌਰਾਨ ਇੱਕ ਗਲਤੀ ਹੋਈ।';
|
||||
$lang["action-add_note"]='ਐਨੋਟੇਸ਼ਨ ਸ਼ਾਮਲ ਕਰੋ';
|
||||
$lang["action-toggle-on"]='ਸਭ ਦਿਖਾਓ';
|
||||
$lang["action-toggle-off"]='ਸਭ ਲੁਕਾਓ';
|
||||
$lang["note-1"]='1 ਟਿੱਪਣੀ';
|
||||
$lang["note-2"]='%number ਟਿੱਪਣੀਆਂ';
|
||||
$lang["annotate_configuration"]='ਕੰਫਿਗਰੇਸ਼ਨ ਨੂੰ ਟਿੱਪਣੀ ਕਰੋ';
|
||||
$lang["extensions_to_exclude"]='ਬਾਹਰ ਰੱਖਣ ਲਈ ਐਕਸਟੈਂਸ਼ਨ<br />(ਕਾਮਾ ਨਾਲ ਵੱਖਰੇ ਕੀਤੇ):';
|
||||
$lang["resource_types_to_exclude"]='ਬਾਹਰ ਰੱਖਣ ਲਈ ਸਰੋਤ ਕਿਸਮਾਂ (ਬਾਹਰ ਰੱਖਣ ਲਈ ਟਿਕ ਕਰੋ):';
|
||||
$lang["annotatedebug"]='ਡਿਬੱਗ:';
|
||||
$lang["toggle"]='ਟੌਗਲ';
|
||||
$lang["annotate_public_view"]='ਕੀ ਟਿੱਪਣੀਆਂ ਜਨਤਕ ਤੌਰ \'ਤੇ ਦਿਖਾਈ ਦੇ ਰਹੀਆਂ ਹਨ ਜਿਵੇਂ ਕਿ ਕਲੇਕਸ਼ਨ ਸਾਂਝੇ ਕਰਨ ਵੇਲੇ?';
|
||||
$lang["annotate_show_author"]='ਪ੍ਰੀਵਿਊਜ਼ ਦੇਖਣ ਸਮੇਂ ਟਿੱਪਣੀ ਲੇਖਕ ਨੂੰ ਦਿਖਾਉਣਾ?';
|
||||
$lang["annotate_metadatafield_error"]='ਇੱਕ ਮੈਟਾਡੇਟਾ ਫੀਲਡ ਟਿੱਪਣੀਆਂ ਸਟੋਰ ਕਰਨ ਲਈ ਲੋੜੀਂਦਾ ਹੈ।';
|
||||
$lang["annotate_font"]='ਫੋਂਟ:';
|
||||
$lang["annotate_pdf_output"]='ਪੀਡੀਐਫ ਆਉਟਪੁੱਟ ਵਿਕਲਪ (ਪ੍ਰਯੋਗਾਤਮਕ)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='ਕੇਵਲ ਟਿੱਪਣੀ ਕੀਤੇ ਗਏ ਸਰੋਤਾਂ ਨੂੰ PDF ਨਿਕਾਸ ਵਿੱਚ ਸ਼ਾਮਲ ਕਰੋ';
|
||||
$lang["annotate_admin_edit_access"]='ਹੋਰ ਉਪਭੋਗਤਾਵਾਂ ਦੇ ਟਿੱਪਣੀਆਂ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰਨ ਦੀ ਸਮਰੱਥਾ';
|
||||
$lang["annotate_ref_not_supplied"]='ਹਵਾਲਾ ਪ੍ਰਦਾਨ ਨਹੀਂ ਕੀਤਾ ਗਿਆ';
|
29
plugins/annotate/languages/pl.php
Normal file
29
plugins/annotate/languages/pl.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Adnotacje';
|
||||
$lang["pdfwithnotes"]='Adnotacje PDF';
|
||||
$lang["annotatepdfconfig"]='Adnotacje PDF';
|
||||
$lang["annotatepdfintrotext"]='Wybierz rozmiar strony dla swojego pliku PDF z adnotacjami.';
|
||||
$lang["error-saving"]='Wystąpił błąd podczas zapisywania tej adnotacji.';
|
||||
$lang["error-deleting"]='Wystąpił błąd podczas usuwania tej adnotacji.';
|
||||
$lang["action-add_note"]='Dodaj adnotację';
|
||||
$lang["action-toggle-on"]='Pokaż wszystko';
|
||||
$lang["action-toggle-off"]='Ukryj wszystko';
|
||||
$lang["note-1"]='1 adnotacja';
|
||||
$lang["note-2"]='%number adnotacji';
|
||||
$lang["annotate_configuration"]='Skonfiguruj adnotacje';
|
||||
$lang["extensions_to_exclude"]='Rozszerzenia do wykluczenia<br />(oddzielone przecinkami):';
|
||||
$lang["resource_types_to_exclude"]='Typy zasobów do wykluczenia (zaznacz, aby wykluczyć):';
|
||||
$lang["annotatedebug"]='Debugowanie:';
|
||||
$lang["toggle"]='Przełącznik';
|
||||
$lang["annotate_public_view"]='Czy adnotacje są publicznie widoczne, np. podczas udostępniania kolekcji?';
|
||||
$lang["annotate_show_author"]='Wyświetlić autora adnotacji podczas przeglądania podglądów?';
|
||||
$lang["annotate_metadatafield_error"]='Wymagane jest pole metadanych do przechowywania adnotacji';
|
||||
$lang["annotate_font"]='Czcionka:';
|
||||
$lang["annotate_pdf_output"]='Opcja wyjścia PDF (eksperymentalna)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Tylko uwzględnij zasoby z adnotacjami w wyniku PDF';
|
||||
$lang["annotate_admin_edit_access"]='Możliwość edycji adnotacji innych użytkowników';
|
||||
$lang["annotate_ref_not_supplied"]='Odwołanie nie zostało dostarczone';
|
||||
$lang["plugin-annotate-title"]='Adnotuj';
|
||||
$lang["plugin-annotate-desc"]='Umożliwia tworzenie adnotacji obrazów za pomocą jquery';
|
29
plugins/annotate/languages/pt-BR.php
Normal file
29
plugins/annotate/languages/pt-BR.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotações';
|
||||
$lang["pdfwithnotes"]='Anotações em PDF';
|
||||
$lang["annotatepdfconfig"]='Anotações em PDF';
|
||||
$lang["annotatepdfintrotext"]='Selecione o tamanho da página para o seu PDF de Anotações';
|
||||
$lang["error-saving"]='Ocorreu um erro ao salvar essa anotação.';
|
||||
$lang["error-deleting"]='Ocorreu um erro ao excluir essa anotação.';
|
||||
$lang["action-add_note"]='Adicionar Anotação';
|
||||
$lang["action-toggle-on"]='Mostrar Todos';
|
||||
$lang["action-toggle-off"]='Ocultar tudo';
|
||||
$lang["note-1"]='1 anotação';
|
||||
$lang["note-2"]='%number de anotações';
|
||||
$lang["annotate_configuration"]='Configuração de Anotação';
|
||||
$lang["extensions_to_exclude"]='Extensões para excluir<br />(separadas por vírgula):';
|
||||
$lang["resource_types_to_exclude"]='Tipos de Recursos para excluir (marque para excluir):';
|
||||
$lang["annotatedebug"]='Depurar:';
|
||||
$lang["toggle"]='Alternar';
|
||||
$lang["annotate_public_view"]='As anotações são visíveis publicamente, por exemplo, ao compartilhar coleções?';
|
||||
$lang["annotate_show_author"]='Exibir o autor da anotação ao visualizar prévias?';
|
||||
$lang["annotate_metadatafield_error"]='Um campo de metadados é necessário para armazenar as anotações';
|
||||
$lang["annotate_font"]='Fonte:';
|
||||
$lang["annotate_pdf_output"]='Opção de Saída em PDF (experimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Incluir somente recursos anotados na saída em PDF';
|
||||
$lang["annotate_admin_edit_access"]='Capacidade de editar as anotações de outros usuários';
|
||||
$lang["annotate_ref_not_supplied"]='Referência não fornecida';
|
||||
$lang["plugin-annotate-title"]='Anotar';
|
||||
$lang["plugin-annotate-desc"]='Permite a criação de anotações de imagem com jquery';
|
29
plugins/annotate/languages/pt.php
Normal file
29
plugins/annotate/languages/pt.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotações';
|
||||
$lang["pdfwithnotes"]='Anotações em PDF';
|
||||
$lang["annotatepdfconfig"]='Anotações em PDF';
|
||||
$lang["annotatepdfintrotext"]='Selecione o tamanho da página para o seu PDF de Anotações';
|
||||
$lang["error-saving"]='Ocorreu um erro ao salvar essa anotação.';
|
||||
$lang["error-deleting"]='Ocorreu um erro ao excluir essa anotação.';
|
||||
$lang["action-add_note"]='Adicionar Anotação';
|
||||
$lang["action-toggle-on"]='Mostrar Todos';
|
||||
$lang["action-toggle-off"]='Ocultar tudo';
|
||||
$lang["note-1"]='1 anotação';
|
||||
$lang["note-2"]='%number de anotações';
|
||||
$lang["annotate_configuration"]='Configuração de Anotação';
|
||||
$lang["extensions_to_exclude"]='Extensões a excluir<br />(separadas por vírgulas):';
|
||||
$lang["resource_types_to_exclude"]='Tipos de Recursos para excluir (marque para excluir):';
|
||||
$lang["annotatedebug"]='Depurar:';
|
||||
$lang["toggle"]='Alternar';
|
||||
$lang["annotate_public_view"]='As anotações são visíveis publicamente, por exemplo, ao compartilhar coleções?';
|
||||
$lang["annotate_show_author"]='Exibir o autor da anotação ao visualizar prévias?';
|
||||
$lang["annotate_metadatafield_error"]='Um campo de metadados é necessário para armazenar as anotações';
|
||||
$lang["annotate_font"]='Fonte:';
|
||||
$lang["annotate_pdf_output"]='Opção de Saída em PDF (experimental)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Apenas incluir recursos anotados na saída em PDF';
|
||||
$lang["annotate_admin_edit_access"]='Capacidade de editar as anotações de outros usuários';
|
||||
$lang["annotate_ref_not_supplied"]='Referência não fornecida';
|
||||
$lang["plugin-annotate-title"]='Anotar';
|
||||
$lang["plugin-annotate-desc"]='Permite a criação de anotações de imagem com jquery';
|
29
plugins/annotate/languages/ro.php
Normal file
29
plugins/annotate/languages/ro.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Anotări';
|
||||
$lang["pdfwithnotes"]='Adnotări PDF';
|
||||
$lang["annotatepdfconfig"]='Adnotări PDF';
|
||||
$lang["annotatepdfintrotext"]='Selectați dimensiunea paginii pentru fișierul PDF cu adnotările dvs.';
|
||||
$lang["error-saving"]='A apărut o eroare la salvarea acelei adnotări.';
|
||||
$lang["error-deleting"]='A apărut o eroare la ștergerea acelei adnotări.';
|
||||
$lang["action-add_note"]='Adăugați adnotare';
|
||||
$lang["action-toggle-on"]='Afișează tot';
|
||||
$lang["action-toggle-off"]='Ascunde tot';
|
||||
$lang["note-1"]='1 adnotare';
|
||||
$lang["note-2"]='%number de adnotări';
|
||||
$lang["annotate_configuration"]='Configurare adnotare';
|
||||
$lang["extensions_to_exclude"]='Extensii de exclus<br />(separate prin virgulă):';
|
||||
$lang["resource_types_to_exclude"]='Tipuri de resurse de exclus (bifați pentru a exclude):';
|
||||
$lang["annotatedebug"]='Depanare:';
|
||||
$lang["toggle"]='Comutare';
|
||||
$lang["annotate_public_view"]='Sunt vizibile public adnotările, de exemplu atunci când se partajează colecții?';
|
||||
$lang["annotate_show_author"]='Afișați autorul adnotării la vizualizarea previzualizărilor?';
|
||||
$lang["annotate_metadatafield_error"]='Este necesar un câmp de metadate pentru a stoca adnotările';
|
||||
$lang["annotate_font"]='Font: Caractere tipografice:';
|
||||
$lang["annotate_pdf_output"]='Opțiune de ieșire PDF (experimentală)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Include doar Resursele Anotate în Ieșirea PDF';
|
||||
$lang["annotate_admin_edit_access"]='Posibilitatea de a edita adnotările altor utilizatori';
|
||||
$lang["annotate_ref_not_supplied"]='Referința nu a fost furnizată';
|
||||
$lang["plugin-annotate-title"]='Adnotează';
|
||||
$lang["plugin-annotate-desc"]='Permite crearea de adnotări de imagini jquery';
|
37
plugins/annotate/languages/ru.php
Normal file
37
plugins/annotate/languages/ru.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
# Russian
|
||||
# Language File for the Annotate Plugin
|
||||
# -------
|
||||
#
|
||||
#
|
||||
$lang['annotations']="Аннотации";
|
||||
$lang['pdfwithnotes']="PDF с аннотациями";
|
||||
$lang["annotatepdfconfig"]="PDF с аннотациями";
|
||||
$lang["annotatepdfintrotext"]="Выбрать размер бумаги для PDF с аннотациями.";
|
||||
|
||||
$lang["error-saving"]="Ошибка при записи аннотации.";
|
||||
$lang["error-deleting"]="Ошибка при удалении аннотации.";
|
||||
|
||||
$lang["action-add_note"]="Добавить аннотацию";
|
||||
$lang["action-toggle-on"]="Показать все";
|
||||
$lang["action-toggle-off"]="Спрятать все";
|
||||
$lang["note-1"]="1 аннотация";
|
||||
$lang["note-2"]="%number аннотаций"; # %number will be replaced, e.g. 3 notes
|
||||
|
||||
$lang["annotate_configuration"]="Настройки аннотаций";
|
||||
$lang["extensions_to_exclude"]="Исключить разрешения<br />(разделяя запятыми):";
|
||||
$lang["resource_types_to_exclude"]="Исключить типы объектов (отметить):";
|
||||
$lang["annotatedebug"]="Debug:";
|
||||
$lang["toggle"]="Вкл/Выкл";
|
||||
$lang["annotate_public_view"] = "Публичны ли аннотации (например, когда делятся коллекциями)?";
|
||||
$lang["annotate_show_author"] = "Показывать автора аннотации?";
|
||||
|
||||
$lang["annotate_font"]="Шрифт:";
|
||||
$lang["annotate_pdf_output"]="Вывод в PDF (экспериментальная опция)";
|
||||
$lang["annotate_pdf_output_only_annotated"]="Включать в PDF только аннотированные объекты";
|
||||
|
||||
$lang["annotate_metadatafield_error"]='Для хранения аннотаций необходимо заполнить поле метаданных';
|
||||
$lang["annotate_admin_edit_access"]='Возможность редактировать аннотации других пользователей';
|
||||
$lang["annotate_ref_not_supplied"]='Ссылка не предоставлена';
|
||||
$lang["plugin-annotate-title"]='Аннотировать';
|
||||
$lang["plugin-annotate-desc"]='Включает создание аннотаций изображений с помощью jquery';
|
29
plugins/annotate/languages/sk.php
Normal file
29
plugins/annotate/languages/sk.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Poznámky';
|
||||
$lang["pdfwithnotes"]='Poznámky PDF';
|
||||
$lang["annotatepdfconfig"]='Poznámky PDF';
|
||||
$lang["annotatepdfintrotext"]='Vyberte veľkosť stránky pre váš PDF s anotáciami.';
|
||||
$lang["error-saving"]='Došlo je do napake pri shranjevanju te opombe.';
|
||||
$lang["error-deleting"]='Vyskytla sa chyba pri mazaní tejto poznámky.';
|
||||
$lang["action-add_note"]='Pridať poznámku';
|
||||
$lang["action-toggle-on"]='Zobraziť všetko';
|
||||
$lang["action-toggle-off"]='Skryť všetko';
|
||||
$lang["note-1"]='1 poznámka';
|
||||
$lang["note-2"]='%number poznámkových záznamov';
|
||||
$lang["annotate_configuration"]='Konfigurácia poznámok';
|
||||
$lang["extensions_to_exclude"]='Rozšírenia na vylúčenie<br />(oddelené čiarkou):';
|
||||
$lang["resource_types_to_exclude"]='Typy zdrojov na vylúčenie (zaškrtnite pre vylúčenie):';
|
||||
$lang["annotatedebug"]='Ladi:';
|
||||
$lang["toggle"]='Prepínať';
|
||||
$lang["annotate_public_view"]='Sú anotácie verejne viditeľné napríklad pri zdieľaní kolekcií?';
|
||||
$lang["annotate_show_author"]='Zobraziť autora poznámky pri prezeraní náhľadov?';
|
||||
$lang["annotate_metadatafield_error"]='Je potrebno polje metapodatkov za shranjevanje opomb';
|
||||
$lang["annotate_font"]='Písmo:';
|
||||
$lang["annotate_pdf_output"]='Možnost izvoza v PDF (eksperimentalno)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Zahrnúť do PDF výstupu iba anotované zdroje';
|
||||
$lang["annotate_admin_edit_access"]='Možnost urejanja opomb drugih uporabnikov';
|
||||
$lang["annotate_ref_not_supplied"]='Referencia nezadaná';
|
||||
$lang["plugin-annotate-title"]='Označi';
|
||||
$lang["plugin-annotate-desc"]='Omogoča ustvarjanje opomb slik z uporabo jQuery';
|
39
plugins/annotate/languages/sv.php
Normal file
39
plugins/annotate/languages/sv.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
# Swedish
|
||||
# Language File for the Annotate Plugin
|
||||
# Updated by Henrik Frizén 20131024 for svn r4998
|
||||
# -------
|
||||
#
|
||||
#
|
||||
$lang['annotations']="Noteringar";
|
||||
$lang['pdfwithnotes']="Pdf med noteringar";
|
||||
$lang["annotatepdfconfig"]="Pdf med noteringar";
|
||||
$lang["annotatepdfintrotext"]="Välj önskad arkstorlek för pdf-filen med noteringar.";
|
||||
|
||||
$lang["error-saving"]="Ett fel uppstod när noteringen sparades.";
|
||||
$lang["error-deleting"]="Ett fel uppstod när noteringen togs bort.";
|
||||
|
||||
$lang["action-add_note"]="Lägg till notering";
|
||||
$lang["action-toggle-on"]="Visa alla";
|
||||
$lang["action-toggle-off"]="Dölj alla";
|
||||
|
||||
$lang["note-1"]="1 notering";
|
||||
$lang["note-2"]="%number noteringar"; # %number will be replaced, e.g. 3 notes
|
||||
|
||||
$lang["annotate_configuration"]="Notera – inställningar";
|
||||
$lang["extensions_to_exclude"]="Filnamnsändelser att exkludera<br />(kommaseparerade):";
|
||||
$lang["resource_types_to_exclude"]="Materialtyper att exkludera (markera dem som ska exkluderas):";
|
||||
$lang["annotatedebug"]="Felsökningsläge:";
|
||||
$lang["toggle"]="Växla";
|
||||
$lang["annotate_public_view"] = "Visa noteringar offentligt för delade samlingar:";
|
||||
$lang["annotate_show_author"] = "Visa vem som gjort noteringarna, vid visning av förhandsgranskningar:";
|
||||
|
||||
$lang["annotate_font"]="Typsnitt:";
|
||||
$lang["annotate_pdf_output"]="Möjlighet att spara pdf med noteringar (experimentell):";
|
||||
$lang["annotate_pdf_output_only_annotated"]="Inkludera endast material med noteringar, i sparad pdf:";
|
||||
|
||||
$lang["annotate_metadatafield_error"]='En metadatafält krävs för att lagra anteckningarna';
|
||||
$lang["annotate_admin_edit_access"]='Möjlighet att redigera andra användares anteckningar';
|
||||
$lang["annotate_ref_not_supplied"]='Referens ej tillhandahållen';
|
||||
$lang["plugin-annotate-title"]='Kommentera';
|
||||
$lang["plugin-annotate-desc"]='Möjliggör skapande av jquery-bildanteckningar';
|
27
plugins/annotate/languages/sw.php
Normal file
27
plugins/annotate/languages/sw.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Maelezo ya ziada';
|
||||
$lang["pdfwithnotes"]='Maelezo PDF';
|
||||
$lang["annotatepdfconfig"]='Maelezo PDF';
|
||||
$lang["annotatepdfintrotext"]='Chagua ukubwa wa ukurasa kwa PDF yako ya Maelezo.';
|
||||
$lang["error-saving"]='Hitilafu ilitokea wakati wa kuhifadhi maelezo hayo.';
|
||||
$lang["error-deleting"]='Hitilafu ilitokea wakati wa kufuta maelezo hayo.';
|
||||
$lang["action-add_note"]='Ongeza Maelezo';
|
||||
$lang["action-toggle-on"]='Onyesha Yote';
|
||||
$lang["action-toggle-off"]='Ficha Zote';
|
||||
$lang["note-1"]='1 maelezo ya ziada';
|
||||
$lang["note-2"]='%number maelezo ya ziada';
|
||||
$lang["annotate_configuration"]='Sanidi Maelezo ya Picha';
|
||||
$lang["extensions_to_exclude"]='Viendelezi vya kuondoa<br />(vimetenganishwa kwa koma):';
|
||||
$lang["resource_types_to_exclude"]='Aina za Rasilimali za kuondoa (weka tiki ili kuondoa):';
|
||||
$lang["annotatedebug"]='Uchunguzi:';
|
||||
$lang["toggle"]='Badilisha';
|
||||
$lang["annotate_public_view"]='Je, maelezo yanaonekana hadharani kwa mfano wakati wa kushiriki makusanyo?';
|
||||
$lang["annotate_show_author"]='Onyesha mwandishi wa maelezo unapokagua hakikisho?';
|
||||
$lang["annotate_metadatafield_error"]='Uwanja wa metadata unahitajika kuhifadhi maelezo ya ziada';
|
||||
$lang["annotate_font"]='Aina ya herufi:';
|
||||
$lang["annotate_pdf_output"]='Chaguo la Matokeo ya PDF (majaribio)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Jumuisha tu Rasilimali Zilizowekwa Maelezo katika Matokeo ya PDF';
|
||||
$lang["annotate_admin_edit_access"]='Uwezo wa kuhariri maelezo ya watumiaji wengine';
|
||||
$lang["annotate_ref_not_supplied"]='Marejeleo hayajatolewa';
|
27
plugins/annotate/languages/th.php
Normal file
27
plugins/annotate/languages/th.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='คำอธิบาย';
|
||||
$lang["pdfwithnotes"]='คำอธิบาย PDF';
|
||||
$lang["annotatepdfconfig"]='คำอธิบาย PDF';
|
||||
$lang["annotatepdfintrotext"]='เลือกขนาดหน้าสำหรับ PDF คำอธิบายของคุณ';
|
||||
$lang["error-saving"]='เกิดข้อผิดพลาดในการบันทึกคำอธิบายประกอบนั้น';
|
||||
$lang["error-deleting"]='เกิดข้อผิดพลาดในการลบหมายเหตุนี้';
|
||||
$lang["action-add_note"]='เพิ่มคำอธิบาย';
|
||||
$lang["action-toggle-on"]='แสดงทั้งหมด';
|
||||
$lang["action-toggle-off"]='ซ่อนทั้งหมด';
|
||||
$lang["note-1"]='1 คำอธิบาย';
|
||||
$lang["note-2"]='%number คำอธิบาย';
|
||||
$lang["annotate_configuration"]='การกำหนดค่าการบันทึกหมายเหตุ';
|
||||
$lang["extensions_to_exclude"]='การขยายเพื่อยกเว้น<br />(คั่นด้วยเครื่องหมายจุลภาค):';
|
||||
$lang["resource_types_to_exclude"]='ประเภททรัพยากรที่ต้องการยกเว้น (ติ๊กเพื่อยกเว้น):';
|
||||
$lang["annotatedebug"]='การดีบัก';
|
||||
$lang["toggle"]='สลับ';
|
||||
$lang["annotate_public_view"]='การบันทึกหมายเหตุสามารถมองเห็นได้สาธารณะหรือไม่ เช่น เมื่อแชร์คอลเลกชัน?';
|
||||
$lang["annotate_show_author"]='แสดงผู้เขียนคำอธิบายเมื่อดูตัวอย่างหรือไม่?';
|
||||
$lang["annotate_metadatafield_error"]='ต้องมีฟิลด์เมตาดาต้าเพื่อเก็บบันทึกความคิดเห็น';
|
||||
$lang["annotate_font"]='ฟอนต์:';
|
||||
$lang["annotate_pdf_output"]='ตัวเลือกการส่งออก PDF (ทดลอง)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='รวมเฉพาะทรัพยากรที่มีการบันทึกในผลลัพธ์ PDF';
|
||||
$lang["annotate_admin_edit_access"]='ความสามารถในการแก้ไขคำอธิบายของผู้ใช้อื่น';
|
||||
$lang["annotate_ref_not_supplied"]='การอ้างอิงไม่ได้ถูกจัดเตรียม';
|
29
plugins/annotate/languages/tr.php
Normal file
29
plugins/annotate/languages/tr.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Açıklamalar';
|
||||
$lang["pdfwithnotes"]='Açıklamalar PDF';
|
||||
$lang["annotatepdfconfig"]='Açıklamalar PDF';
|
||||
$lang["annotatepdfintrotext"]='Ek Açıklamalar PDF\'iniz için sayfa boyutunu seçin.';
|
||||
$lang["error-saving"]='Bu açıklamayı kaydederken bir hata oluştu.';
|
||||
$lang["error-deleting"]='Bu açıklamayı silerken bir hata oluştu.';
|
||||
$lang["action-add_note"]='Açıklama Ekle';
|
||||
$lang["action-toggle-on"]='Hepsini Göster';
|
||||
$lang["action-toggle-off"]='Hepsini Gizle';
|
||||
$lang["note-1"]='1 açıklama';
|
||||
$lang["note-2"]='%number açıklamalar';
|
||||
$lang["annotate_configuration"]='Yorum Yapılandırması';
|
||||
$lang["extensions_to_exclude"]='Hariç tutulacak uzantılar<br />(virgülle ayrılmış):';
|
||||
$lang["resource_types_to_exclude"]='Hariç tutulacak Kaynak Türleri (hariç tutmak için işaretleyin):';
|
||||
$lang["annotatedebug"]='Hata Ayıklama:';
|
||||
$lang["toggle"]='Değiştir';
|
||||
$lang["annotate_public_view"]='Açıklamalar, örneğin koleksiyonları paylaşırken, herkese açık olarak görülebilir mi?';
|
||||
$lang["annotate_show_author"]='Önizlemeleri görüntülerken açıklama yazarını göster?';
|
||||
$lang["annotate_metadatafield_error"]='Ek açıklamaları depolamak için bir meta veri alanı gereklidir';
|
||||
$lang["annotate_font"]='Yazı tipi:';
|
||||
$lang["annotate_pdf_output"]='PDF Çıktı Seçeneği (deneysel)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Yalnızca Açıklamalı Kaynakları PDF Çıktısına Dahil Et';
|
||||
$lang["annotate_admin_edit_access"]='Diğer kullanıcıların açıklamalarını düzenleme yeteneği';
|
||||
$lang["annotate_ref_not_supplied"]='Referans sağlanmadı';
|
||||
$lang["plugin-annotate-title"]='Açıklama Ekle';
|
||||
$lang["plugin-annotate-desc"]='Jquery görüntü açıklamalarının oluşturulmasını sağlar';
|
27
plugins/annotate/languages/uk.php
Normal file
27
plugins/annotate/languages/uk.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='Анотації';
|
||||
$lang["pdfwithnotes"]='Анотації PDF';
|
||||
$lang["annotatepdfconfig"]='Анотації PDF';
|
||||
$lang["annotatepdfintrotext"]='Виберіть розмір сторінки для вашого PDF з анотаціями.';
|
||||
$lang["error-saving"]='Сталася помилка під час збереження цієї анотації.';
|
||||
$lang["error-deleting"]='Сталася помилка при видаленні цієї анотації.';
|
||||
$lang["action-add_note"]='Додати анотацію';
|
||||
$lang["action-toggle-on"]='Показати все';
|
||||
$lang["action-toggle-off"]='Приховати все';
|
||||
$lang["note-1"]='1 анотація';
|
||||
$lang["note-2"]='%number анотацій';
|
||||
$lang["annotate_configuration"]='Конфігурація анотацій';
|
||||
$lang["extensions_to_exclude"]='Розширення для виключення<br />(через кому):';
|
||||
$lang["resource_types_to_exclude"]='Типи ресурсів для виключення (позначте для виключення):';
|
||||
$lang["annotatedebug"]='Налагодження:';
|
||||
$lang["toggle"]='Перемкнути';
|
||||
$lang["annotate_public_view"]='Чи є анотації загальнодоступними, наприклад, при спільному використанні колекцій?';
|
||||
$lang["annotate_show_author"]='Відображати автора анотації під час перегляду попереднього перегляду?';
|
||||
$lang["annotate_metadatafield_error"]='Потрібне поле метаданих для збереження анотацій';
|
||||
$lang["annotate_font"]='Шрифт:';
|
||||
$lang["annotate_pdf_output"]='Опція виведення PDF (експериментальна)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='Включати лише анотовані ресурси у PDF вихід';
|
||||
$lang["annotate_admin_edit_access"]='Можливість редагувати анотації інших користувачів';
|
||||
$lang["annotate_ref_not_supplied"]='Посилання не надано';
|
27
plugins/annotate/languages/ur.php
Normal file
27
plugins/annotate/languages/ur.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='تشریحات';
|
||||
$lang["pdfwithnotes"]='تشریحات پی ڈی ایف';
|
||||
$lang["annotatepdfconfig"]='تشریحات پی ڈی ایف';
|
||||
$lang["annotatepdfintrotext"]='اپنے تشریحات پی ڈی ایف کے لئے صفحہ کا سائز منتخب کریں۔';
|
||||
$lang["error-saving"]='اس تشریح کو محفوظ کرتے وقت ایک خرابی پیش آئی۔';
|
||||
$lang["error-deleting"]='اس تشریح کو حذف کرتے وقت ایک خرابی پیش آئی۔';
|
||||
$lang["action-add_note"]='تشریح شامل کریں';
|
||||
$lang["action-toggle-on"]='سب دکھائیں';
|
||||
$lang["action-toggle-off"]='سب چھپائیں';
|
||||
$lang["note-1"]='1 تشریح';
|
||||
$lang["note-2"]='%number تشریحات';
|
||||
$lang["annotate_configuration"]='تشریح کی تشکیل';
|
||||
$lang["extensions_to_exclude"]='شامل نہ کرنے کے لیے ایکسٹینشنز<br />(کاما سے جدا):';
|
||||
$lang["resource_types_to_exclude"]='شامل نہ کرنے کے لیے وسائل کی اقسام (شامل نہ کرنے کے لیے نشان لگائیں):';
|
||||
$lang["annotatedebug"]='ڈیبگ:';
|
||||
$lang["toggle"]='تبدیل کریں';
|
||||
$lang["annotate_public_view"]='کیا تشریحات عوامی طور پر نظر آتی ہیں مثلاً جب مجموعے شیئر کیے جاتے ہیں؟';
|
||||
$lang["annotate_show_author"]='پیش نظارہ دیکھتے وقت تشریح کے مصنف کو دکھائیں؟';
|
||||
$lang["annotate_metadatafield_error"]='تشریحات کو ذخیرہ کرنے کے لیے ایک میٹا ڈیٹا فیلڈ درکار ہے۔';
|
||||
$lang["annotate_font"]='فونٹ:';
|
||||
$lang["annotate_pdf_output"]='پی ڈی ایف آؤٹ پٹ آپشن (تجرباتی)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='پی ڈی ایف آؤٹ پٹ میں صرف تشریح شدہ وسائل شامل کریں';
|
||||
$lang["annotate_admin_edit_access"]='دیگر صارفین کے تشریحات میں ترمیم کرنے کی صلاحیت';
|
||||
$lang["annotate_ref_not_supplied"]='حوالہ فراہم نہیں کیا گیا';
|
27
plugins/annotate/languages/vi.php
Normal file
27
plugins/annotate/languages/vi.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"] = 'Chú thích';
|
||||
$lang["pdfwithnotes"] = 'Chú thích PDF';
|
||||
$lang["annotatepdfconfig"] = 'Chú thích PDF';
|
||||
$lang["annotatepdfintrotext"] = 'Chọn kích thước trang cho PDF Chú thích của bạn.';
|
||||
$lang["error-saving"] = 'Đã xảy ra lỗi khi lưu chú thích đó.';
|
||||
$lang["error-deleting"] = 'Đã xảy ra lỗi khi xóa chú thích đó.';
|
||||
$lang["action-add_note"] = 'Thêm chú thích';
|
||||
$lang["action-toggle-on"] = 'Hiển thị Tất cả';
|
||||
$lang["action-toggle-off"] = 'Ẩn Tất Cả';
|
||||
$lang["note-1"] = '1 chú thích';
|
||||
$lang["note-2"] = '%number chú thích';
|
||||
$lang["annotate_configuration"] = 'Cấu hình Chú thích';
|
||||
$lang["extensions_to_exclude"] = 'Các phần mở rộng để loại trừ<br />(cách nhau bằng dấu phẩy):';
|
||||
$lang["resource_types_to_exclude"] = 'Các loại tài nguyên để loại trừ (đánh dấu để loại trừ):';
|
||||
$lang["annotatedebug"] = 'Gỡ lỗi';
|
||||
$lang["toggle"] = 'Chuyển đổi';
|
||||
$lang["annotate_public_view"] = 'Các chú thích có hiển thị công khai không, ví dụ như khi chia sẻ các bộ sưu tập?';
|
||||
$lang["annotate_show_author"] = 'Hiển thị tác giả chú thích khi xem bản xem trước?';
|
||||
$lang["annotate_metadatafield_error"] = 'Một trường siêu dữ liệu là cần thiết để lưu trữ các chú thích';
|
||||
$lang["annotate_font"] = 'Phông chữ:';
|
||||
$lang["annotate_pdf_output"] = 'Tùy chọn xuất PDF (thí nghiệm)';
|
||||
$lang["annotate_pdf_output_only_annotated"] = 'Chỉ bao gồm Tài nguyên Được Chú thích trong Đầu ra PDF';
|
||||
$lang["annotate_admin_edit_access"] = 'Khả năng chỉnh sửa chú thích của người dùng khác';
|
||||
$lang["annotate_ref_not_supplied"] = 'Không cung cấp tham chiếu';
|
31
plugins/annotate/languages/zh-CN.php
Normal file
31
plugins/annotate/languages/zh-CN.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
$lang["annotations"]='注释';
|
||||
$lang["pdfwithnotes"]='PDF注释';
|
||||
$lang["annotatepdfconfig"]='PDF注释';
|
||||
$lang["annotatepdfintrotext"]='请选择您的注释 PDF 的页面大小。';
|
||||
$lang["error-saving"]='发生保存该注释的错误。';
|
||||
$lang["error-deleting"]='发生删除该注释的错误。';
|
||||
$lang["action-add_note"]='添加注释';
|
||||
$lang["action-toggle-on"]='显示全部';
|
||||
$lang["action-toggle-off"]='隐藏全部';
|
||||
$lang["note-1"]='1 注释';
|
||||
$lang["note-2"]='%number 注释';
|
||||
$lang["annotate_configuration"]='注释配置';
|
||||
$lang["extensions_to_exclude"]='需要翻译的字符串: Extensions to exclude<br />(comma separated):
|
||||
|
||||
要排除的扩展名(逗号分隔):';
|
||||
$lang["resource_types_to_exclude"]='要排除的资源类型(勾选以排除):';
|
||||
$lang["annotatedebug"]='调试:';
|
||||
$lang["toggle"]='切换 (Qiēhuàn)';
|
||||
$lang["annotate_public_view"]='注释是否公开可见,例如在共享集合时?S';
|
||||
$lang["annotate_show_author"]='在预览时显示注释作者?';
|
||||
$lang["annotate_metadatafield_error"]='需要一个元数据字段来存储注释。';
|
||||
$lang["annotate_font"]='字体:';
|
||||
$lang["annotate_pdf_output"]='PDF 输出选项(实验性)';
|
||||
$lang["annotate_pdf_output_only_annotated"]='仅在 PDF 输出中包含已注释的资源。';
|
||||
$lang["annotate_admin_edit_access"]='编辑其他用户的注释的能力';
|
||||
$lang["annotate_ref_not_supplied"]='未提供参考。';
|
||||
$lang["plugin-annotate-title"]='注释';
|
||||
$lang["plugin-annotate-desc"]='启用创建jquery图像注释';
|
236
plugins/annotate/lib/jquery/css/annotation.css
Normal file
236
plugins/annotate/lib/jquery/css/annotation.css
Normal file
@@ -0,0 +1,236 @@
|
||||
|
||||
.image-annotate-canvas {
|
||||
border: solid 1px #ccc;
|
||||
background-position: left top;
|
||||
background-repeat: no-repeat;
|
||||
display: block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
overflow:hidden;
|
||||
background-size: contain;
|
||||
}
|
||||
.image-annotate-view {
|
||||
display: none;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
.image-annotate-area {
|
||||
border: 2px solid #000000;
|
||||
position: absolute;
|
||||
}
|
||||
.image-annotate-area div {
|
||||
border: 1px solid #FFFFFF;
|
||||
display: block;
|
||||
}
|
||||
.image-annotate-area-hover div {
|
||||
border-color: yellow !important;
|
||||
width:auto;
|
||||
}
|
||||
.image-annotate-area-editable {
|
||||
cursor: pointer;
|
||||
}
|
||||
.image-annotate-area-editable-hover div {
|
||||
border-color: #00AD00 !important;
|
||||
}
|
||||
.image-annotate-note {
|
||||
background: #E7FFE7 none repeat scroll 0 0;
|
||||
border: solid 1px #397F39;
|
||||
color: #000;
|
||||
display: none;
|
||||
font-family: Verdana, Sans-Serif;
|
||||
font-size: 10px;
|
||||
min-width:50px;max-width: 200px;
|
||||
padding: 3px 7px;
|
||||
position: absolute;opacity:0.95;
|
||||
filter:alpha(opacity=95);
|
||||
overflow:hidden;
|
||||
border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
-moz-box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
}
|
||||
.image-annotate-note .actions {
|
||||
display: block;
|
||||
font-size: 80%;
|
||||
}
|
||||
.image-annotate-edit {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#image-annotate-edit-form {
|
||||
height: 82px;
|
||||
padding: 7px;
|
||||
position: absolute;
|
||||
width: 252px;
|
||||
border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
-moz-box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
box-shadow: 4px 5px 5px rgba(0, 0, 0, .5);
|
||||
}
|
||||
|
||||
#image-annotate-edit-form form {
|
||||
clear: right;
|
||||
margin: 0 !important;
|
||||
padding: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
#image-annotate-edit-form .box {
|
||||
margin: 0;
|
||||
}
|
||||
#image-annotate-edit-form input.form-text, #image-annotate-edit-form #edit-comment-wrapper textarea {
|
||||
width: 90%;
|
||||
}
|
||||
#image-annotate-edit-form textarea {
|
||||
height: 50px;
|
||||
font-family: Verdana, Sans-Serif;
|
||||
font-size: 10px;
|
||||
width: 248px;
|
||||
}
|
||||
#image-annotate-edit-form fieldset {
|
||||
background: transparent none repeat scroll 0 0;
|
||||
}
|
||||
#image-annotate-edit-form .form-item {
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
#image-annotate-edit-form .form-button, #image-annotate-edit-form .form-submit {
|
||||
margin: 0;
|
||||
}
|
||||
#image-annotate-edit-form a{
|
||||
background-color: #fff;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 3px 3px;
|
||||
border: solid 1px #ccc;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
float: left;
|
||||
font-family: Verdana, Sans-Serif;
|
||||
font-size: 10px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
padding: 2px 2px 2px 24px;
|
||||
margin: 3px 6px 3px 0;
|
||||
width: 50px;
|
||||
}
|
||||
#image-annotate-edit-form textarea {
|
||||
margin: 3px 6px 3px 0;
|
||||
resize:none;border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
#image-annotate-edit-form a:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
.image-annotate-edit-area {
|
||||
border: 2px solid yellow;
|
||||
cursor: move;
|
||||
display: block;
|
||||
height: 20px;
|
||||
left: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
width: 60px;
|
||||
}
|
||||
.image-annotate-edit-area .ui-resizable-handle {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.image-annotate-edit-ok {
|
||||
background-image: url(../images/accept.png); border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
-moz-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
}
|
||||
.image-annotate-edit-delete {
|
||||
background-image: url(../images/delete.png); border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
-moz-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
}
|
||||
.image-annotate-edit-close {
|
||||
background-image: url(../images/cross.png); border-radius:5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
-moz-box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
box-shadow: .5px 1px 1px rgba(0, 0, 0, .5);
|
||||
}
|
||||
.ui-resizable {
|
||||
position: relative;
|
||||
}
|
||||
.ui-resizable-handle {
|
||||
position: absolute;
|
||||
font-size: 0.1px;
|
||||
z-index: 99999;
|
||||
display: block;
|
||||
}
|
||||
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable- autohide .ui-resizable-handle {
|
||||
display: block;
|
||||
}
|
||||
.ui-resizable-n {
|
||||
cursor: n-resize;
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
top: -5px;
|
||||
left: 0px;
|
||||
}
|
||||
.ui-resizable-s {
|
||||
cursor: s-resize;
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
bottom: -5px;
|
||||
left: 0px;
|
||||
}
|
||||
.ui-resizable-e {
|
||||
cursor: e-resize;
|
||||
width: 7px;
|
||||
right: -5px;
|
||||
top: 0px;
|
||||
height: 100%;
|
||||
}
|
||||
.ui-resizable-w {
|
||||
cursor: w-resize;
|
||||
width: 7px;
|
||||
left: -5px;
|
||||
top: 0px;
|
||||
height: 100%;
|
||||
}
|
||||
.ui-resizable-se {
|
||||
cursor: se-resize;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
right: 1px;
|
||||
bottom: 1px;
|
||||
}
|
||||
.ui-resizable-sw {
|
||||
cursor: sw-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
left: -5px;
|
||||
bottom: -5px;
|
||||
}
|
||||
.ui-resizable-nw {
|
||||
cursor: nw-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
left: -5px;
|
||||
top: -5px;
|
||||
}
|
||||
.ui-resizable-ne {
|
||||
cursor: ne-resize;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
right: -5px;
|
||||
top: -5px;
|
||||
}
|
||||
.image-annotate-text{ resize:none;}
|
0
plugins/annotate/lib/jquery/delete.html
Normal file
0
plugins/annotate/lib/jquery/delete.html
Normal file
25
plugins/annotate/lib/jquery/demo-ajax.html
Normal file
25
plugins/annotate/lib/jquery/demo-ajax.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Image Annotations</title>
|
||||
<style type="text/css" media="all">@import "css/annotation.css";</style>
|
||||
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-ui-1.7.1.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.annotate.js"></script>
|
||||
|
||||
<script language="javascript">
|
||||
$(window).load(function() {
|
||||
$("#toAnnotate").annotateImage({
|
||||
getUrl: "get.html",
|
||||
saveUrl: "save.html",
|
||||
deleteUrl: "delete.html",
|
||||
editable: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<img id="toAnnotate" src="images/trafalgar-square-annotated.jpg" alt="Trafalgar Square" width="600" height="398" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
37
plugins/annotate/lib/jquery/demo-static.html
Normal file
37
plugins/annotate/lib/jquery/demo-static.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Image Annotations</title>
|
||||
<style type="text/css" media="all">@import "css/annotation.css";</style>
|
||||
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-ui-1.7.1.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.annotate.js"></script>
|
||||
|
||||
<script language="javascript">
|
||||
$(window).load(function() {
|
||||
$("#toAnnotate").annotateImage({
|
||||
editable: true,
|
||||
useAjax: false,
|
||||
notes: [ { "top": 286,
|
||||
"left": 161,
|
||||
"width": 52,
|
||||
"height": 37,
|
||||
"text": "Small people on the steps",
|
||||
"id": "e69213d0-2eef-40fa-a04b-0ed998f9f1f5",
|
||||
"editable": false },
|
||||
{ "top": 134,
|
||||
"left": 179,
|
||||
"width": 68,
|
||||
"height": 74,
|
||||
"text": "National Gallery Dome",
|
||||
"id": "e7f44ac5-bcf2-412d-b440-6dbb8b19ffbe",
|
||||
"editable": true } ]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<img id="toAnnotate" src="images/trafalgar-square-annotated.jpg" alt="Trafalgar Square" width="600" height="398" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
1
plugins/annotate/lib/jquery/get.html
Normal file
1
plugins/annotate/lib/jquery/get.html
Normal file
@@ -0,0 +1 @@
|
||||
[{"top":0, "left":0, "width":0, "height":0, "text":"test: asdf", "id":"4", "editable":false},{"top":0, "left":0, "width":0, "height":0, "text":"admin: ", "id":"31", "editable":true},{"top":0, "left":0, "width":0, "height":0, "text":"admin: ", "id":"32", "editable":true},{"top":0, "left":0, "width":0, "height":0, "text":" ", "id":"29", "editable":true},{"top":0, "left":0, "width":0, "height":0, "text":"admin: ", "id":"33", "editable":true}]
|
BIN
plugins/annotate/lib/jquery/images/accept.png
Normal file
BIN
plugins/annotate/lib/jquery/images/accept.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 781 B |
BIN
plugins/annotate/lib/jquery/images/asterisk_yellow.png
Normal file
BIN
plugins/annotate/lib/jquery/images/asterisk_yellow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 743 B |
BIN
plugins/annotate/lib/jquery/images/cross.png
Normal file
BIN
plugins/annotate/lib/jquery/images/cross.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 655 B |
BIN
plugins/annotate/lib/jquery/images/delete.png
Normal file
BIN
plugins/annotate/lib/jquery/images/delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 715 B |
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
19
plugins/annotate/lib/jquery/js/jquery-1.3.2-min.js
vendored
Normal file
19
plugins/annotate/lib/jquery/js/jquery-1.3.2-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
19
plugins/annotate/lib/jquery/js/jquery-ui-1.7.2-min.js
vendored
Normal file
19
plugins/annotate/lib/jquery/js/jquery-ui-1.7.2-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
679
plugins/annotate/lib/jquery/js/jquery.annotate.js
Normal file
679
plugins/annotate/lib/jquery/js/jquery.annotate.js
Normal file
@@ -0,0 +1,679 @@
|
||||
/// <reference path="jquery-1.2.6-vsdoc.js" />
|
||||
|
||||
var button_ok = "";
|
||||
var button_cancel = "";
|
||||
var button_delete = "";
|
||||
var button_add = "";
|
||||
var button_toggle="";
|
||||
var button_toggle_off="";
|
||||
var error_saving = "";
|
||||
var error_deleting = "";
|
||||
|
||||
function isInt(value) {
|
||||
return !isNaN(parseInt(value)) && (parseFloat(value) == parseInt(value));
|
||||
}
|
||||
(function($) {
|
||||
|
||||
var areasurrogate = 0;
|
||||
|
||||
$.fn.annotateImage = function(options) {
|
||||
/// <summary>
|
||||
/// Creates annotations on the given image.
|
||||
/// Images are loaded from the "getUrl" propety passed into the options.
|
||||
/// </summary>
|
||||
var opts = $.extend({}, $.fn.annotateImage.defaults, options);
|
||||
var image = this;
|
||||
|
||||
this.image = this;
|
||||
this.mode = 'view';
|
||||
|
||||
// Assign defaults
|
||||
this.getUrl = opts.getUrl;
|
||||
this.saveUrl = opts.saveUrl;
|
||||
this.deleteUrl = opts.deleteUrl;
|
||||
this.editable = opts.editable;
|
||||
this.useAjax = opts.useAjax;
|
||||
this.notes = opts.notes;
|
||||
this.toggle= opts.toggle;
|
||||
|
||||
this.height = (this.height() == 0 ? this[0]["height"]:this.height());
|
||||
this.width = (this.width() == 0 ? this[0]["width"]:this.width())
|
||||
|
||||
// Specific to ResourceSpace
|
||||
var modal = (typeof opts.modal !== "undefined" ? opts.modal : false);
|
||||
$.fn.annotateImage.modal = modal;
|
||||
|
||||
|
||||
// Add the canvas
|
||||
this.canvas = $('<div class="image-annotate-canvas"><div class="image-annotate-view"></div><div class="image-annotate-edit"><div class="image-annotate-edit-area"></div></div></div>');
|
||||
this.canvas.children('.image-annotate-edit').hide();
|
||||
this.canvas.children('.image-annotate-view').hide();
|
||||
this.image.after(this.canvas);
|
||||
|
||||
// Give the canvas and the container their size and background
|
||||
this.canvas.height(this.height);
|
||||
this.canvas.width(this.width);
|
||||
this.canvas.css('background-image', 'url("' + this.attr('src') + '")');
|
||||
this.canvas.children('.image-annotate-view, .image-annotate-edit').height(this.height);
|
||||
this.canvas.children('.image-annotate-view, .image-annotate-edit').width(this.width);
|
||||
|
||||
|
||||
// load the notes
|
||||
if (this.useAjax) {
|
||||
$.fn.annotateImage.ajaxLoad(this);
|
||||
} else {
|
||||
$.fn.annotateImage.load(this);
|
||||
}
|
||||
|
||||
/*
|
||||
this.canvas.children('.image-annotate-view').hover(function() {image.canvas.css({"overflow":"visible"});
|
||||
$(this).show();
|
||||
}, function() {image.canvas.css({"overflow":"hidden"});
|
||||
if (image.toggle==false){ $(this).hide();}
|
||||
});this.canvas.children('.image-annotate-note').hover(function() {image.canvas.css({"overflow":"visible"});
|
||||
$(this).show();
|
||||
}, function() {image.canvas.css({"overflow":"hidden"});
|
||||
if (image.toggle==false){ $(this).hide();}
|
||||
}); */
|
||||
|
||||
|
||||
// Add the image actions
|
||||
if (this.editable) {
|
||||
this.button = $('<div class="image-actions" id="image-actions">');
|
||||
this.canvas.append(this.button);
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).hide();
|
||||
|
||||
this.button = $('<a class="image-annotate-add" id="image-annotate-add" href="#" style="display:inline;">' + button_add + '</a>');
|
||||
this.button.css({width: 'auto', 'padding-right': '5px'});
|
||||
this.button.click(function() {
|
||||
$.fn.annotateImage.add(image);
|
||||
return false;
|
||||
});
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).append(this.button);
|
||||
|
||||
this.button = $('<a class="image-annotate-toggle" id="image-annotate-toggle" href="#" style="display:inline;">');
|
||||
this.button.css({width: 'auto', 'padding-right': '5px'});this.button.click(function() {
|
||||
$.fn.annotateImage.toggle(image);
|
||||
});
|
||||
this.button.css({});
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).append(this.button);
|
||||
$.fn.annotateImage.toggle(image);
|
||||
$.fn.annotateImage.toggle(image);
|
||||
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).hover(function(){
|
||||
toTop($.fn.annotateImage.getImageActionsTarget(modal, true));
|
||||
});
|
||||
}
|
||||
|
||||
// Add the behavior: hide/show the notes when hovering the picture
|
||||
this.canvas.hover(function() {
|
||||
image.canvas.css({"overflow":"visible"});
|
||||
if ($(this).children('.image-annotate-edit').css('display') == 'none') {
|
||||
$(this).children('.image-annotate-view').show();
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).show();
|
||||
toTop($.fn.annotateImage.getImageActionsTarget(modal, true));
|
||||
}
|
||||
}, function() {
|
||||
image.canvas.css({"overflow":"hidden"});
|
||||
if (image.toggle==false){
|
||||
$(this).children('.image-annotate-view').hide();
|
||||
$(this).children('.image-annotate-note','.image-annotate-toggle').hide();
|
||||
}
|
||||
$.fn.annotateImage.getImageActionsTarget(modal).hide();
|
||||
});
|
||||
|
||||
// Hide the original
|
||||
this.hide();
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Plugin Defaults
|
||||
**/
|
||||
$.fn.annotateImage.defaults = {
|
||||
getUrl: 'your-get.rails',
|
||||
saveUrl: 'your-save.rails',
|
||||
deleteUrl: 'your-delete.rails',
|
||||
editable: true,
|
||||
useAjax: true,
|
||||
notes: new Array()
|
||||
};
|
||||
|
||||
$.fn.annotateImage.clear = function(image) {
|
||||
/// <summary>
|
||||
/// Clears all existing annotations from the image.
|
||||
/// </summary>
|
||||
for (var i = 0; i < image.notes.length; i++) {
|
||||
image.notes[image.notes[i]].destroy();
|
||||
}
|
||||
image.notes = new Array();
|
||||
};
|
||||
|
||||
$.fn.annotateImage.getImageActionsTarget = function(modal, as_str) {
|
||||
/// <summary>
|
||||
/// Specific to ResourceSpace
|
||||
/// Return the image-actions target based on image being in a modal or normal page.
|
||||
/// </summary>
|
||||
|
||||
// $.fn.annotateImage.modal is shared between a normal page and the modal. We rely on the passed modal arg to reset
|
||||
// this value to false once we closed the modal.
|
||||
if(typeof modal !== "undefined" && modal && modal != $.fn.annotateImage.modal)
|
||||
{
|
||||
$.fn.annotateImage.modal = modal;
|
||||
}
|
||||
|
||||
if(modal)
|
||||
{
|
||||
return (as_str === true ? '#modal #image-actions' : $('#modal #image-actions'));
|
||||
}
|
||||
|
||||
return (as_str === true ? '#image-actions' : $('#image-actions'));
|
||||
};
|
||||
|
||||
$.fn.annotateImage.ajaxLoad = function(image) {
|
||||
/// <summary>
|
||||
/// Loads the annotations from the "getUrl" property passed in on the
|
||||
/// options object.
|
||||
/// </summary>
|
||||
var append_separator = '?';
|
||||
|
||||
if(image.getUrl.indexOf('?') > -1) {
|
||||
append_separator = '&';
|
||||
}
|
||||
|
||||
$.getJSON(image.getUrl + append_separator + 'ticks=' + $.fn.annotateImage.getTicks(), function(data) {
|
||||
image.notes = data;
|
||||
$.fn.annotateImage.load(image);
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.annotateImage.load = function(image) {
|
||||
/// <summary>
|
||||
/// Loads the annotations from the notes property passed in on the
|
||||
/// options object.
|
||||
/// </summary>
|
||||
for (var i = 0; i < image.notes.length; i++) {
|
||||
image.notes[image.notes[i]] = new $.fn.annotateView(image, image.notes[i]);
|
||||
}
|
||||
// load the default toggle
|
||||
if (image.toggle==true){
|
||||
$('.image-annotate-view').show();
|
||||
$('.image-annotate-note').show();
|
||||
}
|
||||
|
||||
// Set initial z-indices
|
||||
$('.image-annotate-area').each(function(i, area) {
|
||||
if (!isBlocker(area)) {
|
||||
toTop(area);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
$.fn.annotateImage.getTicks = function() {
|
||||
/// <summary>
|
||||
/// Gets a count og the ticks for the current date.
|
||||
/// This is used to ensure that URLs are always unique and not cached by the browser.
|
||||
/// </summary>
|
||||
var now = new Date();
|
||||
return now.getTime();
|
||||
};
|
||||
|
||||
$.fn.annotateImage.add = function(image) {
|
||||
/// <summary>
|
||||
/// Adds a note to the image.
|
||||
/// </summary>
|
||||
if (image.mode == 'view') {
|
||||
image.mode = 'edit';
|
||||
// Create/prepare the editable note elements
|
||||
var editable = new $.fn.annotateEdit(image);
|
||||
|
||||
$.fn.annotateImage.createSaveButton(editable, image);
|
||||
$.fn.annotateImage.createCancelButton(editable, image);
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.annotateImage.toggle = function(image) {
|
||||
/// <summary>
|
||||
/// Toggle notes
|
||||
/// </summary>
|
||||
if (image.mode == 'view') {
|
||||
if (image.toggle==false){
|
||||
image.toggle=true;
|
||||
$('#image-annotate-toggle').html('<a class="image-annotate-toggle" id="image-annotate-toggle" href="#" onclick="return false;">' + button_toggle_off + '</a>');
|
||||
SetCookie ('annotate_toggle',true);
|
||||
$('.image-annotate-view').show();
|
||||
$('.image-annotate-note').show();
|
||||
} else {
|
||||
image.toggle=false;
|
||||
$('#image-annotate-toggle').html('<a class="image-annotate-toggle" id="image-annotate-toggle" href="#" onclick="return false;">' + button_toggle + '</a>');
|
||||
SetCookie ('annotate_toggle',false);
|
||||
$('.image-annotate-view').hide();
|
||||
$('.image-annotate-note').hide();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.annotateImage.createSaveButton = function(editable, image, note) {
|
||||
/// <summary>
|
||||
/// Creates a Save button on the editable note.
|
||||
/// </summary>
|
||||
var ok = $('<a class="image-annotate-edit-ok">' + button_ok + '</a>');
|
||||
|
||||
ok.click(function() {
|
||||
var form = $('#image-annotate-edit-form form');
|
||||
var text = $('#image-annotate-text').val();
|
||||
|
||||
$.fn.annotateImage.appendPosition(form, editable)
|
||||
image.mode = 'view';
|
||||
|
||||
// Save via AJAX
|
||||
if (image.useAjax) {
|
||||
$.ajax({
|
||||
url: image.saveUrl,
|
||||
data: form.serialize(),
|
||||
error: function(e) { alert(error_saving) },
|
||||
success: function(data) {
|
||||
if (data != undefined) {
|
||||
editable.note.id = data;
|
||||
}
|
||||
},
|
||||
dataType: "json"
|
||||
});
|
||||
}
|
||||
|
||||
// Add to canvas
|
||||
if (note) {
|
||||
note.resetPosition(editable, text);
|
||||
} else {
|
||||
editable.note.editable = true;
|
||||
note = new $.fn.annotateView(image, editable.note)
|
||||
note.resetPosition(editable, text);
|
||||
image.notes.push(editable.note);
|
||||
}
|
||||
|
||||
editable.destroy();
|
||||
if (image.toggle==true){$('.image-annotate-view').show();$('.image-annotate-note').show();
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
editable.form.append(ok);
|
||||
|
||||
};
|
||||
|
||||
$.fn.annotateImage.createCancelButton = function(editable, image) {
|
||||
/// <summary>
|
||||
/// Creates a Cancel button on the editable note.
|
||||
/// </summary>
|
||||
var cancel = $('<a class="image-annotate-edit-close">' + button_cancel + '</a>');
|
||||
cancel.click(function() {
|
||||
editable.destroy();
|
||||
image.mode = 'view';
|
||||
});
|
||||
editable.form.append(cancel);
|
||||
};
|
||||
|
||||
$.fn.annotateImage.saveAsHtml = function(image, target) {
|
||||
var element = $(target);
|
||||
var html = "";
|
||||
for (var i = 0; i < image.notes.length; i++) {
|
||||
html += $.fn.annotateImage.createHiddenField("text_" + i, image.notes[i].text);
|
||||
html += $.fn.annotateImage.createHiddenField("top_" + i, image.notes[i].top);
|
||||
html += $.fn.annotateImage.createHiddenField("left_" + i, image.notes[i].left);
|
||||
html += $.fn.annotateImage.createHiddenField("height_" + i, image.notes[i].height);
|
||||
html += $.fn.annotateImage.createHiddenField("width_" + i, image.notes[i].width);
|
||||
}
|
||||
element.html(html);
|
||||
};
|
||||
|
||||
$.fn.annotateImage.createHiddenField = function(name, value) {
|
||||
return '<input type="hidden" name="' + name + '" value="' + value + '" /><br />';
|
||||
};
|
||||
|
||||
$.fn.annotateEdit = function(image, note) {
|
||||
/// <summary>
|
||||
/// Defines an editable annotation area.
|
||||
/// </summary>
|
||||
this.image = image;
|
||||
console.log(image);
|
||||
var top=30;
|
||||
var left=30;
|
||||
if (note) {
|
||||
this.note = note;
|
||||
} else {
|
||||
var newNote = new Object();
|
||||
|
||||
// check if there is an identical note position, and offset it.
|
||||
for (var x=0;x<image.notes.length;x++) {
|
||||
if(typeof image.notes[x]['left']!=="undefined") {
|
||||
|
||||
if (image.notes[x]['left']==left && image.notes[x]['top']==top){
|
||||
top=top+15;
|
||||
left=left+15;
|
||||
x=0;// reset the loop to find further overlaps recursively
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
newNote.id = "new";
|
||||
newNote.top = top;
|
||||
newNote.left = left;
|
||||
newNote.width = 30;
|
||||
newNote.height = 30;
|
||||
newNote.text = "";
|
||||
this.note = newNote;
|
||||
}
|
||||
|
||||
// Set area
|
||||
var area = image.canvas.children('.image-annotate-edit').children('.image-annotate-edit-area');
|
||||
this.area = area;
|
||||
this.area.css('height', this.note.height + 'px');
|
||||
this.area.css('width', this.note.width + 'px');
|
||||
this.area.css('left', this.note.left + 'px');
|
||||
this.area.css('top', this.note.top + 'px');
|
||||
|
||||
// Show the edition canvas and hide the view canvas
|
||||
$.fn.annotateImage.getImageActionsTarget().hide();
|
||||
image.canvas.children('.image-annotate-view').hide();
|
||||
image.canvas.children('.image-annotate-edit').show();
|
||||
|
||||
// Add the note (which we'll load with the form afterwards)
|
||||
var form = $('<div id="image-annotate-edit-form"><form><textarea id="image-annotate-text" name="text" rows="3" cols="30">' + this.note.text.replace(new RegExp('<br />', 'g'), '') + '</textarea></form></div>');
|
||||
this.form = form;
|
||||
|
||||
//$('body').append(this.form);
|
||||
|
||||
// Set the area as a draggable/resizable element contained in the image canvas.
|
||||
// Would be better to use the containment option for resizable but buggy
|
||||
//this.form.css('left', this.area.offset().left + 'px');
|
||||
//this.form.css('top', (parseInt(this.area.offset().top) + parseInt(this.area.height()) + 7) + 'px');
|
||||
|
||||
// modified for RS
|
||||
image.canvas.after(this.form);
|
||||
this.form.css('left', (this.area.offset().left / 2) + 'px');
|
||||
this.form.css('top', (parseInt(this.area.offset().top) + parseInt(this.area.height()) + 7) + 'px');
|
||||
this.form.css('z-index',3);
|
||||
//
|
||||
|
||||
area.resizable({
|
||||
handles: 'all',
|
||||
resize: function(e, ui) {
|
||||
form.css('left', (area.offset().left / 2) + 'px');
|
||||
form.css('top', (parseInt(area.offset().top) + parseInt(area.height()) + 2) + 'px');
|
||||
},
|
||||
stop: function(e, ui) {
|
||||
form.css('left', (area.offset().left / 2) + $('.ui-layout-center').scrollLeft() + 'px');
|
||||
form.css('top', (parseInt(area.offset().top) + parseInt(area.height()) + 2) + 'px');
|
||||
}
|
||||
})
|
||||
.draggable({
|
||||
containment: image.canvas,
|
||||
drag: function(e, ui) {
|
||||
form.css('left', (area.offset().left / 2) + 'px');
|
||||
form.css('top', (parseInt(area.offset().top) + parseInt(area.height()) + 2) + 'px');
|
||||
},
|
||||
stop: function(e, ui) {
|
||||
form.css('left', (area.offset().left / 2) + 'px');
|
||||
form.css('top', (parseInt(area.offset().top) + parseInt(area.height()) + 2) + 'px');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
$.fn.annotateEdit.prototype.destroy = function() {
|
||||
/// <summary>
|
||||
/// Destroys an editable annotation area.
|
||||
/// </summary>
|
||||
this.image.canvas.children('.image-annotate-edit').hide();
|
||||
this.area.resizable('destroy');
|
||||
this.area.draggable('destroy');
|
||||
this.area.css('height', '');
|
||||
this.area.css('width', '');
|
||||
this.area.css('left', '');
|
||||
this.area.css('top', '');
|
||||
this.form.remove();
|
||||
}
|
||||
|
||||
$.fn.annotateView = function(image, note) {
|
||||
/// <summary>
|
||||
/// Defines a annotation area.
|
||||
/// </summary>
|
||||
this.image = image;
|
||||
|
||||
this.note = note;
|
||||
|
||||
this.editable = (note.editable && image.editable);
|
||||
|
||||
areasurrogate += 1;
|
||||
|
||||
// Add the area
|
||||
this.area = $('<div id="areasurrogate_' + areasurrogate + '" class="image-annotate-area' + (this.editable ? ' image-annotate-area-editable' : '') + '"><div>');
|
||||
image.canvas.children('.image-annotate-view').prepend(this.area);
|
||||
|
||||
// image.canvas.children('.image-annotate-view').prepend(this.area);
|
||||
|
||||
// Add the note
|
||||
this.form = $('<div class="image-annotate-note" style="width:auto">' + note.text + '</div>');
|
||||
this.form.hide();
|
||||
image.canvas.children('.image-annotate-view').append(this.form);
|
||||
this.form.children('span.actions').hide();
|
||||
|
||||
// Set the position and size of the note
|
||||
this.setPosition();
|
||||
|
||||
// Add the behavior: hide/display the note when hovering the area
|
||||
var annotation = this;
|
||||
|
||||
// Fix z-index when necessary where multiple notes are visible
|
||||
this.area.hover(function() {
|
||||
annotation.show();
|
||||
|
||||
// Send this element to the top if it doesn't fully block another area element
|
||||
if (!isBlocker(annotation.area)) {
|
||||
toTop(annotation.area);
|
||||
toTop(annotation.form);
|
||||
};
|
||||
|
||||
}, function() {
|
||||
annotation.hide();
|
||||
});
|
||||
|
||||
this.form.hover(function() {
|
||||
annotation.show();
|
||||
|
||||
// Send this element to the top if it doesn't fully block another area element
|
||||
if (!isBlocker(annotation.area)) {
|
||||
toTop(annotation.area);
|
||||
toTop(annotation.form);
|
||||
};
|
||||
|
||||
}, function() {
|
||||
annotation.hide();
|
||||
});
|
||||
|
||||
|
||||
// Edit a note feature
|
||||
if (this.editable) {
|
||||
var form = this;
|
||||
this.area.click(function() {
|
||||
form.edit();
|
||||
});
|
||||
this.form.click(function() {
|
||||
form.edit();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// Is the selected area element fully blocking any other area element
|
||||
function isBlocker(element){
|
||||
var selected_id = $(element)[0].id;
|
||||
var selected_top = $(element)[0].offsetTop;
|
||||
var selected_height = $(element)[0].offsetHeight;
|
||||
var selected_left = $(element)[0].offsetLeft;
|
||||
var selected_width = $(element)[0].offsetWidth;
|
||||
var selected_bottom = selected_top + selected_height;
|
||||
var selected_right = selected_left + selected_width;
|
||||
|
||||
var fullyBlockedFound = false;
|
||||
$(".image-annotate-area").each(function(i, area) {
|
||||
if ($(area)[0].id != selected_id) {
|
||||
if ( selected_top <= $(area)[0].offsetTop
|
||||
&& selected_bottom >= ($(area)[0].offsetTop + $(area)[0].offsetHeight)
|
||||
&& selected_left <= $(area)[0].offsetLeft
|
||||
&& selected_right >= ($(area)[0].offsetLeft + $(area)[0].offsetWidth) ) {
|
||||
// console.log("SELECTED_ID="+selected_id+" BLOCKS="+$(area)[0].id);
|
||||
fullyBlockedFound = true;
|
||||
return false; // No need to check any more areas; break out of .each loop
|
||||
}
|
||||
}
|
||||
});
|
||||
return fullyBlockedFound;
|
||||
};
|
||||
|
||||
|
||||
function toTop(element){
|
||||
var index_highest = 50;
|
||||
$(".image-annotate-area,.image-annotate-note,.image-actions").each(function() {
|
||||
var index_current = parseInt($(this).css("z-index"), 10);
|
||||
//console.log(index_current );
|
||||
if(index_current > index_highest) {
|
||||
index_highest = index_current;
|
||||
}
|
||||
});
|
||||
//console.log('highest '+index_highest);
|
||||
$(element).css({'z-index':index_highest+1});
|
||||
};
|
||||
|
||||
$.fn.annotateView.prototype.setPosition = function() {
|
||||
/// <summary>
|
||||
/// Sets the position of an annotation.
|
||||
/// </summary>
|
||||
this.area.children('div').height((parseInt(this.note.height) - 2) + 'px');
|
||||
this.area.children('div').width((parseInt(this.note.width) - 2) + 'px');
|
||||
this.area.css('left', (this.note.left) + 'px');
|
||||
this.area.css('top', (this.note.top) + 'px');
|
||||
this.form.css('left', (this.note.left) + 'px');
|
||||
this.form.css('top', (parseInt(this.note.top) + parseInt(this.note.height) + 7) + 'px');
|
||||
};
|
||||
|
||||
$.fn.annotateView.prototype.show = function() {
|
||||
/// <summary>
|
||||
/// Highlights the annotation
|
||||
/// </summary>
|
||||
this.form.fadeIn(50);
|
||||
if (!this.editable) {
|
||||
this.area.addClass('image-annotate-area-hover');
|
||||
} else {
|
||||
this.area.addClass('image-annotate-area-editable-hover');
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.annotateView.prototype.hide = function() {
|
||||
/// <summary>
|
||||
/// Removes the highlight from the annotation.
|
||||
/// </summary>
|
||||
if (this.image.toggle==false){this.form.fadeOut(50);}
|
||||
this.area.removeClass('image-annotate-area-hover');
|
||||
this.area.removeClass('image-annotate-area-editable-hover');
|
||||
};
|
||||
|
||||
$.fn.annotateView.prototype.destroy = function() {
|
||||
/// <summary>
|
||||
/// Destroys the annotation.
|
||||
/// </summary>
|
||||
this.area.remove();
|
||||
this.form.remove();
|
||||
}
|
||||
|
||||
$.fn.annotateView.prototype.edit = function() {
|
||||
/// <summary>
|
||||
/// Edits the annotation.
|
||||
/// </summary>
|
||||
if (this.image.mode == 'view') {
|
||||
this.image.mode = 'edit';
|
||||
var annotation = this;
|
||||
|
||||
// Create/prepare the editable note elements
|
||||
var editable = new $.fn.annotateEdit(this.image, this.note);
|
||||
|
||||
$.fn.annotateImage.createSaveButton(editable, this.image, annotation);
|
||||
|
||||
// Add the delete button
|
||||
var del = $('<a class="image-annotate-edit-delete">' + button_delete + '</a>');
|
||||
del.click(function() {
|
||||
var form = $('#image-annotate-edit-form form');
|
||||
|
||||
$.fn.annotateImage.appendPosition(form, editable)
|
||||
|
||||
if (annotation.image.useAjax) {
|
||||
$.ajax({
|
||||
url: annotation.image.deleteUrl,
|
||||
data: form.serialize(),
|
||||
error: function(e) { alert(error_deleting) }
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
annotation.image.mode = 'view';
|
||||
editable.destroy();
|
||||
annotation.destroy();
|
||||
});
|
||||
editable.form.append(del);
|
||||
|
||||
$.fn.annotateImage.createCancelButton(editable, this.image);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.annotateImage.appendPosition = function(form, editable) {
|
||||
/// <summary>
|
||||
/// Appends the annotations coordinates to the given form that is posted to the server.
|
||||
/// </summary>
|
||||
var areaFields = $('<input type="hidden" value="' + editable.area.height() + '" name="height"/>' +
|
||||
'<input type="hidden" value="' + editable.area.width() + '" name="width"/>' +
|
||||
'<input type="hidden" value="' + editable.area.position().top + '" name="top"/>' +
|
||||
'<input type="hidden" value="' + editable.area.position().left + '" name="left"/>' +
|
||||
'<input type="hidden" value="' + editable.note.id + '" name="id"/>');
|
||||
form.append(areaFields);
|
||||
}
|
||||
|
||||
$.fn.annotateView.prototype.resetPosition = function(editable, text) {
|
||||
/// <summary>
|
||||
/// Sets the position of an annotation.
|
||||
/// </summary>
|
||||
this.form.html(text.replace(new RegExp('\n', 'g'), '<br />'));
|
||||
this.form.hide();
|
||||
|
||||
// Resize
|
||||
this.area.children('div').height(editable.area.height() + 'px');
|
||||
this.area.children('div').width((editable.area.width() - 2) + 'px');
|
||||
this.area.css('left', (editable.area.position().left) + 'px');
|
||||
this.area.css('top', (editable.area.position().top) + 'px');
|
||||
this.form.css('left', (editable.area.position().left) + 'px');
|
||||
this.form.css('top', (parseInt(editable.area.position().top) + parseInt(editable.area.height()) + 7) + 'px');
|
||||
|
||||
// Save new position to note
|
||||
this.note.top = editable.area.position().top;
|
||||
this.note.left = editable.area.position().left;
|
||||
this.note.height = editable.area.height();
|
||||
this.note.width = editable.area.width();
|
||||
this.note.text = text;
|
||||
this.note.id = editable.note.id;
|
||||
this.editable = true;
|
||||
|
||||
// Send this element to the top if it doesn't fully block another area element
|
||||
if (!isBlocker(this.area)) {
|
||||
toTop(this.area);
|
||||
toTop(this.form);
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
0
plugins/annotate/lib/jquery/save.html
Normal file
0
plugins/annotate/lib/jquery/save.html
Normal file
9
plugins/annotate/license.txt
Normal file
9
plugins/annotate/license.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
ResourceSpace Annotate Plugin v. 0.1
|
||||
a plugin for the ResourceSpace Digital Asset Management system to creation of image annotations.
|
||||
Copyright Tom Gleason, 3/9/2010
|
||||
theorysavage at gmail dot com
|
||||
http://resourcespace.blogspot.com
|
||||
|
||||
Based on the GPL jquery library:
|
||||
http://blog.flipbit.co.uk/2009/03/jquery-image-annotation-plugin.html
|
||||
|
242
plugins/annotate/pages/annotate_pdf_config.php
Normal file
242
plugins/annotate/pages/annotate_pdf_config.php
Normal file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
include "../../../include/boot.php";
|
||||
include_once "../include/annotate_functions.php";
|
||||
include "../../../include/authenticate.php";
|
||||
|
||||
global $plugins;
|
||||
if (!in_array("annotate",$plugins))
|
||||
{
|
||||
header("Status: 403 plugin not activated");
|
||||
exit($lang["error-plugin-not-activated"]);
|
||||
}
|
||||
|
||||
$ref=getval("ref",0,true);
|
||||
$col=getval("col",0,true);
|
||||
$previewpage=getval("previewpage",1,true);
|
||||
|
||||
if ($col!=0)
|
||||
{
|
||||
$is_collection=true;
|
||||
$collection=get_collection($col);
|
||||
$resources=do_search("!collection".$col);
|
||||
set_user_collection($userref,$col);
|
||||
refresh_collection_frame();
|
||||
$ref="C".$col;$realref=$col; // C allows us to distinguish a collection from a resource in the JS without adding extra params.
|
||||
}
|
||||
else
|
||||
{
|
||||
$is_collection=false;
|
||||
$resources=do_search("!list".$ref);
|
||||
$realref=$ref;
|
||||
}
|
||||
|
||||
// prune unnannotated resources if necessary
|
||||
$annotate=true;
|
||||
|
||||
if ($annotate_pdf_output_only_annotated)
|
||||
{
|
||||
$resources_modified=array();
|
||||
$x=0;
|
||||
for ($n=0;$n<count($resources);$n++)
|
||||
{
|
||||
unset($notes);
|
||||
if ($annotate_pdf_output_only_annotated && $resources[$n]['annotation_count']!=0)
|
||||
{
|
||||
$resources_modified[$x]=$resources[$n];
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
$resources=$resources_modified;
|
||||
}
|
||||
|
||||
if (count($resources)==0){$annotate=false;}
|
||||
|
||||
# Fetch search details (for next/back browsing and forwarding of search params)
|
||||
$search=getval("search","");
|
||||
$order_by=getval("order_by","relevance");
|
||||
$offset=getval("offset",0,true);
|
||||
$restypes=getval("restypes","");
|
||||
if (strpos($search,"!")!==false) {$restypes="";}
|
||||
$archive=getval("archive",0,true);
|
||||
|
||||
$default_sort_direction="DESC";
|
||||
if (substr($order_by,0,5)=="field"){$default_sort_direction="ASC";}
|
||||
$sort=getval("sort",$default_sort_direction);
|
||||
|
||||
include "../../../include/header.php";
|
||||
|
||||
// a unique id allows us to isolate this page's temporary files.
|
||||
$annotateid=uniqid($ref);
|
||||
|
||||
$jpghttppath=get_annotate_file_path($realref,false,"jpg");
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($annotate){?>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
var annotate_previewimage_prefix = "";
|
||||
|
||||
(function(jQuery) {
|
||||
|
||||
var methods = {
|
||||
|
||||
preview : function() {
|
||||
var url = '<?php echo $baseurl_short?>plugins/annotate/pages/annotate_pdf_gen.php';
|
||||
|
||||
var formdata = jQuery('#annotateform').serialize() + '&preview=true';
|
||||
|
||||
jQuery.ajax(url,{
|
||||
data: formdata,
|
||||
success: function(response) {jQuery(this).annotate('refresh',response);},
|
||||
complete: function(response) {
|
||||
jQuery('#error').html(response.responseText);
|
||||
if (response.responseText=="nothing"){
|
||||
jQuery('#heading').hide();
|
||||
jQuery('#configform').hide();
|
||||
jQuery('#previewdiv').hide();
|
||||
jQuery('#introtext').hide();
|
||||
jQuery('#noannotations').show();
|
||||
jQuery('#noannotations').html("There are no annotations.");
|
||||
}
|
||||
},
|
||||
beforeSend: function(response) {loadIt();}
|
||||
});
|
||||
},
|
||||
|
||||
refresh : function( pagecount ) {
|
||||
|
||||
document.previewimage.src = '<?php echo $jpghttppath;?>?' + Date.now();
|
||||
if (pagecount>1)
|
||||
{
|
||||
jQuery('#previewPageOptions').show(); // display selector
|
||||
pagecount++;
|
||||
curval=jQuery('#previewpage').val();
|
||||
jQuery('#previewpage')[0].options.length = 0;
|
||||
|
||||
for (x=1;x<pagecount;x++)
|
||||
{
|
||||
selected=false;
|
||||
var selecthtml="";
|
||||
if (x==curval){selected=true;}
|
||||
if (selected){selecthtml=' selected="selected" ';}
|
||||
jQuery('#previewpage').append('<option value='+x+' '+selecthtml+'>'+x+'/'+(pagecount-1)+'</option>');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#previewPageOptions').hide();
|
||||
}
|
||||
},
|
||||
revert : function() {
|
||||
jQuery('#previewpage')[0].options.length = 0;
|
||||
jQuery('#previewpage').append(new Option(1, 1,true,true));
|
||||
jQuery('#previewpage').value=1;jQuery('#previewPageOptions').hide();
|
||||
jQuery(this).annotate('preview');
|
||||
}
|
||||
};
|
||||
|
||||
jQuery.fn.annotate = function( method ) {
|
||||
|
||||
// Method calling logic
|
||||
if ( methods[method] ) {
|
||||
return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
})(jQuery)
|
||||
</script>
|
||||
<script>
|
||||
function loadIt() {
|
||||
document.previewimage.src = '<?php echo $baseurl_short?>gfx/images/ajax-loader-on-sheet.gif';}
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<div class="BasicsBox" style="float:left;">
|
||||
|
||||
<?php
|
||||
|
||||
$urlparams = [
|
||||
'ref' => $ref,
|
||||
'search' => $search,
|
||||
'offset' => $offset,
|
||||
'order_by' => $order_by,
|
||||
'sort' => $sort,
|
||||
'archive' => $archive
|
||||
];
|
||||
|
||||
if (!$is_collection){?>
|
||||
<p><a href="<?php echo generateURL($baseurl_short . 'pages/view.php', $urlparams, ['annotate' => 'true'])?>" onClick="return CentralSpaceLoad(this);"><?php echo LINK_CARET_BACK ?><?php echo escape($lang["backtoresourceview"])?></a></p>
|
||||
<?php } else {?>
|
||||
<p><a href="<?php echo generateURL($baseurl_short . 'pages/search.php?', $urlparams, ['search' => '!collection' . substr($ref,1)])?>" onClick="return CentralSpaceLoad(this);"><?php echo LINK_CARET_BACK ?><?php echo escape($lang["backtoresults"])?></a></p>
|
||||
<?php } ?>
|
||||
|
||||
<h1><?php echo escape($lang["annotatepdfconfig"]); ?></h1>
|
||||
|
||||
<?php if ($annotate){?>
|
||||
<div id="heading" style="float:left;margin-bottom:0;" >
|
||||
<p id="introtext"><?php echo escape($lang["annotatepdfintrotext"])?></p>
|
||||
</div>
|
||||
<div style="clear:left;"></div>
|
||||
|
||||
<div id="configform" >
|
||||
|
||||
<form method=post name="annotateform" id="annotateform" action="<?php echo $baseurl_short?>plugins/annotate/pages/annotate_pdf_gen.php" >
|
||||
<input type=hidden name="ref" value="<?php echo escape($ref)?>">
|
||||
<input type=hidden name="annotateid" value="<?php echo escape($annotateid)?>">
|
||||
<?php
|
||||
generateFormToken("annotateform");
|
||||
if ($is_collection){?>
|
||||
<div class="Question">
|
||||
<label><?php echo escape($lang["collection"])?></label><div class="Fixed"><?php echo escape(i18n_get_collection_name($collection))?></div>
|
||||
<div class="clearerleft"> </div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<div class="Question">
|
||||
<label><?php echo escape($lang["resourcetitle"])?></label><div class="Fixed"><?php echo escape(i18n_get_translated($resources[0]['field'.$view_title_field]))?></div>
|
||||
<div class="clearerleft"> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="Question">
|
||||
<label for="size"><?php echo escape($lang["size"])?></label>
|
||||
<select class="shrtwidth" name="size" id="size" onChange="jQuery().annotate('preview'); "><?php echo $papersize_select ?>
|
||||
</select>
|
||||
<div class="clearerleft"> </div>
|
||||
</div>
|
||||
|
||||
<div name="previewPageOptions" id="previewPageOptions" class="Question" style="display:none">
|
||||
<label for="previewpage"><?php echo escape($lang['previewpage'])?></label>
|
||||
<select class="shrtwidth" name="previewpage" id="previewpage" onChange="jQuery().annotate('preview'); ">
|
||||
</select>
|
||||
</div>
|
||||
<?php if ($annotate_debug){?><div name="error" id="error"></div><?php } ?>
|
||||
<?php if ($annotate_debug){?><div name="error2" id="error2"></div><?php } ?>
|
||||
<div class="QuestionSubmit">
|
||||
<input name="preview" type="button" value=" <?php echo escape($lang["preview"])?> " onClick="jQuery().annotate('preview'); "/>
|
||||
<input name="save" type="submit" value=" <?php echo escape($lang["create"])?> " />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="BasicsBox" style="float:left;">
|
||||
<div id="previewdiv" style="float:left;padding:0px -50px 15px 0;height:425px;margin-right:-50px">
|
||||
<img alt="" id="previewimage" name="previewimage" src=''/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
?>
|
||||
<div <?php if ($annotate){?>style="display:none;"<?php } ?> id="noannotations"><?php if (!$annotate){?>There are no annotations.<?php } ?></div></div>
|
||||
<?php if ($annotate){?>
|
||||
<script>
|
||||
jQuery().annotate('preview');
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php
|
||||
include "../../../include/footer.php";
|
||||
?>
|
48
plugins/annotate/pages/annotate_pdf_gen.php
Normal file
48
plugins/annotate/pages/annotate_pdf_gen.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
// this program creates a new PDF document with annotations
|
||||
include '../../../include/boot.php';
|
||||
include_once "../include/annotate_functions.php";
|
||||
include '../../../include/authenticate.php';
|
||||
|
||||
global $plugins;
|
||||
if (!in_array("annotate",$plugins))
|
||||
{
|
||||
header("Status: 403 plugin not activated");
|
||||
exit($lang["error-plugin-not-activated"]);
|
||||
}
|
||||
|
||||
$ref=getval("ref",0);
|
||||
$size=getval("size","letter");
|
||||
$color=getval("color","yellow");
|
||||
$previewpage=getval("previewpage",1,true);
|
||||
$cleartmp=getval("cleartmp","");
|
||||
|
||||
if ($cleartmp!="")
|
||||
{
|
||||
echo escape(getval("annotateid",""));
|
||||
clear_annotate_temp($ref,getval("annotateid",""));
|
||||
exit("cleared");
|
||||
}
|
||||
|
||||
if(getval("preview","")!="")
|
||||
{
|
||||
$preview=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$preview=false;
|
||||
}
|
||||
|
||||
$is_collection=false;
|
||||
if(substr($ref,0,1)=="C")
|
||||
{
|
||||
$ref=substr($ref,1);
|
||||
$is_collection=true;
|
||||
}
|
||||
$result=create_annotated_pdf((int)$ref,$is_collection,$size,true,$preview);
|
||||
|
||||
|
||||
|
||||
|
||||
|
29
plugins/annotate/pages/delete.php
Normal file
29
plugins/annotate/pages/delete.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
include_once "../../../include/boot.php";
|
||||
include_once "../include/annotate_functions.php";
|
||||
include_once "../../../include/authenticate.php";
|
||||
|
||||
$ref=getval("ref", 0, true);
|
||||
if ($ref==0)
|
||||
{
|
||||
die($lang["annotate_ref_not_supplied"]);
|
||||
}
|
||||
|
||||
global $plugins;
|
||||
if (!in_array("annotate",$plugins))
|
||||
{
|
||||
header("Status: 403 plugin not activated");
|
||||
exit($lang["error-plugin-not-activated"]);
|
||||
}
|
||||
|
||||
$id=getval('id',0,true);
|
||||
$oldtextnode=ps_value("SELECT node value FROM annotate_notes WHERE ref= ? AND note_id= ?",['i', $ref, 'i', $id],"");
|
||||
if ($oldtextnode > 0)
|
||||
{
|
||||
check_delete_nodes([$oldtextnode]);
|
||||
}
|
||||
|
||||
$notes=ps_query("DELETE FROM annotate_notes WHERE ref= ? AND note_id= ?", ['i', $ref, 'i', $id]);
|
||||
$notes=ps_query("SELECT COUNT(note_id) FROM annotate_notes WHERE ref= ?", ['i', $ref]);
|
||||
ps_query("UPDATE resource SET annotation_count= ? WHERE ref= ?", ['i', count($notes), 'i', $ref]);
|
||||
|
88
plugins/annotate/pages/get.php
Normal file
88
plugins/annotate/pages/get.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
include_once "../../../include/boot.php";
|
||||
include_once "../include/annotate_functions.php";
|
||||
|
||||
$k=getval("k","");if (($k=="") || (!check_access_key(getval("ref",""),$k))) {include_once "../../../include/authenticate.php";}
|
||||
|
||||
$ref=getval("ref", 0, true);
|
||||
if ($ref==0)
|
||||
{
|
||||
die($lang["annotate_ref_not_supplied"]);
|
||||
}
|
||||
|
||||
global $plugins;
|
||||
if (!in_array("annotate",$plugins))
|
||||
{
|
||||
header("Status: 403 plugin not activated");
|
||||
exit($lang["error-plugin-not-activated"]);
|
||||
}
|
||||
|
||||
$preview_width = getval("pw", 0, true);
|
||||
$preview_height = getval("ph", 0, true);
|
||||
$page = getval("page", 1, true);
|
||||
|
||||
// Get notes based on page:
|
||||
$sql_and = '';
|
||||
$sql_params[] = 'i'; $sql_params[] = $ref;
|
||||
if($page >= 1)
|
||||
{
|
||||
$sql_and = ' AND page = ?';
|
||||
$sql_params[] = 'i'; $sql_params[] = $page;
|
||||
}
|
||||
$notes=ps_query("SELECT ref, top_pos, left_pos, width, height, preview_width, preview_height, note_id, user, `page`, node FROM annotate_notes WHERE ref= ?" . $sql_and, $sql_params);
|
||||
$notecount = count($notes);
|
||||
ps_query("UPDATE resource SET annotation_count= ? WHERE ref= ?", ['i', $notecount, 'i', $ref]);
|
||||
// check if display size is different from original preview size, and if so, modify coordinates
|
||||
|
||||
|
||||
for($i=0;$i<$notecount;$i++)
|
||||
{
|
||||
$annotate_node =[];
|
||||
get_node($notes[$i]["node"],$annotate_node);
|
||||
$notes[$i]["note"] = $annotate_node["name"];
|
||||
}
|
||||
|
||||
$json="[";
|
||||
$notes_array=array();
|
||||
for ($x=0;$x<count($notes);$x++)
|
||||
{
|
||||
$ratio=$preview_width/$notes[$x]['preview_width'];
|
||||
|
||||
$notes[$x]['width']=$ratio*$notes[$x]['width'];
|
||||
$notes[$x]['height']=$ratio*$notes[$x]['height'];
|
||||
$notes[$x]['top_pos']=$ratio*$notes[$x]['top_pos'];
|
||||
$notes[$x]['left_pos']=$ratio*$notes[$x]['left_pos'];
|
||||
$notes[$x]['note'] = str_replace(chr(13). chr(10), '<br />\n', $notes[$x]['note']);
|
||||
$notes[$x]['note'] = str_replace(chr(13), '<br />\n', $notes[$x]['note']);
|
||||
$notes[$x]['note'] = str_replace(chr(10), '<br />\n', $notes[$x]['note']);
|
||||
|
||||
if (!$annotate_show_author) # Don't display author unless set in config
|
||||
{
|
||||
$notes[$x]['note'] = substr(strstr($notes[$x]['note'],": "),2);
|
||||
}
|
||||
|
||||
if ($x>0){$json.=",";}
|
||||
|
||||
$json.="{";
|
||||
$json.='"top":'.round($notes[$x]['top_pos']).', ';
|
||||
$json.='"left":'.round($notes[$x]['left_pos']).', ';
|
||||
$json.='"width":'.round($notes[$x]['width']).', ';
|
||||
$json.='"height":'.round($notes[$x]['height']).', ';
|
||||
$json.='"text":"'.config_encode($notes[$x]['note']).'", ';
|
||||
$json.='"id":"'.$notes[$x]['note_id'].'", ';
|
||||
|
||||
if (isset($userref) && (($notes[$x]['user']==$userref) || in_array($usergroup,$annotate_admin_edit_access)))
|
||||
{
|
||||
$json.='"editable":true';
|
||||
}
|
||||
else
|
||||
{
|
||||
$json.='"editable":false';
|
||||
}
|
||||
|
||||
$json.="}";
|
||||
}
|
||||
|
||||
$json.="]";
|
||||
echo $json;
|
||||
|
79
plugins/annotate/pages/save.php
Normal file
79
plugins/annotate/pages/save.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
include_once "../../../include/boot.php";
|
||||
include_once "../include/annotate_functions.php";
|
||||
include_once "../../../include/authenticate.php";
|
||||
|
||||
$ref=getval("ref", 0, true);
|
||||
if ($ref==0)
|
||||
{
|
||||
die($lang["annotate_ref_not_supplied"]);
|
||||
}
|
||||
|
||||
global $plugins;
|
||||
if (!in_array("annotate",$plugins))
|
||||
{
|
||||
header("Status: 403 plugin not activated");
|
||||
exit($lang["error-plugin-not-activated"]);
|
||||
}
|
||||
|
||||
$top=getval('top','');
|
||||
$left=getval('left','');
|
||||
$width=getval('width','');
|
||||
$height=getval('height','');
|
||||
$text=getval('text','');
|
||||
$text=str_replace("<br />\n"," ",$text);// remove the breaks added by get.php
|
||||
$page = getval('page', 1);
|
||||
$id=getval('id',0,true);
|
||||
$preview_width=getval('pw','');
|
||||
$preview_height=getval('ph','');
|
||||
|
||||
$curnode=ps_value("SELECT node value FROM annotate_notes WHERE ref= ? AND note_id= ?",['i', $ref, 'i', $id],"");
|
||||
|
||||
if (substr($text,0,strlen($username))!=$username)
|
||||
{
|
||||
$text=$username.": ".$text;
|
||||
}
|
||||
|
||||
if ($curnode > 0 && get_nodes_use_count([$curnode]) == 1)
|
||||
{
|
||||
// Reuse same node
|
||||
$savenode = set_node($curnode,$annotate_resource_type_field,$text,null,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Remove node from resource and create new node
|
||||
delete_resource_nodes($ref,[$curnode]);
|
||||
$savenode = set_node(null,$annotate_resource_type_field,$text,null,0);
|
||||
add_resource_nodes($ref,[$savenode], true, true);
|
||||
}
|
||||
|
||||
if ($id > 0)
|
||||
{
|
||||
ps_query("DELETE FROM annotate_notes WHERE ref= ? AND note_id= ?", ['i', $ref, 'i', $id]);
|
||||
}
|
||||
|
||||
if (substr($text,0,strlen($username))!=$username)
|
||||
{
|
||||
$text=$username.": ".$text;
|
||||
}
|
||||
|
||||
ps_query("INSERT INTO annotate_notes (ref,top_pos,left_pos,width,height,preview_width,preview_height,node,user,`page`) VALUES (?,?,?,?,?,?,?,?,?,?) ",
|
||||
[
|
||||
'i',$ref,
|
||||
'i',$top,
|
||||
'i',$left,
|
||||
'i',$width,
|
||||
'i',$height,
|
||||
'i',$preview_width,
|
||||
'i',$preview_height,
|
||||
'i',$savenode,
|
||||
'i',$userref,
|
||||
'i',$page
|
||||
]
|
||||
);
|
||||
|
||||
$annotateid = sql_insert_id();
|
||||
echo $annotateid;
|
||||
|
||||
$notes=ps_query("SELECT count(note_id) FROM annotate_notes WHERE ref= ?", ['i', $ref]);
|
||||
ps_query("UPDATE resource SET annotation_count= ? WHERE ref= ?", ['i', count($notes), 'i', $ref]);
|
43
plugins/annotate/pages/setup.php
Normal file
43
plugins/annotate/pages/setup.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
#
|
||||
# Annotate setup page
|
||||
#
|
||||
// Do the include and authorization checking ritual -- don't change this section.
|
||||
include '../../../include/boot.php';
|
||||
include_once "../include/annotate_functions.php";
|
||||
include '../../../include/authenticate.php'; if (!checkperm('a')) {exit ($lang['error-permissiondenied']);}
|
||||
|
||||
$plugin_name = 'annotate';
|
||||
if(!in_array($plugin_name, $plugins))
|
||||
{
|
||||
plugin_activate_for_setup($plugin_name);
|
||||
}
|
||||
|
||||
// Specify the name of this plugin and the heading to display for the page.
|
||||
$plugin_name = 'annotate';
|
||||
$plugin_page_heading = $lang['annotate_configuration'];
|
||||
|
||||
// Build the $page_def array of descriptions of each configuration variable the plugin uses.
|
||||
$page_def[] = config_add_text_list_input('annotate_ext_exclude', $lang['extensions_to_exclude']);
|
||||
$page_def[] = config_add_multi_rtype_select('annotate_rt_exclude', $lang['resource_types_to_exclude']);
|
||||
$page_def[] = config_add_single_select('annotate_font', $lang['annotate_font'], array('helvetica', 'dejavusanscondensed'), false);
|
||||
$page_def[] = config_add_boolean_select('annotate_debug', $lang['annotatedebug']);
|
||||
$page_def[] = config_add_boolean_select('annotate_public_view', $lang['annotate_public_view']);
|
||||
$page_def[] = config_add_boolean_select('annotate_show_author', $lang['annotate_show_author']);
|
||||
$page_def[] = config_add_boolean_select('annotate_pdf_output', $lang["annotate_pdf_output"]);
|
||||
$page_def[] = config_add_boolean_select('annotate_pdf_output_only_annotated', $lang["annotate_pdf_output_only_annotated"]);
|
||||
$page_def[] = config_add_multi_group_select('annotate_admin_edit_access', $lang["annotate_admin_edit_access"]);
|
||||
$page_def[] = config_add_single_ftype_select("annotate_resource_type_field", $lang["admin_resource_type_field"],300,false,[FIELD_TYPE_DYNAMIC_KEYWORDS_LIST]);
|
||||
|
||||
// Do the page generation ritual -- don't change this section.
|
||||
config_gen_setup_post($page_def, $plugin_name);
|
||||
include '../../../include/header.php';
|
||||
if(empty($annotate_resource_type_field) || $annotate_resource_type_field == 0)
|
||||
{
|
||||
?>
|
||||
<div class="PageInformal"><?php echo escape($lang['annotate_metadatafield_error']); ?></div>
|
||||
<script>jQuery(document).ready(function(){jQuery('#annotate_resource_type_field').addClass('highlighted');});</script>
|
||||
<?php
|
||||
}
|
||||
config_gen_setup_html($page_def, $plugin_name, null, $plugin_page_heading);
|
||||
include '../../../include/footer.php';
|
Reference in New Issue
Block a user