-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from OPUS4/publicationState126-solr7
#126 Added PublicationState for PHP 7 (Solr 7.x)
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,12 +26,7 @@ | |
* along with OPUS; if not, write to the Free Software Foundation, Inc., 51 | ||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* @category Framework | ||
* @package Opus_SolrSearch | ||
* @author Oliver Marahrens <[email protected]> | ||
* @author Sascha Szott <[email protected]> | ||
* @author Jens Schwidder <[email protected]> | ||
* @copyright Copyright (c) 2008-2019, OPUS 4 development team | ||
* @copyright Copyright (c) 2008, OPUS 4 development team | ||
* @license http://www.gnu.org/licenses/gpl.html General Public License | ||
*/ | ||
--> | ||
|
@@ -277,11 +272,20 @@ | |
<xsl:if test="$doctype != ''"> | ||
<xsl:element name="field"> | ||
<xsl:attribute name="name">doctype</xsl:attribute> | ||
<xsl:value-of select="/Opus/Opus_Document/@Type" /> | ||
<xsl:value-of select="$doctype" /> | ||
</xsl:element> | ||
</xsl:if> | ||
|
||
<!-- state --> | ||
<!-- PublicationState --> | ||
<xsl:variable name="publicationState" select="/Opus/Opus_Document/@PublicationState" /> | ||
<xsl:if test="$publicationState != ''"> | ||
<xsl:element name="field"> | ||
<xsl:attribute name="name">publication_state</xsl:attribute> | ||
<xsl:value-of select="$publicationState" /> | ||
</xsl:element> | ||
</xsl:if> | ||
|
||
<!-- ServerState --> | ||
<xsl:element name="field"> | ||
<xsl:attribute name="name">server_state</xsl:attribute> | ||
<xsl:value-of select="/Opus/Opus_Document/@ServerState" /> | ||
|