first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,28 @@
{**
* plugins/reports/counter/templates/index.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Counter plugin index
*}
{extends file="layouts/backend.tpl"}
{block name="page"}
<h1 class="app__pageHeading">
{translate key="plugins.reports.counter"}
</h1>
<div class="app__contentPanel">
<p>{translate key="plugins.reports.counter.description"}</p>
<h2>{translate key="plugins.reports.counter.release"} {$release}</h2>
<ul>
{foreach from=$available key="report" item="reportfile"}
<li>
{translate key="plugins.reports.counter.$report.title"|lower}: {foreach from=$years item=year}&nbsp;&nbsp;<a href="{url op="reports" path="report" pluginName=$pluginName type="fetch" release=$release report=$report year=$year}">{$year|escape}</a>{/foreach}
</li>
{/foreach}
</ul>
</div>
{/block}
@@ -0,0 +1,77 @@
{**
* plugins/reports/counter/templates/reportxml.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* COUNTER report XML
*}
{if $omitWrapper neq 'true'}
<?xml version="1.0" encoding="UTF-8"?>
<Reports xmlns="http://www.niso.org/schemas/counter"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.niso.org/schemas/counter http://www.niso.org/schemas/sushi/counter3_0.xsd">
{/if}
<Report xmlns="http://www.niso.org/schemas/counter" ID="JR1" Version="3" Title="Journal Report 1" Created="{$smarty.now|date_format:"%Y-%m-%dT%H:%M:%SZ"}">
<Vendor>
<Name>{$vendorName|escape:"html"}</Name>
<ID>ID0</ID>
<WebSiteUrl>{$base_url|escape:"html"}</WebSiteUrl>
</Vendor>
<Customer>
<Name>{$reqUserName|escape:"html"}</Name>
<ID>{$reqUserId|escape:"html"}</ID>
{foreach from=$journalsArray key=journalkey item=journal}
<ReportItems>
<ItemIdentifier>
<Type>Print_ISSN</Type>
<Value>{$journal.printIssn|escape:"html"}</Value>
</ItemIdentifier>
<ItemIdentifier>
<Type>Online_ISSN</Type>
<Value>{$journal.onlineIssn|escape:"html"}</Value>
</ItemIdentifier>
<ItemPlatform>Open Journal Systems</ItemPlatform>
<ItemPublisher>{$journal.publisherInstitution|escape:"html"}</ItemPublisher>
<ItemName>{$journal.journalTitle|escape:"html"}</ItemName>
<ItemDataType>Journal</ItemDataType>
{foreach from=$journal.entries key=key item=requests}
<ItemPerformance>
<Period>
<Begin>{$requests.start}</Begin>
<End>{$requests.end}</End>
</Period>
<Category>Requests</Category>
{if $requests.count_total neq ''}<Instance>
<MetricType>ft_total</MetricType>
<Count>{$requests.count_total}</Count>
</Instance>{/if}
{if $requests.count_html neq ''}<Instance>
<MetricType>ft_html</MetricType>
<Count>{$requests.count_html}</Count>
</Instance>{/if}
{if $requests.count_pdf neq ''}<Instance>
<MetricType>ft_pdf</MetricType>
<Count>{$requests.count_pdf}</Count>
</Instance>{/if}
</ItemPerformance>
{/foreach}
</ReportItems>
{/foreach}
</Customer>
</Report>
{if $omitWrapper neq 'true'}
</Reports>
{/if}
@@ -0,0 +1,22 @@
{**
* plugins/reports/counter/templates/soaperror.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* SOAP error response
*}
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<Faultcode>{$Faultcode}</Faultcode>
<Faultstring>{$Faultstring}</Faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
@@ -0,0 +1,45 @@
{**
* plugins/reports/counter/templates/sushixml.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* SUSHI response XML
*}
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ReportResponse
ID="ID0"
xsi:schemaLocation="http://www.niso.org/schemas/sushi/counter http://www.niso.org/schemas/sushi/counter_sushi3_0.xsd"
Created="{$smarty.now|date_format:"%Y-%m-%dT%H:%M:%SZ"}"
xmlns="http://www.niso.org/schemas/sushi/counter"
xmlns:s="http://www.niso.org/schemas/sushi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<s:Requestor>
<s:ID>{$requestorID|escape:"html"}</s:ID>
<s:Name>{$requestorName|escape:"html"}</s:Name>
<s:Email>{$requestorEmail|escape:"html"}</s:Email>
</s:Requestor>
<s:CustomerReference>
<s:ID>{$customerReferenceID|escape:"html"}</s:ID>
</s:CustomerReference>
<s:ReportDefinition Name="JR1" Release="3">
<s:Filters>
<s:UsageDateRange>
<s:Begin>{$usageDateBegin|escape:"html"}</s:Begin>
<s:End>{$usageDateEnd|escape:"html"}</s:End>
</s:UsageDateRange>
</s:Filters>
</s:ReportDefinition>
<Report>
{include file=$templatePath|concat:"reportxml.tpl" omitWrapper='true'}
</Report>
</ReportResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>